]> git.dujemihanovic.xyz Git - linux.git/commit
mptcp: fix NL PM announced address accounting
authorPaolo Abeni <pabeni@redhat.com>
Sat, 27 Jul 2024 09:04:00 +0000 (11:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2024 12:31:27 +0000 (13:31 +0100)
commit4b317e0eb287bd30a1b329513531157c25e8b692
treea55b5359a7bff0fae8c6b1cf6e8ab71059f3bd86
parent167b93258d1e2230ee3e8a97669b4db4cc9e90aa
mptcp: fix NL PM announced address accounting

Currently the per connection announced address counter is never
decreased. As a consequence, after connection establishment, if
the NL PM deletes an endpoint and adds a new/different one, no
additional subflow is created for the new endpoint even if the
current limits allow that.

Address the issue properly updating the signaled address counter
every time the NL PM removes such addresses.

Fixes: 01cacb00b35c ("mptcp: add netlink-based PM")
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