net/mlx5: fix indirect action modify rollback
authorDmitry Kozlyuk <dkozlyuk@nvidia.com>
Wed, 21 Jul 2021 12:51:12 +0000 (15:51 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 22 Jul 2021 13:55:48 +0000 (15:55 +0200)
commitb7c8ea62d00f02c206ec2aded5581c2e0f01c377
treee7ad85a35cfe17339e299616f359d2dba62f7263
parent94e257ec8ca82a98e38ffb9e7c117a8aac554489
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")
Cc: stable@dpdk.org
Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_rxq.c