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

Commit 275d0244 authored by ChandanaKishori Chiluveru's avatar ChandanaKishori Chiluveru
Browse files

usb: gadget: mtp: Increase RX transfer length to 1M



The test results indicate that larger transfers improve write speeds.
The Rx request transfer length is now 16K bytes. Increase the Rx
transfer length from 16K to 1MB to get good throughputs.

Change-Id: I3c64e6b96d569b4dc61805a53a0835db9142d55e
Signed-off-by: default avatarChandanaKishori Chiluveru <cchilu@codeaurora.org>
parent 0597b5d5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@

#include "configfs.h"

#define MTP_RX_BUFFER_INIT_SIZE    1048576
#define MTP_BULK_BUFFER_SIZE       16384
#define INTR_BUFFER_SIZE           28
#define MAX_INST_NAME_LEN          40
@@ -77,7 +78,7 @@

#define MAX_ITERATION		100

unsigned int mtp_rx_req_len = MTP_BULK_BUFFER_SIZE;
unsigned int mtp_rx_req_len = MTP_RX_BUFFER_INIT_SIZE;
module_param(mtp_rx_req_len, uint, S_IRUGO | S_IWUSR);

unsigned int mtp_tx_req_len = MTP_BULK_BUFFER_SIZE;