Commit 06519d55 authored by Eric Holmberg's avatar Eric Holmberg Committed by Sudhir Sharma
Browse files

tty: n_smux: Adjust receive retry queue parameters



If the remote modem has queued many small packets in the UART FIFO and
the SMUX client cannot provide receive buffers fast enough, then the
auto flow control command may not get processed before the receive queue
has overflowed.  In measured cases, an average of 10 packets are
received after flow control is enabled.  In the failure cases, up to 19
packets are received which is more than the max queue size (32 packets)
minus the high watermark (16 packets) which causes an overflow.

Use a bigger retry queue and more aggressive watermark values to make
auto flow control more responsive and to allow more packets to get
queued before an overflow occurs.

CRs-Fixed: 394198
Signed-off-by: default avatarEric Holmberg <eholmber@codeaurora.org>
(cherry picked from commit 0ab6fc17)

Change-Id: I20817f4dab3360f3c62bd83e74594555571a3a9f
Signed-off-by: default avatarSudhir Sharma <sudsha@codeaurora.org>
parent 664370f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment