Skip to content

Commit

Permalink
net/mlx5: fix indirect action modify rollback
Browse files Browse the repository at this point in the history
[ upstream commit b7c8ea6 ]

mlx5_ind_table_obj_modify() first references queues from the new list,
then applies the new list to HW. In case of apply failure the function
dereferenced queues from the old list, while it should be the new list.

Fixes: fa7ad49 ("net/mlx5: fix shared RSS action update")

Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
  • Loading branch information
dkozlyuk authored and bluca committed Jul 26, 2021
1 parent a20d4d2 commit 453f8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/mlx5/mlx5_rxq.c
Expand Up @@ -2150,7 +2150,7 @@ mlx5_ind_table_obj_modify(struct rte_eth_dev *dev,
error:
err = rte_errno;
for (j = 0; j < i; j++)
mlx5_rxq_release(dev, ind_tbl->queues[j]);
mlx5_rxq_release(dev, queues[j]);
rte_errno = err;
DEBUG("Port %u cannot setup indirection table.", dev->data->port_id);
return ret;
Expand Down

0 comments on commit 453f8bb

Please sign in to comment.