Skip to content

Commit e39df35

Browse files
matttbegregkh
authored andcommitted
selftests: mptcp: pm: check flush doesn't reset limits
commit 452690b upstream. This modification is linked to the parent commit where the received ADD_ADDR limit was accidentally reset when the endpoints were flushed. To validate that, the test is now flushing endpoints after having set new limits, and before checking them. The 'Fixes' tag here below is the same as the one from the previous commit: this patch here is not fixing anything wrong in the selftests, but it validates the previous fix for an issue introduced by this commit ID. Fixes: 01cacb0 ("mptcp: add netlink-based PM") Cc: stable@vger.kernel.org Reviewed-by: Mat Martineau <martineau@kernel.org> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Link: https://patch.msgid.link/20250815-net-mptcp-misc-fixes-6-17-rc2-v1-3-521fe9957892@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 18ab643 commit e39df35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/net/mptcp/pm_netlink.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ set_limits 1 9 2>/dev/null
198198
check "get_limits" "${default_limits}" "subflows above hard limit"
199199

200200
set_limits 8 8
201+
flush_endpoint ## to make sure it doesn't affect the limits
201202
check "get_limits" "$(format_limits 8 8)" "set limits"
202203

203204
flush_endpoint

0 commit comments

Comments
 (0)