mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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: [email protected] Reported-by: Asbjoern Sloth Toennesen <[email protected]> CC: Asbjoern Sloth Toennesen <[email protected]> CC: R Parameswaran <[email protected]> Signed-off-by: Jarod Wilson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
e8f0a89cd7
commit
8b1efc0f83
5 changed files with 11 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue