diff mbox series

[mptcp-next,1/4] mptcp: properly account fastopen data

Message ID 5e4a1ba3dedb8466fe33004f0fffdead2d3f5b18.1695208066.git.pabeni@redhat.com (mailing list archive)
State Accepted, archived
Commit 0188ee6897bb74eb1df6031751728a3e86bcf741
Delegated to: Matthieu Baerts
Headers show
Series mptcp: performance improvemets | expand

Commit Message

Paolo Abeni Sept. 20, 2023, 12:45 p.m. UTC
Currently the socket level counter aggregating the received data
does not take in account the data received via fastopen.

Address the issue updating the counter as required.

Fixes: 38967f424b5b ("mptcp: track some aggregate data counters")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
---
 net/mptcp/fastopen.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/net/mptcp/fastopen.c b/net/mptcp/fastopen.c
index bceaab8dd8e4..74698582a285 100644
--- a/net/mptcp/fastopen.c
+++ b/net/mptcp/fastopen.c
@@ -52,6 +52,7 @@  void mptcp_fastopen_subflow_synack_set_params(struct mptcp_subflow_context *subf
 
 	mptcp_set_owner_r(skb, sk);
 	__skb_queue_tail(&sk->sk_receive_queue, skb);
+	mptcp_sk(sk)->bytes_received += skb->len;
 
 	sk->sk_data_ready(sk);