Skip to content

Commit

Permalink
usb: gadget: f_ncm: set SuperSpeed bulk descriptor bMaxBurst to 15
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lorenzo Colitti authored and Felipe Balbi committed Oct 2, 2020
1 parent 986499b commit a176b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/function/f_ncm.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ static struct usb_ss_ep_comp_descriptor ss_ncm_bulk_comp_desc = {
.bDescriptorType = USB_DT_SS_ENDPOINT_COMP,

/* the following 2 values can be tweaked if necessary */
/* .bMaxBurst = 0, */
.bMaxBurst = 15,
/* .bmAttributes = 0, */
};

Expand Down

0 comments on commit a176b1a

Please sign in to comment.