diff options
author | Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com> | 2017-04-24 15:00:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-25 11:45:38 -0400 |
commit | 05ff8378975a9d5fdde19104b62163d2902926fb (patch) | |
tree | 71f1dae3165074cbdea3147a6689a1900e0ce02f /net/sunrpc | |
parent | 3364d61c92ecca7a8da990659c4b0ae1fcf0fcfb (diff) |
tipc: fix socket flow control accounting error at tipc_recv_stream
Until now in tipc_recv_stream(), we update the received
unacknowledged bytes based on a stack variable and not based on the
actual message size.
If the user buffer passed at tipc_recv_stream() is smaller than the
received skb, the size variable in stack differs from the actual
message size in the skb. This leads to a flow control accounting
error causing permanent congestion.
In this commit, we fix this accounting error by always using the
size of the incoming message.
Fixes: 10724cc7bb78 ("tipc: redesign connection-level flow control")
Signed-off-by: Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc')
0 files changed, 0 insertions, 0 deletions