From: Rahul Gupta Date: Fri, 19 Jul 2019 06:19:03 +0000 (+0530) Subject: net/bnxt: fix interrupt rearm logic X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c79012a3b019bbfa7aefaa567b2b61bda2f5b44b;p=dpdk.git net/bnxt: fix interrupt rearm logic 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 Signed-off-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_rxq.c b/drivers/net/bnxt/bnxt_rxq.c index c94cac5a9c..e0eb890f80 100644 --- a/drivers/net/bnxt/bnxt_rxq.c +++ b/drivers/net/bnxt/bnxt_rxq.c @@ -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; }