diff options
author | Jakub Sitnicki <jkbs@redhat.com> | 2017-01-13 10:12:20 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-16 13:22:12 -0500 |
commit | 02ca0423fd65a0a9c4d70da0dbb8f4b8503f08c7 (patch) | |
tree | 92f2d3c0716e4c8e2b2990d57a34bd68bbfddc7f /drivers/net/phy/dp83867.c | |
parent | 1666d49e1d416fcc2cce708242a52fe3317ea8ba (diff) |
ip6_tunnel: Account for tunnel header in tunnel MTU
With ip6gre we have a tunnel header which also makes the tunnel MTU
smaller. We need to reserve room for it. Previously we were using up
space reserved for the Tunnel Encapsulation Limit option
header (RFC 2473).
Also, after commit b05229f44228 ("gre6: Cleanup GREv6 transmit path,
call common GRE functions") our contract with the caller has
changed. Now we check if the packet length exceeds the tunnel MTU after
the tunnel header has been pushed, unlike before.
This is reflected in the check where we look at the packet length minus
the size of the tunnel header, which is already accounted for in tunnel
MTU.
Fixes: b05229f44228 ("gre6: Cleanup GREv6 transmit path, call common GRE functions")
Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/dp83867.c')
0 files changed, 0 insertions, 0 deletions