tunneling: Always use skb->len for PMTUD.
authorJesse Gross <jesse@nicira.com>
Fri, 4 Feb 2011 21:25:04 +0000 (13:25 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 4 Feb 2011 23:06:24 +0000 (15:06 -0800)
commitcc2f1abfed0501550af32d2928ec3c4417f78f0a
tree4a7e5e717eb681a48f4a581a7313038ba3f54579
parentee3cdc0028ad4c5a665075fe9ce35c79b5cbbeb1
tunneling: Always use skb->len for PMTUD.

Currently IPv4 uses the length of the packet in the IP header
and IPv6 uses actual length of the packet for path MTU discovery.
This changes both to use the length of the packet to be consistent
with each other and the the Linux IP stack and also to match what
actually causes fragmentation.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/tunnel.c