I want to reduce cpu overhead in my board, running lwip. My board will be placed as in big network as in small network.
I know that it will receive a lot of broadcast packets, and i want to filter them in the emac driver code, without call lwip stack.
So, my idea is:
1. configure emac HW for accepting all broadcast packet 2. in irq function, when new packet arrives, check if it's BROADCAST and if it has ARP value as ethernet type: ONLY in this case pass packet to lwip stack. In OTHER case discards packet.
Are there other packet type rather than ARP which are sent using broadcast mac address? (FF:FF:FF:FF:FF:FF)