summaryrefslogtreecommitdiff
path: root/net/mptcp/protocol.h
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2022-07-11 12:16:32 -0700
committerJakub Kicinski <kuba@kernel.org>2022-07-12 18:37:20 -0700
commit3ad14f54bd7448384458e69f0183843f683ecce8 (patch)
tree0fd6e133657159c2277f17946dc95cba6a2f5933 /net/mptcp/protocol.h
parentc157bbe776b799fba885577e193e94068cefe9c7 (diff)
downloadlinux-3ad14f54bd7448384458e69f0183843f683ecce8.tar.gz
linux-3ad14f54bd7448384458e69f0183843f683ecce8.tar.bz2
linux-3ad14f54bd7448384458e69f0183843f683ecce8.zip
mptcp: more accurate MPC endpoint tracking
Currently the id accounting for the ID 0 subflow is not correct: at creation time we mark (correctly) as unavailable the endpoint id corresponding the MPC subflow source address, while at subflow removal time set as available the id 0. With this change we track explicitly the endpoint id corresponding to the MPC subflow so that we can mark it as available at removal time. Additionally this allow deleting the initial subflow via the NL PM specifying the corresponding endpoint id. Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mptcp/protocol.h')
-rw-r--r--net/mptcp/protocol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h
index e38b861263ce..5d6043c16b09 100644
--- a/net/mptcp/protocol.h
+++ b/net/mptcp/protocol.h
@@ -282,6 +282,7 @@ struct mptcp_sock {
bool use_64bit_ack; /* Set when we received a 64-bit DSN */
bool csum_enabled;
bool allow_infinite_fallback;
+ u8 mpc_endpoint_id;
u8 recvmsg_inq:1,
cork:1,
nodelay:1;