net/mlx5: fix indirect RSS creation when port is stopped
authorDmitry Kozlyuk <dkozlyuk@nvidia.com>
Wed, 24 Nov 2021 09:40:29 +0000 (11:40 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 24 Nov 2021 16:25:33 +0000 (17:25 +0100)
commitc65d6844970a762c907f2de1763e0c71a3c65c66
tree14ae69962f6ff111ea028b504734c722053346c9
parentea1da434c0a876b1913b9f0758abd1b6e70a19fd
net/mlx5: fix indirect RSS creation when port is stopped

mlx5_ind_table_obj_setup() was incrementing RxQ reference counters
even when the port was stopped, which prevented RxQ release
and triggered an internal assertion.
Only increment reference counter when the port is started.

Fixes: ec4e11d41d12 ("net/mlx5: preserve indirect actions on restart")
Cc: stable@dpdk.org
Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Reviewed-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_rx.h
drivers/net/mlx5/mlx5_rxq.c