mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
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: 91572088e3
("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>
This commit is contained in:
parent
4e8439aa34
commit
548feb33c5
1 changed files with 1 additions and 0 deletions
|
@ -693,6 +693,7 @@ void ipvlan_link_setup(struct net_device *dev)
|
||||||
{
|
{
|
||||||
ether_setup(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_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING);
|
||||||
dev->priv_flags |= IFF_UNICAST_FLT | IFF_NO_QUEUE;
|
dev->priv_flags |= IFF_UNICAST_FLT | IFF_NO_QUEUE;
|
||||||
dev->netdev_ops = &ipvlan_netdev_ops;
|
dev->netdev_ops = &ipvlan_netdev_ops;
|
||||||
|
|
Loading…
Reference in a new issue