mptcp: implement memory accounting for mptcp rtx queue
authorPaolo Abeni <pabeni@redhat.com>
Fri, 27 Mar 2020 21:48:45 +0000 (14:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 05:14:48 +0000 (22:14 -0700)
commitd027236c41fd024d761552d78014432d30d1be0c
treef7947a56e28119eb1497e905d1a4a0ed267e0147
parentb51f9b80c032e1af1e3e7e8dc733d2d49831e982
mptcp: implement memory accounting for mptcp rtx queue

Charge the data on the rtx queue to the master MPTCP socket, too.
Such memory in uncharged when the data is acked/dequeued.

Also account mptcp sockets inuse via a protocol specific pcpu
counter.

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