ip_tunnel: Account for secondary encapsulation header in max_headroom
authorTom Herbert <therbert@google.com>
Fri, 3 Oct 2014 22:48:07 +0000 (15:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Oct 2014 23:53:32 +0000 (16:53 -0700)
commit7371e0221c7721a1486fef745abaa8ae84571621
treefebcd3084dec87b10a8b2508679c46e97d487a19
parent01291202ed4ad548f9a7147d20425cb1d24f49a7
ip_tunnel: Account for secondary encapsulation header in max_headroom

When adjusting max_header for the tunnel interface based on egress
device we need to account for any extra bytes in secondary encapsulation
(e.g. FOU).

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel.c