usb: gadget: f_ncm: set SuperSpeed bulk descriptor bMaxBurst to 15
authorLorenzo Colitti <lorenzo@google.com>
Tue, 25 Aug 2020 05:55:04 +0000 (14:55 +0900)
committerFelipe Balbi <balbi@kernel.org>
Fri, 2 Oct 2020 06:57:41 +0000 (09:57 +0300)
commita176b1a2a73c9598f77f2fa3df67184321092f55
tree31fd0efc97e23e3753756055d65554ae1148c5f9
parent986499b1569af980a819817f17238015b27793f6
usb: gadget: f_ncm: set SuperSpeed bulk descriptor bMaxBurst to 15

This improves performance on fast connections. When directly
connecting to a Linux laptop running 5.6, single-stream iperf3
goes from ~1.7Gbps to ~2.3Gbps out, and from ~620Mbps to ~720Mbps
in.

Reviewed-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/function/f_ncm.c