net/mlx5: unify validation of drop action
authorDekel Peled <dekelp@mellanox.com>
Wed, 22 Jan 2020 14:27:17 +0000 (16:27 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:20 +0000 (09:51 +0100)
commit70faf9ae0a299e5750b687dfecb6efc65b038304
tree169f019ebfb1e0f9c1c0d2fadced3cfe2fc4003a
parent5507cb79279d03d196133bcc26feace49e8e1fab
net/mlx5: unify validation of drop action

According to PRM: "Drop action is mutually-exclusive with any other
action, except for Count action".
In current code this limitation is checked separately in validation
function of each action.

This patch removes the discrete checks, and adds a single check common
for all actions.

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_flow_verbs.c