[TCP]: Limit processing lost_retrans loop to work-to-do cases
This addition of lost_retrans_low to tcp_sock might be unnecessary, it's not clear how often lost_retrans worker is executed when there wasn't work to do. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
f785a8e28b
commit
b08d6cb22c
@@ -1914,6 +1914,8 @@ int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb)
|
||||
printk(KERN_DEBUG "retrans_out leaked.\n");
|
||||
}
|
||||
#endif
|
||||
if (!tp->retrans_out)
|
||||
tp->lost_retrans_low = tp->snd_nxt;
|
||||
TCP_SKB_CB(skb)->sacked |= TCPCB_RETRANS;
|
||||
tp->retrans_out += tcp_skb_pcount(skb);
|
||||
|
||||
|
Reference in New Issue
Block a user