]> 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)
commit42ef7c10f61bff4343eb8fa08ae794e8ba155e6b
tree593d446859b883db6cfb9f8926a28efc141e0a99
parent4d0b3a1619d6bb9207af787fad890e069dc53215
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