Commit 67631510a318d5a930055fe927607f483716e100
Committed by
David S. Miller
1 parent
171995e5d8
Exists in
master
and in
4 other branches
tcp: Replace time wait bucket msg by counter
Rather than printing the message to the log, use a mib counter to keep track of the count of occurences of time wait bucket overflow. Reduces spam in logs. Signed-off-by: Tom Herbert <therbert@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 3 changed files with 3 additions and 1 deletions Side-by-side Diff
include/linux/snmp.h
net/ipv4/proc.c
... | ... | @@ -253,6 +253,7 @@ |
253 | 253 | SNMP_MIB_ITEM("TCPMinTTLDrop", LINUX_MIB_TCPMINTTLDROP), |
254 | 254 | SNMP_MIB_ITEM("TCPDeferAcceptDrop", LINUX_MIB_TCPDEFERACCEPTDROP), |
255 | 255 | SNMP_MIB_ITEM("IPReversePathFilter", LINUX_MIB_IPRPFILTER), |
256 | + SNMP_MIB_ITEM("TCPTimeWaitOverflow", LINUX_MIB_TCPTIMEWAITOVERFLOW), | |
256 | 257 | SNMP_MIB_SENTINEL |
257 | 258 | }; |
258 | 259 |
net/ipv4/tcp_minisocks.c
... | ... | @@ -347,7 +347,7 @@ |
347 | 347 | * socket up. We've got bigger problems than |
348 | 348 | * non-graceful socket closings. |
349 | 349 | */ |
350 | - LIMIT_NETDEBUG(KERN_INFO "TCP: time wait bucket table overflow\n"); | |
350 | + NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPTIMEWAITOVERFLOW); | |
351 | 351 | } |
352 | 352 | |
353 | 353 | tcp_update_metrics(sk); |