[PATCH v2] net/ice: fix dcf init rss blocked
Kaiwen Deng
kaiwenx.deng at intel.com
Tue May 9 03:22:09 CEST 2023
The i variable type is uint8_t which causes a dead loop,
changing it to size_t will solve this issue.
Signed-off-by: Kaiwen Deng <kaiwenx.deng at intel.com>
---
drivers/net/ice/ice_dcf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice/ice_dcf.c
index 1c3d22ae0f..3e3004f51b 100644
--- a/drivers/net/ice/ice_dcf.c
+++ b/drivers/net/ice/ice_dcf.c
@@ -854,7 +854,8 @@ ice_dcf_init_rss(struct ice_dcf_hw *hw)
{
struct rte_eth_dev *dev = hw->eth_dev;
struct rte_eth_rss_conf *rss_conf;
- uint8_t i, j, nb_q;
+ uint8_t j, nb_q;
+ size_t i;
int ret;
rss_conf = &dev->data->dev_conf.rx_adv_conf.rss_conf;
--
2.34.1
More information about the stable
mailing list