net/mlx5: fix indirect action modify rollback
PATCH 1/1 net/mlx5: fix indirect action modify rollback
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 fa7ad49e96b5 ("net/mlx5: fix shared RSS action update")
Signed-off-by Dmitry Kozlyuk <[email protected]>
Acked-by Matan Azrad <[email protected]>
--- drivers/net/mlx5/mlx5_rxq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/mlx5/mlx5_rxq.c +1 -1
@@ -2086,7 +2086,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;DRV_LOG (DEBUG ,"Port %u cannot setup indirection table." , dev->data->port_id);
Signature · 1 line
2.25.1
Thomas Monjalon
Applied21/07/2021 14:51, Dmitry Kozlyuk:
Quoted 10 lines
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 fa7ad49e96b5 ("net/mlx5: fix shared RSS action update")Signed-off-by Dmitry Kozlyuk <[email protected]>Acked-by Matan Azrad <[email protected]>
Applied, thanks