net/mlx5: replace flow list with indexed pool
authorSuanming Mou <suanmingm@nvidia.com>
Tue, 13 Jul 2021 08:44:39 +0000 (11:44 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 15 Jul 2021 13:19:09 +0000 (15:19 +0200)
commitb4edeaf3efd51e677e5c10cc30a07c250a739316
tree5ae75b87efac3c0d5cd024d0d165dd6040594344
parent42f463395f8f2f1d4d11938e20f33e2e1fd46388
net/mlx5: replace flow list with indexed pool

The flow list is used to save the create flows and to be used only
when port closes all the flows need to be flushed.

This commit takes advantage of the index pool foreach operation to
flush all the allocated flows.

Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/linux/mlx5_os.c
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_trigger.c
drivers/net/mlx5/windows/mlx5_os.c