net/ice: fix cannot setup queue at runtime
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")
Signed-off-by Kevin Liu <[email protected]>
--- drivers/net/ice/ice_ethdev.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/ice/ice_ethdev.c +4 -0
@@ -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