diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2020-01-13 23:57:00 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-14 18:36:41 -0800 |
commit | 5fdeb0d372ab33b4175043a2a4a1730239a217f1 (patch) | |
tree | 585b1c80d72a7f6d7ff55158fe511914669990f1 /.gitignore | |
parent | cb6530b99fafea6c0636c4640bd21301d12cdbc9 (diff) |
net: qrtr: Implement outgoing flow control
In order to prevent overconsumption of resources on the remote side QRTR
implements a flow control mechanism.
The mechanism works by the sender keeping track of the number of
outstanding unconfirmed messages that has been transmitted to a
particular node/port pair.
Upon count reaching a low watermark (L) the confirm_rx bit is set in the
outgoing message and when the count reaching a high watermark (H)
transmission will be blocked upon the reception of a resume_tx message
from the remote, that resets the counter to 0.
This guarantees that there will be at most 2H - L messages in flight.
Values chosen for L and H are 5 and 10 respectively.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions