net/iavf: fix multi-queue Rx interrupt for VF
PATCH 1/1 net/iavf: fix multi-queue Rx interrupt for VF
The original issue was that the last queue could not be mapped to the interrupt vector, so the last queue could not receive the package in the interrupt mode. This patch fix the issue.
--- drivers/net/iavf/iavf_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_ethdev.c +1 -1
@@ -360,7 +360,7 @@ static int iavf_config_rx_queues_irqs(struct rte_eth_dev *dev,for (i =0 ; i < dev->data->nb_rx_queues; i++) { vf->rxq_map[vec] |=1 << i; intr_handle->intr_vec[i] = vec++; -if (vec >= vf->nb_msix) +if (vec > vf->nb_msix) vec =IAVF_RX_VEC_START ; } PMD_DRV_LOG(DEBUG,
Signature · 1 line
2.17.1
Quoted 4 lines · lunyuan.cui
The original issue was that the last queue could not be mapped to the interrupt vector, so the last queue could not receive the package in the interrupt mode. This patch fix the issue.
s/fix/fixes
Quoted 2 lines
Fixes d6bde6b5ea ("net/avf: enable Rx interrupt")
The convention is to have the 12 characters of commit SHA in Fixes tag.
Quoted 3 lines
Signed-off-by lunyuan.cui <[email protected]>
Signature format should be
Thanks,
Xiaolong
Quoted 20 lines
---
drivers/net/iavf/iavf_ethdev.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/iavf/iavf_ethdev.c +1
-1@@ -360,7 +360,7 @@ static int iavf_config_rx_queues_irqs(struct rte_eth_dev *dev,for (i =0 ; i < dev->data->nb_rx_queues; i++) { vf->rxq_map[vec] |=1 << i; intr_handle->intr_vec[i] = vec++; -if (vec >= vf->nb_msix) +if (vec > vf->nb_msix) vec =IAVF_RX_VEC_START ; } PMD_DRV_LOG(DEBUG,Signature · 1 line
2.17.1
PATCH v2 1/1 net/iavf: fix multi-queue Rx interrupt for VF
In reply to lunyuan.cuiThe original issue was that the last queue could not be mapped to the interrupt vector, so the last queue could not receive the package in the interrupt mode. This patch fixes the issue.
--- drivers/net/iavf/iavf_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_ethdev.c +1 -1
@@ -360,7 +360,7 @@ static int iavf_config_rx_queues_irqs(struct rte_eth_dev *dev,for (i =0 ; i < dev->data->nb_rx_queues; i++) { vf->rxq_map[vec] |=1 << i; intr_handle->intr_vec[i] = vec++; -if (vec >= vf->nb_msix) +if (vec > vf->nb_msix) vec =IAVF_RX_VEC_START ; } PMD_DRV_LOG(DEBUG,
Signature · 1 line
2.17.1
Quoted 34 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of lunyuan.cui
Sent: Friday, September 6, 2019 7:48 PM
To: [email protected]
Cc: Lu, Wenzhuo <[email protected]>; Cui, LunyuanX <[email protected]>; [email protected]
Subject: [dpdk-dev] [PATCH v2] net/iavf: fix multi-queue Rx interrupt for VFThe original issue was that the last queue could not be mapped to the interrupt vector, so the last queue could not receive the package in the interrupt mode.
This patch fixes the issue.Fixes d6bde6b5eae9 ("net/avf: enable Rx interrupt")Signed-off-by Lunyuan Cui <[email protected]>--- drivers/net/iavf/iavf_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/iavf/iavf_ethdev.c +1
-1@@ -360,7 +360,7 @@ static int iavf_config_rx_queues_irqs(struct rte_eth_dev *dev, for (i = 0; i < dev->data->nb_rx_queues; i++) { vf->rxq_map[vec] |=1 << i; intr_handle->intr_vec[i] = vec++; -if (vec >= vf->nb_msix) +if (vec > vf->nb_msix) vec =IAVF_RX_VEC_START ; }
Quoted 3 lines
PMD_DRV_LOG(DEBUG,
--
2.17.1