From: Rasesh Mody Date: Fri, 11 Dec 2015 18:31:53 +0000 (-0800) Subject: bnx2x: fix Tx error check X-Git-Tag: spdx-start~7780 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=638f2066a668590cfe6b8d17cf40054e9fcf3554;p=dpdk.git bnx2x: fix Tx error check Correct the error check in PMD transmit routine. Signed-off-by: Rasesh Mody --- 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; }