Re: [PATCH v2 net-next 2/2] tcp: add tcpi_bytes_received to tcp_info

2015-04-29 Thread David Miller
From: Eric Dumazet Date: Tue, 28 Apr 2015 15:28:18 -0700 > This patch tracks total number of payload bytes received on a TCP socket. > This is the sum of all changes done to tp->rcv_nxt > > RFC4898 named this : tcpEStatsAppHCThruOctetsReceived > > This is a 64bit field, and can be fetched both

Re: [PATCH v2 net-next 2/2] tcp: add tcpi_bytes_received to tcp_info

2015-04-28 Thread Eric Dumazet
On Tue, 2015-04-28 at 15:56 -0700, Yuchung Cheng wrote: > Acked-by: Yuchung Cheng > Thanks ! > tho I slightly prefer to call tcp_rcv_nxt_update() when rcv_nxt is > updated in TFO for consistency. Right, but is the tp->rcv_nxt prior value even valid at this point ? :) Anyway, this would need

Re: [PATCH v2 net-next 2/2] tcp: add tcpi_bytes_received to tcp_info

2015-04-28 Thread Yuchung Cheng
On Tue, Apr 28, 2015 at 3:28 PM, Eric Dumazet wrote: > This patch tracks total number of payload bytes received on a TCP socket. > This is the sum of all changes done to tp->rcv_nxt > > RFC4898 named this : tcpEStatsAppHCThruOctetsReceived > > This is a 64bit field, and can be fetched both from TC

[PATCH v2 net-next 2/2] tcp: add tcpi_bytes_received to tcp_info

2015-04-28 Thread Eric Dumazet
This patch tracks total number of payload bytes received on a TCP socket. This is the sum of all changes done to tp->rcv_nxt RFC4898 named this : tcpEStatsAppHCThruOctetsReceived 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