mptcp: fix error mibs accounting
authorPaolo Abeni <pabeni@redhat.com>
Tue, 28 Jun 2022 01:02:35 +0000 (18:02 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 29 Jun 2022 03:45:42 +0000 (20:45 -0700)
commit0c1f78a49af721490a5ad70b73e8b4d382465dae
tree73c6bda94eff7281c1c1a6ec2c778b7971f37d22
parentab84db251c04d38b8dc7ee86e13d4050bedb1c88
mptcp: fix error mibs accounting

The current accounting for MP_FAIL and FASTCLOSE is not very
accurate: both can be increased even when the related option is
not really sent. Move the accounting into the correct place.

Fixes: eb7f33654dc1 ("mptcp: add the mibs for MP_FAIL")
Fixes: 1e75629cb964 ("mptcp: add the mibs for MP_FASTCLOSE")
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/options.c
net/mptcp/pm.c
net/mptcp/subflow.c