Skip to contentSkip to conversation

net/iavf: fix multi-queue Rx interrupt for VF

PATCH Superseded lunyuan.cui 3 participants 4 messages Sep 5, 2019 – Sep 11, 2019 Network drivers

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

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.

Fixes d6bde6b5ea ("net/avf: enable Rx interrupt")
---
 drivers/net/iavf/iavf_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_ethdev.c +1 -1
index 8f3907378..6559bfa1f 100644
@@ -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
#1 lore raw
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

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
index 8f3907378..6559bfa1f 100644
@@ -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
#2 lore raw

PATCH v2 1/1 net/iavf: fix multi-queue Rx interrupt for VF

In reply to 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 fixes the issue.

Fixes d6bde6b5eae9 ("net/avf: enable Rx interrupt")
---
 drivers/net/iavf/iavf_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_ethdev.c +1 -1
index 8f3907378..6559bfa1f 100644
@@ -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
Acked-by on v2 1/1
#3 lore raw
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 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 fixes the issue.

Fixes d6bde6b5eae9 ("net/avf: enable Rx interrupt")
---
 drivers/net/iavf/iavf_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_ethdev.c +1 -1
index 8f3907378..6559bfa1f 100644
@@ -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