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)
commit95d686517884a403412b000361cee2b08b2ed1e6
tree3cedfc5c31871fc58581ca09618d1b71ee8cf5c8
parent04c494e68a1340cb5c70d4704ac32d863dc64293
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: a88c9e496937 ("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