Commit 2c7a2cf3 authored by John Greb's avatar John Greb Committed by Greg Kroah-Hartman
Browse files

USB: Gadget Ethernet: Re-enable Jumbo frames.



commit eea52743 upstream

Fixes: <b3e3893e> ("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: default avatarJohn Greb <h3x4m3r0n@gmail.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: default avatarSudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 944a2bc4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -850,6 +850,10 @@ struct net_device *gether_setup_name_default(const char *netname)
	net->ethtool_ops = &ops;
	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;
}
EXPORT_SYMBOL_GPL(gether_setup_name_default);