tcp: account all retransmit failures
Subsystems (3)
PATCH 1/1 tcp: account all retransmit failures
Change snmp RETRANSFAILS stat to include timeout retransmit failures in addition to other loss recoveries.
Signed-off-by Yuchung Cheng <[email protected]>
--- net/ipv4/tcp_output.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
net/ipv4/tcp_output.c +4 -3
@@ -2407,6 +2407,8 @@ int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb)* see tcp_input.c tcp_sacktag_write_queue(). */ TCP_SKB_CB (skb)->ack_seq = tp->snd_nxt; + }else { +NET_INC_STATS_BH (sock_net (sk),LINUX_MIB_TCPRETRANSFAIL ); }return err; }
@@ -2528,10 +2530,9 @@ begin_fwd:if (sacked & (TCPCB_SACKED_ACKED |TCPCB_SACKED_RETRANS ))continue ; -if (tcp_retransmit_skb (sk, skb)) { -NET_INC_STATS_BH (sock_net (sk),LINUX_MIB_TCPRETRANSFAIL ); +if (tcp_retransmit_skb (sk, skb))return ; - } +NET_INC_STATS_BH (sock_net (sk), mib_idx);if (tcp_in_cwnd_reduction (sk))
Signature · 1 line
1.8.3
Quoted 5 lines · Yuchung Cheng
Change snmp RETRANSFAILS stat to include timeout retransmit failures in addition to other loss recoveries.
Signed-off-by Yuchung Cheng <[email protected]>---
Acked-by Neal Cardwell <[email protected]>
Quoted 4 lines · Yuchung Cheng
Change snmp RETRANSFAILS stat to include timeout retransmit failures in addition to other loss recoveries.
Signed-off-by Yuchung Cheng <[email protected]>
Acked-by Eric Dumazet <[email protected]>
David Miller
AppliedFrom: Eric Dumazet <[email protected]>
Date: Fri, 12 Jul 2013 11:55:54 -0700
Quoted 7 lines · Yuchung Cheng
Quoted 4 lines
Change snmp RETRANSFAILS stat to include timeout retransmit failures in addition to other loss recoveries.
Signed-off-by Yuchung Cheng <[email protected]>Acked-by Eric Dumazet <[email protected]>
Applied, thanks everyone.