]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: more accurate MPC endpoint tracking
authorPaolo Abeni <pabeni@redhat.com>
Mon, 11 Jul 2022 19:16:32 +0000 (12:16 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jul 2022 01:37:20 +0000 (18:37 -0700)
commite5e54c2d96546e8fbd20014b7fa22fbe6e76d99b
tree0fd6e133657159c2277f17946dc95cba6a2f5933
parent392391f2b9d4c60f86b7c4704223d481a825fbb4
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>
net/mptcp/pm_netlink.c
net/mptcp/protocol.h