net/mlx5: change operations for non-cached flows
authorBing Zhao <bingz@mellanox.com>
Tue, 24 Mar 2020 15:33:57 +0000 (15:33 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:05 +0000 (13:57 +0200)
commit8db7e3b69822dbbd06363d9efd778733395a6948
treed169b46ef1c4ad62088b2b1dbe2d11adf27c62da
parentdac98e878043bbdc11a9bc3eaff3c46321730ea7
net/mlx5: change operations for non-cached flows

When stopping a mlx5 device, all the flows inserted will be flushed
since they are with non-cached mode. And no more action will be done
for these flows in the device closing stage.
If the device restarts after stopped, no flow with non-cached mode
will be re-inserted.
The flush operation through rte interface will remain the same, and
all the flows will be flushed actively.

Signed-off-by: Bing Zhao <bingz@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_trigger.c