]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: fix subflow accounting on close
authorPaolo Abeni <pabeni@redhat.com>
Thu, 12 May 2022 23:26:41 +0000 (16:26 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 May 2022 00:04:30 +0000 (17:04 -0700)
commitfff98984269f84b49bad2b5e9de7a963b0d1e523
tree3cedfc5c31871fc58581ca09618d1b71ee8cf5c8
parentc52b94522de3b2e8d6a5467361ff87f12fe219ca
mptcp: fix subflow accounting on close

If the PM closes a fully established MPJ subflow or the subflow
creation errors out in it's early stage the subflows counter is
not bumped accordingly.

This change adds the missing accounting, additionally taking care
of updating accordingly the 'accept_subflow' flag.

Fixes: 02fcb7437966 ("mptcp: do not block subflows creation on errors")
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.c
net/mptcp/protocol.h
net/mptcp/subflow.c