diff options
author | Xin Long <lucien.xin@gmail.com> | 2018-06-18 04:15:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-19 18:53:46 -0400 |
commit | 548feb33c598dfaf9f8e066b842441ac49b84a8a (patch) | |
tree | 9be62402069b55d928fbb15f261d74602fae50a0 | |
parent | 4e8439aa34802deab11cee68b0ecb18f887fb153 (diff) |
ipvlan: use ETH_MAX_MTU as max mtu
Similar to the fixes on team and bonding, this restores the ability
to set an ipvlan device's mtu to anything higher than 1500.
Fixes: 91572088e3fd ("net: use core MTU range checking in core net infra")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ipvlan/ipvlan_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c index 4377c26f714d..d02f0a7c534e 100644 --- a/drivers/net/ipvlan/ipvlan_main.c +++ b/drivers/net/ipvlan/ipvlan_main.c | |||
@@ -693,6 +693,7 @@ void ipvlan_link_setup(struct net_device *dev) | |||
693 | { | 693 | { |
694 | ether_setup(dev); | 694 | ether_setup(dev); |
695 | 695 | ||
696 | dev->max_mtu = ETH_MAX_MTU; | ||
696 | dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING); | 697 | dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING); |
697 | dev->priv_flags |= IFF_UNICAST_FLT | IFF_NO_QUEUE; | 698 | dev->priv_flags |= IFF_UNICAST_FLT | IFF_NO_QUEUE; |
698 | dev->netdev_ops = &ipvlan_netdev_ops; | 699 | dev->netdev_ops = &ipvlan_netdev_ops; |