DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/ice: fix cannot setup queue at runtime
@ 2022-10-18  2:42 Kevin Liu
  0 siblings, 0 replies; only message in thread
From: Kevin Liu @ 2022-10-18  2:42 UTC (permalink / raw)
  To: dev; +Cc: qiming.yang, qi.z.zhang, stevex.yang, Kevin Liu

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")
Signed-off-by: Kevin Liu <kevinx.liu@intel.com>
---
 drivers/net/ice/ice_ethdev.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index 8618a3e6b7..7cb877ac64 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -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 |
-- 
2.25.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-18  2:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-18  2:42 [PATCH] net/ice: fix cannot setup queue at runtime Kevin Liu

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).