]> 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)
commitff2c2d7138b819a3dded3e2d1b0cab249439c04a
tree3cedfc5c31871fc58581ca09618d1b71ee8cf5c8
parent02bbcd40f6dbcdac74a63e1a495cfa2e15a93a9f
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: 50839b6d97c8 ("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