From: Ajit Khaparde <ajit.khaparde@broadcom.com>
To: dev@dpdk.org
Cc: ferruh.yigit@intel.com,
Stephen Hemminger <stephen@networkplumber.org>,
stable@dpdk.org, Rahul Gupta <rahul.gupta@broadcom.com>
Subject: [dpdk-dev] [PATCH 3/7] net/bnxt: fix receive interrupt vector
Date: Fri, 19 Jul 2019 11:49:02 +0530 [thread overview]
Message-ID: <20190719061906.42451-4-ajit.khaparde@broadcom.com> (raw)
In-Reply-To: <20190719061906.42451-1-ajit.khaparde@broadcom.com>
From: Stephen Hemminger <stephen@networkplumber.org>
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 <stephen@networkplumber.org>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Tested-by: Rahul Gupta <rahul.gupta@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
drivers/net/bnxt/bnxt_ethdev.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index 6492f5627..fec1ecbae 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -427,7 +427,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++;
}
--
2.20.1 (Apple Git-117)
next prev parent reply other threads:[~2019-07-19 6:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-19 6:18 [dpdk-dev] [PATCH 0/7] bnxt patches Ajit Khaparde
2019-07-19 6:19 ` [dpdk-dev] [PATCH 1/7] net/bnxt: add new device id Ajit Khaparde
2019-07-19 6:19 ` [dpdk-dev] [PATCH 2/7] net/bnxt: use correct number of RSS contexts for thor Ajit Khaparde
2019-07-19 21:38 ` Ferruh Yigit
2019-07-19 6:19 ` Ajit Khaparde [this message]
2019-07-19 6:19 ` [dpdk-dev] [PATCH 4/7] net/bnxt: fix interrupt rearm logic Ajit Khaparde
2019-07-19 6:19 ` [dpdk-dev] [PATCH 5/7] net/bnxt: disable vector mode Tx with VLAN offload Ajit Khaparde
2019-07-19 6:19 ` [dpdk-dev] [PATCH 6/7] net/bnxt: remove unnecessary interrupt disable Ajit Khaparde
2019-07-19 6:19 ` [dpdk-dev] [PATCH 7/7] doc: update release information for bnxt Ajit Khaparde
2019-07-19 21:38 ` Ferruh Yigit
2019-07-19 12:33 ` [dpdk-dev] [PATCH 0/7] bnxt patches Ferruh Yigit
2019-07-19 16:18 ` Stephen Hemminger
2019-07-19 16:58 ` Ferruh Yigit
2019-07-19 21:39 ` Ferruh Yigit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190719061906.42451-4-ajit.khaparde@broadcom.com \
--to=ajit.khaparde@broadcom.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=rahul.gupta@broadcom.com \
--cc=stable@dpdk.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).