tpacket: Notify userspace about packets with CHECKSUM_UNNECESSARY
tpacket already notifies userspace about packets filtered with
CHECKSUM_PARTIAL. This indicates to userspace that the checksum
field is invalid and needs to be recomputed. For instance, this
helps to avoid checksum calculation for GRO coalesced packets.
Note that we can safely skip validation of checksum for GRO
coalesced packets as the GRO engine validates checksum prior
to the coalesce.
Add a new flag to pass to userspace for CHECKSUM_UNNECESSARY.
Userspace will now be able to skip checksum validation for packets
which have passed checksum validation earlier in a driver. Hardware
supports checksum offload for IPv4 / IPv6 for TCP / UDP. This
means that userspace would not need to recompute checksum for these
packets.
Change-Id: I931cfc35c33b8a55f25d264fa568bc93135fd3ef
Signed-off-by:
Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Loading
Please register or sign in to comment