Skip to content

Commit

Permalink
net/ice: fix DCF RSS initialization
Browse files Browse the repository at this point in the history
[ upstream commit f0be05f4c49129c8b7a34fa6505586b8a646ead1 ]

The i variable type is uint8_t which causes a dead loop,
changing it to size_t will solve this issue.

Fixes: 3220d86 ("net/ice: init RSS during DCF start")

Signed-off-by: Kaiwen Deng <kaiwenx.deng@intel.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
  • Loading branch information
kevin-intel authored and kevintraynor committed Jul 11, 2023
1 parent 4408ee1 commit 9d5f649
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ice/ice_dcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,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;
Expand Down

0 comments on commit 9d5f649

Please sign in to comment.