mptcp: fix bad RCVPRUNED mib accounting
authorPaolo Abeni <pabeni@redhat.com>
Wed, 31 Jul 2024 10:10:14 +0000 (12:10 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 1 Aug 2024 10:30:13 +0000 (12:30 +0200)
commit0a567c2a10033bf04ed618368d179bce6977984b
tree02dac07cb509fb83eee5b156023b27fac3bc8cac
parent2b4a32daa6de7ff4c978c07878880ab2bb475932
mptcp: fix bad RCVPRUNED mib accounting

Since its introduction, the mentioned MIB accounted for the wrong
event: wake-up being skipped as not-needed on some edge condition
instead of incoming skb being dropped after landing in the (subflow)
receive queue.

Move the increment in the correct location.

Fixes: ce599c516386 ("mptcp: properly account bulk freed memory")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/mptcp/protocol.c