Ah but no. A packet is dropped if the checksum is bad. A packet is
dropped if the firewall says so. There order of these tests doesn't
matter.
But that's not the point. The header checksum isn't all that slow,
though you might still want to drop the packet based on IP addresses
first. It's the data copy and checksum that could maybe be deferred.
Or you could read the IP addresses, protocol and port number from the
header while it's still in the network card maybe, to decide if the
packet shall even be copied off the card. Then you'd skip the header
checksum just to minimise the number of card reads. But I doubt this
would be worth the headaches.
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/