summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/core.c
diff options
context:
space:
mode:
authorMike Looijmans <mike.looijmans@topic.nl>2015-08-05 08:54:55 +0200
committerFelipe Balbi <balbi@ti.com>2015-09-27 10:54:31 -0500
commitbba787a860fa8c7b4ab3cefbfcb2b214b2aed30c (patch)
tree4f9d37b42a4dda49678275baa62a82a3689a0bd5 /drivers/usb/dwc2/core.c
parent428163d703712d11cacfddaf30f40b18ccc50042 (diff)
usb: gadget: ether: Allow jumbo frames
USB network adapters support Jumbo frames. The only thing blocking that feature is the code in the gadget driver that disposes of packets larger than 1518 bytes, and the limit on the ioctl to set the mtu. This patch relaxes these limits, and allows up to 15k frames sizes. The 15k value was chosen because 16k does not work on all platforms, and usingclose to 16k will result in allocating 5 or 8 4k pages to store the skb, wasting pages at no measurable performance gain. On a topic-miami board (Zynq-7000), iperf3 performance reports: MTU= 1500, PC-to-gadget: 139 Mbps, Gadget-to-PC: 116 Mbps MTU=15000, PC-to-gadget: 239 Mbps, Gadget-to-PC: 361 Mbps On boards with slower CPUs the performance improvement will be relatively much larger, e.g. an OMAP-L138 increased from 40 to 220 Mbps using a similar patch on an 2.6.37 kernel. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc2/core.c')
0 files changed, 0 insertions, 0 deletions