net/mlx5: update flow mirroring validation
authorJiawei Wang <jiaweiw@nvidia.com>
Tue, 13 Oct 2020 14:11:49 +0000 (17:11 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:48:18 +0000 (19:48 +0200)
commit50390aab116b8f3c97950ae314fa19cf9efb8c45
tree2f3ab1ca5e35a1f1a4ff61fd54de0f6ddfed4ac5
parent4d23dd35f234eb3a7db9a114a146930d2f237028
net/mlx5: update flow mirroring validation

Mirroring flow using sample action with ratio is 1, and it doesn't
support jump action with the same one flow.

Sample action must have destination actions like port or queue for
mirroring, and don't need split function as sampling flow.

Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow_dv.c