diff options
author | Jarno Rajahalme <jarno@ovn.org> | 2017-02-15 08:16:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-15 20:40:27 +0300 |
commit | 425df17ce3a26d98f76e2b6b0af2acf4aeb0b026 (patch) | |
tree | 539d483a032bac2204724819cde19de143696d97 /net/openvswitch | |
parent | 8ae70032552a8082734d0b8550848cf6bf92e1d5 (diff) | |
download | linux-425df17ce3a26d98f76e2b6b0af2acf4aeb0b026.tar.xz |
openvswitch: Set internal device max mtu to ETH_MAX_MTU.
Commit 91572088e3fd ("net: use core MTU range checking in core net
infra") changed the openvswitch internal device to use the core net
infra for controlling the MTU range, but failed to actually set the
max_mtu as described in the commit message, which now defaults to
ETH_DATA_LEN.
This patch fixes this by setting max_mtu to ETH_MAX_MTU after
ether_setup() call.
Fixes: 91572088e3fd ("net: use core MTU range checking in core net infra")
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch')
-rw-r--r-- | net/openvswitch/vport-internal_dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c index 09141a18ee2d..89193a634da4 100644 --- a/net/openvswitch/vport-internal_dev.c +++ b/net/openvswitch/vport-internal_dev.c @@ -149,6 +149,8 @@ static void do_setup(struct net_device *netdev) { ether_setup(netdev); + netdev->max_mtu = ETH_MAX_MTU; + netdev->netdev_ops = &internal_dev_netdev_ops; netdev->priv_flags &= ~IFF_TX_SKB_SHARING; |