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)
commit08334824951dd6d1295860da07b1236d18b0b8df
tree6cb060f2472662019329028c10af017473a5549e
parent1e94082963747b551b129528714827f76a090e93
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