On Tue, 25 Feb 2025 17:00:45 +0800 Jijie Shao wrote:
Dropping packets with bad csum is not correct.When receiving packets, MAC checks the checksum by default. This behavior cannot be disabled.+ NETIF_F_RXCSUM)I don't see you setting the checksum to anything other than NONE
If the checksum is incorrect, the MAC notifies the driver through the descriptor.
If checksum offload is enabled, the driver drops the packet.
Otherwise, the driver set the checksum to NONE and sends the packet to the stack.
Packets where device validated L4 csum should have csum set
to UNNECESSARY, most likely. Please read the comment in skbuff.h