提交 e49aa5d4 编写于 作者: I Ilpo Jrvinen 提交者: David S. Miller

[TCP]: Add unlikely() to sacktag out-of-mem in fragment case

Signed-off-by: NIlpo Jrvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c7caf8d3
......@@ -1400,7 +1400,7 @@ tcp_sacktag_write_queue(struct sock *sk, struct sk_buff *ack_skb, u32 prior_snd_
/* DSACK info lost if out-of-mem, try SACK still */
if (in_sack <= 0)
in_sack = tcp_match_skb_to_sack(sk, skb, start_seq, end_seq);
if (in_sack < 0)
if (unlikely(in_sack < 0))
break;
sacked = TCP_SKB_CB(skb)->sacked;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册