]> git.baikalelectronics.ru Git - kernel.git/commit
GSO/UDP: Use skb->len instead of udph->len to determine length of original skb
authorAlexander Duyck <aduyck@mirantis.com>
Fri, 11 Mar 2016 22:05:47 +0000 (14:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 03:55:14 +0000 (23:55 -0400)
commit916f23d0e621f1db34cad2c8b49fd624ca627f26
tree6cb060f2472662019329028c10af017473a5549e
parent8f0af7adfdafb08c5fefa3b0026651dafdd46f42
GSO/UDP: Use skb->len instead of udph->len to determine length of original skb

It is possible for tunnels to end up generating IP or IPv6 datagrams that
are larger than 64K and expecting to be segmented.  As such we need to deal
with length values greater than 64K.  In order to accommodate this we need
to update the code to work with a 32b length value instead of a 16b one.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp_offload.c