From 638f2066a668590cfe6b8d17cf40054e9fcf3554 Mon Sep 17 00:00:00 2001 From: Rasesh Mody Date: Fri, 11 Dec 2015 10:31:53 -0800 Subject: [PATCH] bnx2x: fix Tx error check Correct the error check in PMD transmit routine. Signed-off-by: Rasesh Mody --- drivers/net/bnx2x/bnx2x_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnx2x/bnx2x_rxtx.c b/drivers/net/bnx2x/bnx2x_rxtx.c index 89d93a1bdb..09e3ebff79 100644 --- a/drivers/net/bnx2x/bnx2x_rxtx.c +++ b/drivers/net/bnx2x/bnx2x_rxtx.c @@ -240,7 +240,7 @@ bnx2x_xmit_pkts(void *p_txq, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) bnx2x_txeof(sc, fp); } - if (unlikely(ret == ENOMEM)) { + if (unlikely(ret == -ENOMEM)) { break; } -- 2.20.1