diff options
author | David S. Miller <davem@davemloft.net> | 2019-04-09 08:39:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-09 08:39:36 +0200 |
commit | 310655b07ae8ef0b8fdb641b610ded2052215664 (patch) | |
tree | d9b7a500ef21a087a337e1f1bb9218000cf1c03d /drivers/net/vrf.c | |
parent | ethtool: thunder_bgx: use ethtool.h constants for speed and duplex (diff) | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | linux-310655b07ae8ef0b8fdb641b610ded2052215664.tar.xz linux-310655b07ae8ef0b8fdb641b610ded2052215664.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'drivers/net/vrf.c')
-rw-r--r-- | drivers/net/vrf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c index 18d752ae554f..ce711e5f8c5d 100644 --- a/drivers/net/vrf.c +++ b/drivers/net/vrf.c @@ -1273,8 +1273,12 @@ static void vrf_setup(struct net_device *dev) dev->priv_flags |= IFF_NO_QUEUE; dev->priv_flags |= IFF_NO_RX_HANDLER; - dev->min_mtu = 0; - dev->max_mtu = 0; + /* VRF devices do not care about MTU, but if the MTU is set + * too low then the ipv4 and ipv6 protocols are disabled + * which breaks networking. + */ + dev->min_mtu = IPV6_MIN_MTU; + dev->max_mtu = ETH_MAX_MTU; } static int vrf_validate(struct nlattr *tb[], struct nlattr *data[], |