bnx2x: fix Tx error check
authorRasesh Mody <rasesh.mody@qlogic.com>
Fri, 11 Dec 2015 18:31:53 +0000 (10:31 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 13 Dec 2015 00:45:31 +0000 (01:45 +0100)
Correct the error check in PMD transmit routine.

Signed-off-by: Rasesh Mody <rasesh.mody@qlogic.com>
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;
                }