]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: add rmem queue accounting
authorFlorian Westphal <fw@strlen.de>
Wed, 26 Feb 2020 09:14:49 +0000 (10:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 04:46:26 +0000 (20:46 -0800)
commitc1aaf2b0e70c8de1f322c65449f6d237050f39c1
tree18f3dcf88e85968fbd7175b631791272ad96c0e6
parentcecda4aca3756a4a78cd3e53222ea361dc690918
mptcp: add rmem queue accounting

If userspace never drains the receive buffers we must stop draining
the subflow socket(s) at some point.

This adds the needed rmem accouting for this.
If the threshold is reached, we stop draining the subflows.

Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c