patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Wenzhuo Lu <wenzhuo.lu@intel.com>
To: dev@dpdk.org
Cc: Wenzhuo Lu <wenzhuo.lu@intel.com>, stable@dpdk.org
Subject: [dpdk-stable] [PATCH 2/4] net/ixgbe: fix VF RX queue interrupt enabling
Date: Wed, 24 Jan 2018 09:38:43 +0800	[thread overview]
Message-ID: <1516757925-3746-3-git-send-email-wenzhuo.lu@intel.com> (raw)
In-Reply-To: <1516757925-3746-1-git-send-email-wenzhuo.lu@intel.com>

When using UIO, after enabling the interrupt to get the PF
message, VF RX queue interrupt is not working.
It's expected, as UIO doesn't support multiple interrupt.
So, PMD should not try to enable RX queue interrupt. Then
APP can know the RX queue interrupt is not enabled and only
choose the polling mode.

Fixes: 77234603fba0 ("net/ixgbe: support VF mailbox interrupt for link up/down")
CC: stable@dpdk.org

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 4f4334d..91ff54c 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -5033,7 +5033,8 @@ static int ixgbevf_dev_xstats_get_names(__rte_unused struct rte_eth_dev *dev,
 	ixgbevf_dev_rxtx_start(dev);
 
 	/* check and configure queue intr-vector mapping */
-	if (dev->data->dev_conf.intr_conf.rxq != 0) {
+	if (rte_intr_cap_multiple(intr_handle) &&
+	    dev->data->dev_conf.intr_conf.rxq) {
 		/* According to datasheet, only vector 0/1/2 can be used,
 		 * now only one vector is used for Rx queue
 		 */
-- 
1.9.3

  parent reply	other threads:[~2018-01-24  1:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1516757925-3746-1-git-send-email-wenzhuo.lu@intel.com>
2018-01-24  1:38 ` [dpdk-stable] [PATCH 1/4] net/i40e: " Wenzhuo Lu
2018-01-24  1:38 ` Wenzhuo Lu [this message]
2018-01-24  1:38 ` [dpdk-stable] [PATCH 3/4] net/e1000: " Wenzhuo Lu
     [not found] ` <1516781813-50818-1-git-send-email-wenzhuo.lu@intel.com>
2018-01-24  8:16   ` [dpdk-stable] [PATCH v2 1/4] net/i40e: " Wenzhuo Lu
2018-01-26 15:32     ` [dpdk-stable] [dpdk-dev] " Zhang, Helin
2018-01-26 15:40       ` Zhang, Helin
2018-01-24  8:16   ` [dpdk-stable] [PATCH v2 2/4] net/ixgbe: " Wenzhuo Lu
2018-01-26 15:32     ` [dpdk-stable] [dpdk-dev] " Zhang, Helin
2018-01-26 15:40       ` Zhang, Helin
2018-01-24  8:16   ` [dpdk-stable] [PATCH v2 3/4] net/e1000: " Wenzhuo Lu
2018-01-26 15:33     ` [dpdk-stable] [dpdk-dev] " Zhang, Helin
2018-01-26 15:41       ` Zhang, Helin

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=1516757925-3746-3-git-send-email-wenzhuo.lu@intel.com \
    --to=wenzhuo.lu@intel.com \
    --cc=dev@dpdk.org \
    --cc=stable@dpdk.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).