summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>2015-10-26 17:32:26 -0600
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:09:46 -0700
commit457b02e709a37972ca43d1f9ae5ee25a38d8a55c (patch)
tree4b1cda3876f5e7dae359c376f7c0d8f92fd02f05 /include/linux
parente9a33bcd2f02f05d55e05d5ad1e64ca9ad2c4c2a (diff)
tun: Set CHECKSUM_UNNECESSARY if userspace passes this indication
Userspace may already know that the checksum validation is already completed prior to being passed to the TUN interface. As a result, computing checksum again in network stack may be a redundant operation. Add support to read this information from the TUN header flags to skip checksum validation for these packets only. This is useful in cases where the packet checksum was computed by hardware for IPv4 / IPv6 TCP / UDP packets. Since the packet intergrity was already verified for packets over the wire, subsequent validation within the network stack is redundant work. Change-Id: I18ee3408c05910207b205d6205f282e6f3599156 Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions