net/bnxt: fix interrupt rearm logic
authorRahul Gupta <rahul.gupta@broadcom.com>
Fri, 19 Jul 2019 06:19:03 +0000 (11:49 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:36 +0000 (14:31 +0200)
Rearm will intimate hardware that current interrupts are processed
and it can continue to send more.

Fixes: 1fe427fd08ee ("net/bnxt: support enable/disable interrupt")
Cc: stable@dpdk.org
Signed-off-by: Rahul Gupta <rahul.gupta@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_rxq.c

index c94cac5..e0eb890 100644 (file)
@@ -374,7 +374,7 @@ bnxt_rx_queue_intr_enable_op(struct rte_eth_dev *eth_dev, uint16_t queue_id)
                        return rc;
                }
                cpr = rxq->cp_ring;
-               B_CP_DB_ARM(cpr);
+               B_CP_DB_REARM(cpr, cpr->cp_raw_cons);
        }
        return rc;
 }