Explorar o código

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

Signed-off-by: Ilpo Jrvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Ilpo Jrvinen %!s(int64=17) %!d(string=hai) anos
pai
achega
e49aa5d456
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      net/ipv4/tcp_input.c

+ 1 - 1
net/ipv4/tcp_input.c

@@ -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;