]> 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)
commit2304e877f75c5ae78ca3db07ed803a2dbf2ea72a
tree0fd6e133657159c2277f17946dc95cba6a2f5933
parent4b7cd325671b62714f186e905dad9cc7402ed867
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