1
0
Files
linux/drivers
Daniel Borkmann 345010b5c4 net: vxlan: use custom ndo_change_mtu handler
When adding a new vxlan device to an "underlying carrier" (here:
dst->remote_ifindex), the MTU size assigned to the vxlan device
is the MTU at setup time of the carrier - needed headroom, when
adding a vxlan device w/o explicit carrier, then it defaults
to 1500.

In case of an explicit carrier that supports jumbo frames, we
currently cannot change vxlan MTU via ip(8) to > 1500 in
post-setup time, as vxlan driver uses eth_change_mtu() as default
method for manually setting MTU.

Hence, use a custom implementation that only falls back to
eth_change_mtu() in case we didn't use a dev parameter on device
setup time, and otherwise allow a max MTU setting of the carrier
incl. adjustment for headroom.

Reported-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-12-22 18:01:08 -05:00
..
2013-11-27 01:03:27 +01:00
2013-11-07 19:24:20 +01:00
2013-12-02 21:11:30 +00:00
2013-12-18 17:53:59 -05:00
2013-12-11 10:56:21 -05:00
2013-12-10 13:12:28 +01:00
2013-11-29 12:53:19 -08:00
2013-12-06 15:22:05 -05:00
2013-12-10 08:48:15 +01:00