]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - net/ipv4/tcp_output.c
tcp: add TCPAckCompressed SNMP counter
authorEric Dumazet <edumazet@google.com>
Thu, 17 May 2018 21:47:27 +0000 (14:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 May 2018 15:40:27 +0000 (11:40 -0400)
commit200d95f4575934e49f872109cce18c5e72383eb8
tree8df77ef31be5aa474ced03a255797e9044a3be84
parent5d9f4262b7ea41ca9981cc790e37cca6e37c789e
tcp: add TCPAckCompressed SNMP counter

This counter tracks number of ACK packets that the host has not sent,
thanks to ACK compression.

Sample output :

$ nstat -n;sleep 1;nstat|egrep "IpInReceives|IpOutRequests|TcpInSegs|TcpOutSegs|TcpExtTCPAckCompressed"
IpInReceives                    123250             0.0
IpOutRequests                   3684               0.0
TcpInSegs                       123251             0.0
TcpOutSegs                      3684               0.0
TcpExtTCPAckCompressed          119252             0.0

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/snmp.h
net/ipv4/proc.c
net/ipv4/tcp_output.c