tcp: add TCPWinProbe and TCPKeepAlive SNMP counters
Diagnosing problems related to Window Probes has been hard because we lack a counter. TCPWinProbe counts the number of ACK packets a sender has to send at regular intervals to make sure a reverse ACK packet opening back a window had not been lost. TCPKeepAlive counts the number of ACK packets sent to keep TCP flows alive (SO_KEEPALIVE) Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Yuchung Cheng <ycheng@google.com> Acked-by: Neal Cardwell <ncardwell@google.com> Acked-by: Nandita Dukkipati <nanditad@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
21c8fe9915
commit
e520af48c7
@@ -616,7 +616,7 @@ static void tcp_keepalive_timer (unsigned long data)
|
||||
tcp_write_err(sk);
|
||||
goto out;
|
||||
}
|
||||
if (tcp_write_wakeup(sk) <= 0) {
|
||||
if (tcp_write_wakeup(sk, LINUX_MIB_TCPKEEPALIVE) <= 0) {
|
||||
icsk->icsk_probes_out++;
|
||||
elapsed = keepalive_intvl_when(tp);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user