Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3451712d authored by Azhar Shaikh's avatar Azhar Shaikh
Browse files

usb: gadget: Improve downlink throughput by enabling aggregation



There is low throughput of around 100Mbps for CAT6 seen on UDP-DL for
rmnet when using the u_ether transport.
Rmnet driver processes 10 USB requests at a time and then relinquishes
the CPU. Due to this implementation, network queue is being flow
controlled very often and also flow control is disabled after a
long time. Hence DL throughput decreases.
So aggregate 10 IP packets at a time and send in one USB request,
which improves the throughput from 100Mbps to 294Mbps.

CRs-fixed: 699603
Change-Id: I71c7f72c7c10a25bdcc50fc3d6859bff9555a500
Signed-off-by: default avatarAzhar Shaikh <azhars@codeaurora.org>
parent 408d933c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -523,6 +523,8 @@ static int gport_rmnet_connect(struct f_rmnet *dev, unsigned intf)

			return PTR_ERR(net);
		}
		gether_update_dl_max_pkts_per_xfer(&dev->gether_port, 10);
		gether_update_dl_max_xfer_size(&dev->gether_port, 16384);
		break;
	case USB_GADGET_XPORT_NONE:
		 break;