diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2007-09-26 01:47:31 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:52:39 -0400 |
commit | 912d8f0b1f17b7e851ebbfeb17a16de9f9c7cb88 (patch) | |
tree | 176cf4f23aaae9790d947579473da1f8d349a942 | |
parent | 93e680202929802558f783fbd96c41697ae65472 (diff) |
[TCP] MIB: Count FRTO's successfully detected spurious RTOs
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/linux/snmp.h | 1 | ||||
-rw-r--r-- | net/ipv4/proc.c | 1 | ||||
-rw-r--r-- | net/ipv4/tcp_input.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/snmp.h b/include/linux/snmp.h index d8fd3ec4148a..89f0c2b5f405 100644 --- a/include/linux/snmp.h +++ b/include/linux/snmp.h | |||
@@ -213,6 +213,7 @@ enum | |||
213 | LINUX_MIB_TCPSACKDISCARD, /* TCPSACKDiscard */ | 213 | LINUX_MIB_TCPSACKDISCARD, /* TCPSACKDiscard */ |
214 | LINUX_MIB_TCPDSACKIGNOREDOLD, /* TCPSACKIgnoredOld */ | 214 | LINUX_MIB_TCPDSACKIGNOREDOLD, /* TCPSACKIgnoredOld */ |
215 | LINUX_MIB_TCPDSACKIGNOREDNOUNDO, /* TCPSACKIgnoredNoUndo */ | 215 | LINUX_MIB_TCPDSACKIGNOREDNOUNDO, /* TCPSACKIgnoredNoUndo */ |
216 | LINUX_MIB_TCPSPURIOUSRTOS, /* TCPSpuriousRTOs */ | ||
216 | __LINUX_MIB_MAX | 217 | __LINUX_MIB_MAX |
217 | }; | 218 | }; |
218 | 219 | ||
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index 2015148b41a8..9dee70e1cf0d 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c | |||
@@ -245,6 +245,7 @@ static const struct snmp_mib snmp4_net_list[] = { | |||
245 | SNMP_MIB_ITEM("TCPSACKDiscard", LINUX_MIB_TCPSACKDISCARD), | 245 | SNMP_MIB_ITEM("TCPSACKDiscard", LINUX_MIB_TCPSACKDISCARD), |
246 | SNMP_MIB_ITEM("TCPDSACKIgnoredOld", LINUX_MIB_TCPDSACKIGNOREDOLD), | 246 | SNMP_MIB_ITEM("TCPDSACKIgnoredOld", LINUX_MIB_TCPDSACKIGNOREDOLD), |
247 | SNMP_MIB_ITEM("TCPDSACKIgnoredNoUndo", LINUX_MIB_TCPDSACKIGNOREDNOUNDO), | 247 | SNMP_MIB_ITEM("TCPDSACKIgnoredNoUndo", LINUX_MIB_TCPDSACKIGNOREDNOUNDO), |
248 | SNMP_MIB_ITEM("TCPSpuriousRTOs", LINUX_MIB_TCPSPURIOUSRTOS), | ||
248 | SNMP_MIB_SENTINEL | 249 | SNMP_MIB_SENTINEL |
249 | }; | 250 | }; |
250 | 251 | ||
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 4866e75e98e0..4b27739031fb 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -2935,6 +2935,7 @@ static int tcp_process_frto(struct sock *sk, int flag) | |||
2935 | } | 2935 | } |
2936 | tp->frto_counter = 0; | 2936 | tp->frto_counter = 0; |
2937 | tp->undo_marker = 0; | 2937 | tp->undo_marker = 0; |
2938 | NET_INC_STATS_BH(LINUX_MIB_TCPSPURIOUSRTOS); | ||
2938 | } | 2939 | } |
2939 | return 0; | 2940 | return 0; |
2940 | } | 2941 | } |