From: Eric Dumazet Date: Tue, 28 Apr 2015 22:28:17 +0000 (-0700) Subject: tcp: add tcpi_bytes_acked to tcp_info X-Git-Tag: omap-for-v4.2/wakeirq-drivers~2^2~30^2~34^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0df48c26d8418c5c9fba63fac15b660d70ca2f1c;p=pandora-kernel.git tcp: add tcpi_bytes_acked to tcp_info 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 Cc: Matt Mathis Cc: Eric Salo Cc: Martin Lau Cc: Chris Rapier Signed-off-by: David S. Miller --- Reading git-diff-tree failed