]> git.baikalelectronics.ru Git - kernel.git/commit
udp: Clean up the use of flags in UDP segmentation offload
authorAlexander Duyck <aduyck@mirantis.com>
Fri, 5 Feb 2016 23:28:14 +0000 (15:28 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 13:55:34 +0000 (08:55 -0500)
commite549bc509d5ff6c9e0c80fa4d8bf7e2bcfd90b14
tree467d3647c88fef2fe2c71d7aead4e646596b6f71
parentd2ff325d9549246b07d80571a1921e285c8c6af5
udp: Clean up the use of flags in UDP segmentation offload

This patch goes though and cleans up the logic related to several of the
control flags used in UDP segmentation.  Specifically the use of dont_encap
isn't really needed as we can just check the skb for CHECKSUM_PARTIAL and
if it isn't set then we don't need to update the internal headers.  As such
we can just drop that value.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Acked-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp_offload.c