diff options
author | Jarod Wilson <jarod@redhat.com> | 2016-10-20 23:25:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-21 13:57:50 -0400 |
commit | 8b1efc0f83f1f75b8f85c70d2211007de8fd7633 (patch) | |
tree | 80b313286f4f191d241a803d5f8690b74187a4e9 /net/atm | |
parent | e8f0a89cd7591c5d4eb7c77833af865b4db356b7 (diff) | |
download | op-kernel-dev-8b1efc0f83f1f75b8f85c70d2211007de8fd7633.zip op-kernel-dev-8b1efc0f83f1f75b8f85c70d2211007de8fd7633.tar.gz |
net: remove MTU limits on a few ether_setup callers
These few drivers call ether_setup(), but have no ndo_change_mtu, and thus
were overlooked for changes to MTU range checking behavior. They
previously had no range checks, so for feature-parity, set their min_mtu
to 0 and max_mtu to ETH_MAX_MTU (65535), instead of the 68 and 1500
inherited from the ether_setup() changes. Fine-tuning can come after we get
back to full feature-parity here.
CC: netdev@vger.kernel.org
Reported-by: Asbjoern Sloth Toennesen <asbjorn@asbjorn.st>
CC: Asbjoern Sloth Toennesen <asbjorn@asbjorn.st>
CC: R Parameswaran <parameswaran.r7@gmail.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm')
-rw-r--r-- | net/atm/br2684.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/atm/br2684.c b/net/atm/br2684.c index c7d82f4..fca84e1 100644 --- a/net/atm/br2684.c +++ b/net/atm/br2684.c @@ -649,7 +649,9 @@ static void br2684_setup_routed(struct net_device *netdev) netdev->hard_header_len = sizeof(llc_oui_ipv4); /* worst case */ netdev->netdev_ops = &br2684_netdev_ops_routed; netdev->addr_len = 0; - netdev->mtu = 1500; + netdev->mtu = ETH_DATA_LEN; + netdev->min_mtu = 0; + netdev->max_mtu = ETH_MAX_MTU; netdev->type = ARPHRD_PPP; netdev->flags = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST; netdev->tx_queue_len = 100; |