Skip to content

Commit 68fc0f4

Browse files
matttbekuba-moo
authored andcommitted
mptcp: pm: kernel: flush: do not reset ADD_ADDR limit
A flush of the MPTCP endpoints should not affect the MPTCP limits. In other words, 'ip mptcp endpoint flush' should not change 'ip mptcp limits'. But it was the case: the MPTCP_PM_ATTR_RCV_ADD_ADDRS (add_addr_accepted) limit was reset by accident. Removing the reset of this counter during a flush fixes this issue. Fixes: 01cacb0 ("mptcp: add netlink-based PM") Cc: [email protected] Reported-by: Thomas Dreibholz <[email protected]> Closes: multipath-tcp/mptcp_net-next#579 Reviewed-by: Mat Martineau <[email protected]> Signed-off-by: Matthieu Baerts (NGI0) <[email protected]> Link: https://patch.msgid.link/20250815-net-mptcp-misc-fixes-6-17-rc2-v1-2-521fe9957892@kernel.org Signed-off-by: Jakub Kicinski <[email protected]>
1 parent ccab044 commit 68fc0f4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/mptcp/pm_kernel.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,6 @@ static void __flush_addrs(struct list_head *list)
10851085
static void __reset_counters(struct pm_nl_pernet *pernet)
10861086
{
10871087
WRITE_ONCE(pernet->add_addr_signal_max, 0);
1088-
WRITE_ONCE(pernet->add_addr_accept_max, 0);
10891088
WRITE_ONCE(pernet->local_addr_max, 0);
10901089
pernet->addrs = 0;
10911090
}

0 commit comments

Comments
 (0)