mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 04:53:36 +01:00
Merge 637f847b68
into 0fc810ae3a
This commit is contained in:
commit
ae8a7b0730
1 changed files with 7 additions and 0 deletions
|
@ -836,6 +836,13 @@ static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf)
|
|||
}
|
||||
dev->net->netdev_ops = &qmi_wwan_netdev_ops;
|
||||
dev->net->sysfs_groups[0] = &qmi_wwan_sysfs_attr_group;
|
||||
/* LTE Networks don't always respect their own MTU on receive side;
|
||||
* e.g. AT&T pushes 1430 MTU but still allows 1500 byte packets from
|
||||
* far-end network. Make receive buffer large enough to accommodate
|
||||
* them, and add four bytes so MTU does not equal MRU on network
|
||||
* with 1500 MTU otherwise usbnet_change_mtu() will change both.
|
||||
*/
|
||||
dev->rx_urb_size = ETH_DATA_LEN + 4;
|
||||
err:
|
||||
return status;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue