Skip to content

Commit

Permalink
net/bnxt: fix Rx interrupt vector
Browse files Browse the repository at this point in the history
[ upstream commit d261c9e ]

The receive interrupt vector should be offset by the constant
RTE_INTR_VEC_RXTX_OFFSET; otherwise setting up some queue interrupts
will fail.

Fixes: 1fe427f ("net/bnxt: support enable/disable interrupt")

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Tested-by: Rahul Gupta <rahul.gupta@broadcom.com>
  • Loading branch information
shemminger authored and kevintraynor committed Aug 28, 2019
1 parent 7027e5d commit e31e046
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/bnxt/bnxt_ethdev.c
Expand Up @@ -376,7 +376,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++;
}
Expand Down

0 comments on commit e31e046

Please sign in to comment.