bnx2x: fix Tx error check
[dpdk.git] / drivers / net / bnx2x / bnx2x_rxtx.c
index 89d93a1..09e3ebf 100644 (file)
@@ -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;
                }