net/mlx5: fix drop action validation
authorDekel Peled <dekelp@mellanox.com>
Thu, 15 Aug 2019 09:26:50 +0000 (12:26 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Sep 2019 15:15:14 +0000 (17:15 +0200)
commite6ed9dfdf848a3c7995dc6fa8f56f8c7fbb85161
tree2648479c968be4935e621817aa8dbf690d1caef4
parent48c91c8f3fc7edb3e90eef682d535af294ed7eec
net/mlx5: fix drop action validation

Function mlx5_flow_validate_action_drop() checks if another fate
action is already present in this flow rule, using defined value
MLX5_FLOW_FATE_ACTIONS.

This patch enhances the check using value
(MLX5_FLOW_FATE_ACTIONS | MLX5_FLOW_FATE_ESWITCH_ACTIONS)
to make sure all relevant fate actions are checked.

Fixes: 23c1d42c7138 ("net/mlx5: split flow validation to dedicated function")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_flow.c