OSDN Git Service

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)
commit2c9e77659a0c8d7ce96af3e420914ace1e3f7d21
treefbb3d3ae9ff493a1d6a76b13567f5b2993afb98a
parentc0e5e11af12b76d0dbed700c1088c6827cdcf56c
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