RNDIS: Add Data aggregation (multi packet) support
authorBadhri Jagan Sridharan <Badhri@google.com>
Thu, 18 Sep 2014 17:46:08 +0000 (10:46 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:04 +0000 (13:52 -0800)
commitdebf5d6eacef1795d537c64992e8ffa6e7aec952
treeebde159274b4ef63290ab726e0c02431a71060c0
parent78281f6ed79413e5a16eac6edc4a72c6836ae5a9
RNDIS: Add Data aggregation (multi packet) support

Add data aggregation support using RNDIS Multi Packet feature
to achieve better UDP Downlink throughput. Max 3 RNDIS Packets
aggregated into one RNDIS Packet with this implementation.

With this change, seeing UDP Downlink throughput increase
from 90 Mbps to above 100 Mbps when using Iperf and sending
data more than 100 Mbps.

Change-Id: I21c39482718944bb1b1068bdd02f626531e58f08
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: Rajkumar Raghupathy <raghup@codeaurora.org>
drivers/usb/gadget/function/f_rndis.c
drivers/usb/gadget/function/u_ether.c