OSDN Git Service

mptcp: more careful RM_ADDR generation
authorPaolo Abeni <pabeni@redhat.com>
Mon, 7 Mar 2022 20:44:35 +0000 (12:44 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Mar 2022 06:06:11 +0000 (22:06 -0800)
commit6fa0174a7c8646fce7039b5a176b4f90b0ea513a
tree190c48efc908e85f5a01b3c21b145f195959bec3
parentf98c2bca7b2bd3fd777e05bb9e94c969381b1de8
mptcp: more careful RM_ADDR generation

The in-kernel MPTCP path manager, when processing the MPTCP_PM_CMD_FLUSH_ADDR
command, generates RM_ADDR events for each known local address. While that
is allowed by the RFC, it makes unpredictable the exact number of RM_ADDR
generated when both ends flush the PM addresses.

This change restricts the RM_ADDR generation to previously explicitly
announced addresses, and adjust the expected results in a bunch of related
self-tests.

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
tools/testing/selftests/net/mptcp/mptcp_join.sh