Skip to contentSkip to conversation

net/ice: fix cannot setup queue at runtime

PATCH New Kevin Liu 1 participant 1 message Oct 18, 2022 Network drivers

lore
Share & tools
lore

Kevin Liu

author
#0 lore raw

PATCH 1/1 net/ice: fix cannot setup queue at runtime

Failed to set queue at runtime, the reason is that 'dev_capa' is an invalid value.

Add valid value to support rx/tx queue setup after device started.

Fixes 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx")
---
 drivers/net/ice/ice_ethdev.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/ice/ice_ethdev.c +4 -0
index 8618a3e6b7..7cb877ac64 100644
@@ -3857,6 +3857,10 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 		.nb_align = ICE_ALIGN_RING_DESC,
 	};
 
+	dev_info->dev_capa =
+		RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP |
+		RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP;
+
 	dev_info->speed_capa = RTE_ETH_LINK_SPEED_10M |
 			       RTE_ETH_LINK_SPEED_100M |
 			       RTE_ETH_LINK_SPEED_1G |
Signature · 1 line
2.25.1