[PATCH net-next v3] tcp: Add RFC4898 tcpEStatsPerfDataSegsOut/In

2016-03-09 Thread Martin KaFai Lau
Per RFC4898, they count segments sent/received containing a positive length data segment (that includes retransmission segments carrying data). Unlike tcpi_segs_out/in, tcpi_data_segs_out/in excludes segments carrying no data (e.g. pure ack). The patch also updates the segs_in in tcp_fastopen_add

Re: [PATCH net-next v3] tcp: Add RFC4898 tcpEStatsPerfDataSegsOut/In

2016-03-09 Thread Yuchung Cheng
On Wed, Mar 9, 2016 at 10:43 AM, Martin KaFai Lau wrote: > > Per RFC4898, they count segments sent/received > containing a positive length data segment (that includes > retransmission segments carrying data). Unlike > tcpi_segs_out/in, tcpi_data_segs_out/in excludes segments > carrying no data (e

Re: [PATCH net-next v3] tcp: Add RFC4898 tcpEStatsPerfDataSegsOut/In

2016-03-09 Thread Martin KaFai Lau
On Wed, Mar 09, 2016 at 03:11:50PM -0800, Yuchung Cheng wrote: > On Wed, Mar 9, 2016 at 10:43 AM, Martin KaFai Lau wrote: > > diff --git a/include/net/tcp.h b/include/net/tcp.h > > index e90db85..24557a8 100644 > > --- a/include/net/tcp.h > > +++ b/include/net/tcp.h > > @@ -1816,4 +1816,14 @@ stat