From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2 net-next 1/2] tcp: add tcpi_bytes_acked to tcp_info Date: Wed, 29 Apr 2015 18:12:29 -0400 (EDT) Message-ID: <20150429.181229.257255832005649604.davem@davemloft.net> References: <1430260098-14127-1-git-send-email-edumazet@google.com> <1430260098-14127-2-git-send-email-edumazet@google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com, mattmathis@google.com, salo@google.com, kafai@fb.com, rapier@psc.edu To: edumazet@google.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:51529 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750951AbbD2WMe (ORCPT ); Wed, 29 Apr 2015 18:12:34 -0400 In-Reply-To: <1430260098-14127-2-git-send-email-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Tue, 28 Apr 2015 15:28:17 -0700 > This patch tracks total number of bytes acked for a TCP socket. > This is the sum of all changes done to tp->snd_una, and allows > for precise tracking of delivered data. > > RFC4898 named this : tcpEStatsAppHCThruOctetsAcked > > This is a 64bit field, and can be fetched both from TCP_INFO > getsockopt() if one has a handle on a TCP socket, or from inet_diag > netlink facility (iproute2/ss patch will follow) > > Note that tp->bytes_acked was placed near tp->snd_una for > best data locality and minimal performance impact. > > Signed-off-by: Eric Dumazet > Acked-by: Yuchung Cheng Applied.