OSDN Git Service

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)
commit600911ff5f72baeac3fc6a9532ec8ba949cd818a
tree18f3dcf88e85968fbd7175b631791272ad96c0e6
parent6771bfd9ee2460c13e38c0cd46a3afb5404ae716
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