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)
commitfdaefd62fd658b266a8f389cdf7991630b4bc7b4
tree467d3647c88fef2fe2c71d7aead4e646596b6f71
parent38720352412a4305a108ff37ae6099dab3f44a38
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