aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r--net/ipv4/tcp_output.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 57a56e205070..d2d494c74811 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -2963,13 +2963,12 @@ int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs)
2963#endif 2963#endif
2964 TCP_SKB_CB(skb)->sacked |= TCPCB_RETRANS; 2964 TCP_SKB_CB(skb)->sacked |= TCPCB_RETRANS;
2965 tp->retrans_out += tcp_skb_pcount(skb); 2965 tp->retrans_out += tcp_skb_pcount(skb);
2966
2967 /* Save stamp of the first retransmit. */
2968 if (!tp->retrans_stamp)
2969 tp->retrans_stamp = tcp_skb_timestamp(skb);
2970
2971 } 2966 }
2972 2967
2968 /* Save stamp of the first (attempted) retransmit. */
2969 if (!tp->retrans_stamp)
2970 tp->retrans_stamp = tcp_skb_timestamp(skb);
2971
2973 if (tp->undo_retrans < 0) 2972 if (tp->undo_retrans < 0)
2974 tp->undo_retrans = 0; 2973 tp->undo_retrans = 0;
2975 tp->undo_retrans += tcp_skb_pcount(skb); 2974 tp->undo_retrans += tcp_skb_pcount(skb);