mptcp: add SIOCINQ, OUTQ and OUTQNSD ioctls
authorFlorian Westphal <fw@strlen.de>
Fri, 3 Dec 2021 22:35:34 +0000 (14:35 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 7 Dec 2021 19:36:29 +0000 (11:36 -0800)
commit644807e3e4629b3fbb99032401f57a0f7e06f506
treec140ca4456cec862ffb2a3a21edbe0388057aca2
parent5cbd886ce2a9f4627ff9cdab1bc97a401a24b309
mptcp: add SIOCINQ, OUTQ and OUTQNSD ioctls

Allows to query in-sequence data ready for read(), total bytes in
write queue and total bytes in write queue that have not yet been sent.

v2: remove unneeded READ_ONCE() (Paolo Abeni)
v3: check for new data unconditionally in SIOCINQ ioctl (Mat Martineau)

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c