bnx2x: Adding Likely directive
Subsystems (2)
PATCH 16/36 bnx2x: Adding Likely directive
Signed-off-by Vladislav Zolotarov <[email protected]>
Signed-off-by Eilon Greenstein <[email protected]>
--- drivers/net/bnx2x_main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/bnx2x_main.c +2 -1
@@ -1612,7 +1612,8 @@ static int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget) skb = new_skb; - }else if (bnx2x_alloc_rx_skb (bp, fp, bd_prod) ==0 ) { + }else +if (likely (bnx2x_alloc_rx_skb (bp, fp, bd_prod) ==0 )) { pci_unmap_single(bp->pdev, pci_unmap_addr(rx_buf, mapping), bp->rx_buf_size,
Signature · 1 line
1.5.4.3