]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit86f9131dcfbb4f618f2d965fdc529b8deabb5261
tree593d446859b883db6cfb9f8926a28efc141e0a99
parent2b117f24027382b0f1dc0ddb861b92fcd094d50a
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