]> git.dujemihanovic.xyz Git - linux.git/commit
mptcp: fix user-space PM announced address accounting
authorPaolo Abeni <pabeni@redhat.com>
Sat, 27 Jul 2024 09:03:59 +0000 (11:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2024 12:31:26 +0000 (13:31 +0100)
commit167b93258d1e2230ee3e8a97669b4db4cc9e90aa
tree7110f08aedc22be95a9a24b2de1b2db94e79141d
parent9415d375d8520e0ed55f0c0b058928da9a5b5b3d
mptcp: fix user-space PM announced address accounting

Currently the per-connection announced address counter is never
decreased. When the user-space PM is in use, this just affect
the information exposed via diag/sockopt, but it could still foul
the PM to wrong decision.

Add the missing accounting for the user-space PM's sake.

Fixes: 8b1c94da1e48 ("mptcp: only send RM_ADDR in nl_cmd_remove")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/pm_netlink.c