Commit d8290ae5 authored by Yuval Mintz's avatar Yuval Mintz Committed by David S. Miller

bnx2x: added 'likely' to fast-path skb existence

Signed-off-by: default avatarYuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f1f3ee1b
...@@ -120,10 +120,11 @@ static u16 bnx2x_free_tx_pkt(struct bnx2x *bp, struct bnx2x_fp_txdata *txdata, ...@@ -120,10 +120,11 @@ static u16 bnx2x_free_tx_pkt(struct bnx2x *bp, struct bnx2x_fp_txdata *txdata,
/* release skb */ /* release skb */
WARN_ON(!skb); WARN_ON(!skb);
if (skb) { if (likely(skb)) {
(*pkts_compl)++; (*pkts_compl)++;
(*bytes_compl) += skb->len; (*bytes_compl) += skb->len;
} }
dev_kfree_skb_any(skb); dev_kfree_skb_any(skb);
tx_buf->first_bd = 0; tx_buf->first_bd = 0;
tx_buf->skb = NULL; tx_buf->skb = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment