[SRU][BIONIC][PATCH 1/1] ipvlan: use ETH_MAX_MTU as max mtu
Nivedita Singhvi
nivedita.singhvi at canonical.com
Thu May 21 06:44:02 UTC 2020
From: Xin Long <lucien.xin at gmail.com>
BugLink: https://bugs.launchpad.net/bugs/1879658
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 at gmail.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
Signed-off-by: Nivedita Singhvi <nivedita.singhvi at canonical.com>
(cherry picked from commit 548feb33c598dfaf9f8e066b842441ac49b84a8a)
---
drivers/net/ipvlan/ipvlan_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c
index cdc074ab498b..11d950e01414 100644
--- a/drivers/net/ipvlan/ipvlan_main.c
+++ b/drivers/net/ipvlan/ipvlan_main.c
@@ -711,6 +711,7 @@ void ipvlan_link_setup(struct net_device *dev)
{
ether_setup(dev);
+ dev->max_mtu = ETH_MAX_MTU;
dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING);
dev->priv_flags |= IFF_UNICAST_FLT | IFF_NO_QUEUE;
dev->netdev_ops = &ipvlan_netdev_ops;
--
2.17.1
More information about the kernel-team
mailing list