GSO: Provide software checksum of tunneled UDP fragmentation offload
authorAlexander Duyck <aduyck@mirantis.com>
Thu, 25 Feb 2016 00:46:21 +0000 (16:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Feb 2016 19:23:35 +0000 (14:23 -0500)
commit224638766235ba82c53b4216e4dabc510701fbf2
tree593d446859b883db6cfb9f8926a28efc141e0a99
parentc3f463baae6eec589f7648604cafefdfe4b85288
GSO: Provide software checksum of tunneled UDP fragmentation offload

On reviewing the code I realized that GRE and UDP tunnels could cause a
kernel panic if we used GSO to segment a large UDP frame that was sent
through the tunnel with an outer checksum and hardware offloads were not
available.

In order to correct this we need to update the feature flags that are
passed to the skb_segment function so that in the event of UDP
fragmentation being requested for the inner header the segmentation
function will correctly generate the checksum for the payload if we cannot
segment the outer header.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/gre_offload.c
net/ipv4/udp_offload.c
net/ipv6/udp_offload.c
This page took 0.025239 seconds and 5 git commands to generate.