[TCP]: Add unlikely() to urgent handling in clean_rtx_queue

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Ilpo Järvinen 2007-12-02 00:48:04 +02:00 committed by David S. Miller
parent 89d478f7f2
commit ea60658cde

View file

@ -2825,8 +2825,8 @@ static int tcp_clean_rtx_queue(struct sock *sk, s32 *seq_rtt_p,
if (sacked & TCPCB_LOST) if (sacked & TCPCB_LOST)
tp->lost_out -= packets_acked; tp->lost_out -= packets_acked;
if ((sacked & TCPCB_URG) && tp->urg_mode && if (unlikely((sacked & TCPCB_URG) && tp->urg_mode &&
!before(end_seq, tp->snd_up)) !before(end_seq, tp->snd_up)))
tp->urg_mode = 0; tp->urg_mode = 0;
tp->packets_out -= packets_acked; tp->packets_out -= packets_acked;