mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
USB: Gadget Ethernet: Re-enable Jumbo frames.
Fixes: <b3e3893e1253> ("net: use core MTU range checking") which patched only one of two functions used to setup the USB Gadget Ethernet driver, causing a serious performance regression in the ability to increase mtu size above 1500. Signed-off-by: John Greb <h3x4m3r0n@gmail.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
c7c24e7a04
commit
eea52743eb
1 changed files with 4 additions and 0 deletions
|
@ -844,6 +844,10 @@ struct net_device *gether_setup_name_default(const char *netname)
|
||||||
net->ethtool_ops = &ops;
|
net->ethtool_ops = &ops;
|
||||||
SET_NETDEV_DEVTYPE(net, &gadget_type);
|
SET_NETDEV_DEVTYPE(net, &gadget_type);
|
||||||
|
|
||||||
|
/* MTU range: 14 - 15412 */
|
||||||
|
net->min_mtu = ETH_HLEN;
|
||||||
|
net->max_mtu = GETHER_MAX_ETH_FRAME_LEN;
|
||||||
|
|
||||||
return net;
|
return net;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(gether_setup_name_default);
|
EXPORT_SYMBOL_GPL(gether_setup_name_default);
|
||||||
|
|
Loading…
Add table
Reference in a new issue