net/mlx5: fix flow director add and delete
authorDekel Peled <dekelp@mellanox.com>
Thu, 8 Nov 2018 21:29:45 +0000 (23:29 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Nov 2018 23:35:53 +0000 (00:35 +0100)
commit99813c2a32f61f7c1a185f625510087119c4513e
tree042e773b16a8800b3a7a96718edb3b68dae492f3
parent0911d4ec01839c9149a0df5758d00d9d57a47cea
net/mlx5: fix flow director add and delete

Fix the flow_fdir_cmp() function, used by flow_fdir_filter_lookup().
This function is used by flow_fdir_filter_add() to check if same rule
exists, and by flow_fdir_filter_delete() to find flow rule to delete.

The function compared actions conf pointers, changed to compare
actions type only.

Fixes: 2720f833d461 ("net/mlx5: add missing flow director delete")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_flow.c