aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2007-12-01 22:48:04 +0000
committerDavid S. Miller <[email protected]>2008-01-28 22:55:45 +0000
commitea60658cde9f4df7d05b95c81a72a95ad07f0701 (patch)
treeb71e5bc6208adc2f8ef814844f9324a7d439dfb3 /net/ipv4/tcp_input.c
parent[TCP]: Remove duplicated code block from clean_rtx_queue (diff)
downloadkernel-ea60658cde9f4df7d05b95c81a72a95ad07f0701.tar.gz
kernel-ea60658cde9f4df7d05b95c81a72a95ad07f0701.zip
[TCP]: Add unlikely() to urgent handling in clean_rtx_queue
Signed-off-by: Ilpo Järvinen <[email protected]> Signed-off-by: Herbert Xu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 6bc594a63c9d..8e4d74ee31e2 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -2825,8 +2825,8 @@ static int tcp_clean_rtx_queue(struct sock *sk, s32 *seq_rtt_p,
if (sacked & TCPCB_LOST)
tp->lost_out -= packets_acked;
- if ((sacked & TCPCB_URG) && tp->urg_mode &&
- !before(end_seq, tp->snd_up))
+ if (unlikely((sacked & TCPCB_URG) && tp->urg_mode &&
+ !before(end_seq, tp->snd_up)))
tp->urg_mode = 0;
tp->packets_out -= packets_acked;