From: Stephen Hemminger Date: Fri, 19 Jul 2019 06:19:02 +0000 (+0530) Subject: net/bnxt: fix Rx interrupt vector X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d261c9ef56f4c6af645b71a9a9c841bbbe24e3a9;p=dpdk.git net/bnxt: fix Rx interrupt vector The receive interrupt vector should be offset by the constant RTE_INTR_VEC_RXTX_OFFSET; otherwise setting up some queue interrupts will fail. Fixes: 1fe427fd08ee ("net/bnxt: support enable/disable interrupt") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger Signed-off-by: Ajit Khaparde Reviewed-by: Ajit Khaparde Tested-by: Rahul Gupta --- diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 9107841011..b336a234cc 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -418,7 +418,8 @@ static int bnxt_init_chip(struct bnxt *bp) intr_handle->max_intr); for (queue_id = 0; queue_id < bp->eth_dev->data->nb_rx_queues; queue_id++) { - intr_handle->intr_vec[queue_id] = vec; + intr_handle->intr_vec[queue_id] = + vec + BNXT_RX_VEC_START; if (vec < base + intr_handle->nb_efd - 1) vec++; }