Skip to contentSkip to conversation

Revert "net/e1000: fix queue number initialization"

PATCH In review Bruce Richardson 2 participants 3 messages Nov 18 – Nov 19 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "net/e1000: fix queue number initialization"

This reverts commit c1a42d646472fd3477429bf016f682e0865b77f0.

Although the hardware supported by the driver supports 2 queues, as explained by the comment in the code, in practice only one queue per port is usable. Therefore, revert the change upping the queue count, and aligning the code with the comments in it.

Bugzilla ID: 2147

Fixes c1a42d646472 ("net/e1000: fix queue number initialization")
---
 drivers/net/intel/e1000/em_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/intel/e1000/em_ethdev.c +2 -2
index be830881db..80029aa87b 100644
@@ -1220,8 +1220,8 @@ eth_em_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 	 * To avoid it we support just one RX queue for now (no RSS).
 	 */
 
-	dev_info->max_rx_queues = 2;
-	dev_info->max_tx_queues = 2;
+	dev_info->max_rx_queues = 1;
+	dev_info->max_tx_queues = 1;
 
 	dev_info->rx_queue_offload_capa = em_get_rx_queue_offloads_capa();
 	dev_info->rx_offload_capa = em_get_rx_port_offloads_capa() |
Signature · 1 line
2.55.0
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines

Subject: [PATCH] Revert "net/e1000: fix queue number initialization"

This reverts commit c1a42d646472fd3477429bf016f682e0865b77f0.

Although the hardware supported by the driver supports 2 queues, as explained by the comment in the code, in practice only one queue per port is usable. Therefore, revert the change upping the queue count, and aligning the code with the comments in it.

Quoted 5 lines

Bugzilla ID: 2147

Fixes c1a42d646472 ("net/e1000: fix queue number initialization")
Quoted 24 lines
---
 drivers/net/intel/e1000/em_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/intel/e1000/em_ethdev.c +2 -2
index be830881db..80029aa87b 100644
@@ -1220,8 +1220,8 @@ eth_em_infos_get(struct rte_eth_dev *dev, struct
 rte_eth_dev_info *dev_info)
 	 * To avoid it we support just one RX queue for now (no RSS).
 	 */
 
-	dev_info->max_rx_queues = 2;
-	dev_info->max_tx_queues = 2;
+	dev_info->max_rx_queues = 1;
+	dev_info->max_tx_queues = 1;
 
 	dev_info->rx_queue_offload_capa =

em_get_rx_queue_offloads_capa();
dev_info->rx_offload_capa = em_get_rx_port_offloads_capa() |
--
2.55.0

#2 lore raw
Quoted 36 lines · Ciara
Quoted 9 lines

Subject: [PATCH] Revert "net/e1000: fix queue number initialization"

This reverts commit c1a42d646472fd3477429bf016f682e0865b77f0.

Although the hardware supported by the driver supports 2 queues, as explained by the comment in the code, in practice only one queue per port is usable. Therefore, revert the change upping the queue count, and aligning the code with the comments in it.

Quoted 5 lines

Bugzilla ID: 2147

Fixes c1a42d646472 ("net/e1000: fix queue number initialization")
Quoted 19 lines
---
 drivers/net/intel/e1000/em_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/intel/e1000/em_ethdev.c +2 -2
index be830881db..80029aa87b 100644
@@ -1220,8 +1220,8 @@ eth_em_infos_get(struct rte_eth_dev *dev, struct
 rte_eth_dev_info *dev_info)
 	 * To avoid it we support just one RX queue for now (no RSS).
 	 */
 
-	dev_info->max_rx_queues = 2;
-	dev_info->max_tx_queues = 2;
+	dev_info->max_rx_queues = 1;
+	dev_info->max_tx_queues = 1;
 
Quoted 4 lines
Quoted 4 lines
drivers/net/intel/e1000/em_ethdev.c +0 -0
 	dev_info->rx_queue_offload_capa =

em_get_rx_queue_offloads_capa();
dev_info->rx_offload_capa = em_get_rx_port_offloads_capa() |
--

Trivial change, so patch applied to dpdk-next-net-intel for RC4 inclusion.

/Bruce