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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 3d609490f118..92fde8d1aa82 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -2407,6 +2407,8 @@ int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb)
2407 * see tcp_input.c tcp_sacktag_write_queue(). 2407 * see tcp_input.c tcp_sacktag_write_queue().
2408 */ 2408 */
2409 TCP_SKB_CB(skb)->ack_seq = tp->snd_nxt; 2409 TCP_SKB_CB(skb)->ack_seq = tp->snd_nxt;
2410 } else {
2411 NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPRETRANSFAIL);
2410 } 2412 }
2411 return err; 2413 return err;
2412} 2414}
@@ -2528,10 +2530,9 @@ begin_fwd:
2528 if (sacked & (TCPCB_SACKED_ACKED|TCPCB_SACKED_RETRANS)) 2530 if (sacked & (TCPCB_SACKED_ACKED|TCPCB_SACKED_RETRANS))
2529 continue; 2531 continue;
2530 2532
2531 if (tcp_retransmit_skb(sk, skb)) { 2533 if (tcp_retransmit_skb(sk, skb))
2532 NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPRETRANSFAIL);
2533 return; 2534 return;
2534 } 2535
2535 NET_INC_STATS_BH(sock_net(sk), mib_idx); 2536 NET_INC_STATS_BH(sock_net(sk), mib_idx);
2536 2537
2537 if (tcp_in_cwnd_reduction(sk)) 2538 if (tcp_in_cwnd_reduction(sk))