Skip to content

Commit abbdb5a

Browse files
Eric Dumazetdavem330
authored andcommitted
net: remove a dubious unlikely() clause
TCP protocol is still used these days, and TCP uses clones in its transmit path. We can not optimize linux stack assuming it is mostly used in routers, or that TCP is dead. Fixes: 795bb1c ("net: bulk free infrastructure for NAPI context, use napi_consume_skb") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5a779c4 commit abbdb5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/skbuff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ void napi_consume_skb(struct sk_buff *skb, int budget)
815815
trace_consume_skb(skb);
816816

817817
/* if SKB is a clone, don't handle this case */
818-
if (unlikely(skb->fclone != SKB_FCLONE_UNAVAILABLE)) {
818+
if (skb->fclone != SKB_FCLONE_UNAVAILABLE) {
819819
__kfree_skb(skb);
820820
return;
821821
}

0 commit comments

Comments
 (0)