Skip to contentSkip to conversation

tcp: record TLP and ER timer stats in v6 stats

PATCH In review Yuchung Cheng 2 participants 2 messages Jun 6, 2016 – Jun 8, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcp: record TLP and ER timer stats in v6 stats

The v6 tcp stats scan do not provide TLP and ER timer information correctly like the v4 version . This patch fixes that.

Fixes 6ba8a3b19e76 ("tcp: Tail loss probe (TLP)")
Fixes eed530b6c676 ("tcp: early retransmit")
---
 net/ipv6/tcp_ipv6.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
net/ipv6/tcp_ipv6.c +3 -1
index 4ad8edb..d1fc453 100644
@@ -1707,7 +1707,9 @@ static void get_tcp6_sock(struct seq_file *seq, struct sock *sp, int i)
 	destp = ntohs(inet->inet_dport);
 	srcp  = ntohs(inet->inet_sport);
 
-	if (icsk->icsk_pending == ICSK_TIME_RETRANS) {
+	if (icsk->icsk_pending == ICSK_TIME_RETRANS ||
+	    icsk->icsk_pending == ICSK_TIME_EARLY_RETRANS ||
+	    icsk->icsk_pending == ICSK_TIME_LOSS_PROBE) {
 		timer_active	= 1;
 		timer_expires	= icsk->icsk_timeout;
 	} else if (icsk->icsk_pending == ICSK_TIME_PROBE0) {
Signature · 1 line
2.8.0.rc3.226.g39d4020
maintainer
#1 lore raw

From: Yuchung Cheng <[email protected]>
Date: Mon, 6 Jun 2016 15:07:18 -0700

Quoted 7 lines

The v6 tcp stats scan do not provide TLP and ER timer information correctly like the v4 version . This patch fixes that.

Fixes 6ba8a3b19e76 ("tcp: Tail loss probe (TLP)")
Fixes eed530b6c676 ("tcp: early retransmit")

Applied and queued up for -stable, thanks.