]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: add TCP_INQ cmsg support
authorFlorian Westphal <fw@strlen.de>
Fri, 3 Dec 2021 22:35:32 +0000 (14:35 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 7 Dec 2021 19:36:29 +0000 (11:36 -0800)
commit7637f3e6274984781d1bdacf5cbc81d8016671c8
treefbb3d3ae9ff493a1d6a76b13567f5b2993afb98a
parent5381f5e16d77bf0841ec63123ec6a7693dc57115
mptcp: add TCP_INQ cmsg support

Support the TCP_INQ setsockopt.

This is a boolean that tells recvmsg path to include the remaining
in-sequence bytes in the cmsg data.

v2: do not use CB(skb)->offset, increment map_seq instead (Paolo Abeni)
v3: adjust CB(skb)->map_seq when taking skb from ofo queue (Paolo Abeni)

Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/224
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
net/mptcp/protocol.h
net/mptcp/sockopt.c