]> 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)
commit8522e719f96e46e36d6866886273fee529763ecd
tree467d3647c88fef2fe2c71d7aead4e646596b6f71
parentacb97fea7f8e86020dfeade86f8ec6367c289a08
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