From patchwork Mon Oct 23 20:44:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mat Martineau X-Patchwork-Id: 13433548 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40C1C8481; Mon, 23 Oct 2023 20:45:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sQW4jUKa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2B27C43395; Mon, 23 Oct 2023 20:45:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698093933; bh=GZ2U3nahnSpjVZfHanU6T5qe2gYwnIdXa4rzFxk9ipg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=sQW4jUKaqI9xAi29mP87H8Rqh6kB3ho89hXKFOSzGn6Gs6LRqFPTXnp0AYjR3WpIC 83z7QdKD6ZGhVU4Bl1OU8DLooMn/166nbkzER9mIorska+9tDypyxLkNJBDnodXXbC Nant98w/XD9z4RKSJvp4HNTsCFZNfh0tf1TUMiGKxHWHqtb3Zf3k3cvSsu5BBf9lYG EhUB/J1lISk6A1d9QhgWD1T2DoUn9OqG4ptY3Wd/PjCYPoYi92gfMYN7fR9SZMoKw1 /U+Gbm7p7WaPdEWsdMLGHJ1fgi5/iYnFSQ+L+mH0rxh9R876DIJzMicPG12T/TqjjT pQNBcyjHIgm0Q== From: Mat Martineau Date: Mon, 23 Oct 2023 13:44:35 -0700 Subject: [PATCH net-next 2/9] mptcp: properly account fastopen data Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231023-send-net-next-20231023-2-v1-2-9dc60939d371@kernel.org> References: <20231023-send-net-next-20231023-2-v1-0-9dc60939d371@kernel.org> In-Reply-To: <20231023-send-net-next-20231023-2-v1-0-9dc60939d371@kernel.org> To: Matthieu Baerts , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, mptcp@lists.linux.dev, Mat Martineau X-Mailer: b4 0.12.4 X-Patchwork-Delegate: kuba@kernel.org From: Paolo Abeni 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") Reviewed-by: Mat Martineau Signed-off-by: Paolo Abeni Signed-off-by: Mat Martineau --- net/mptcp/fastopen.c | 1 + 1 file changed, 1 insertion(+) 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);