net/mlx5: fix mirroring with metering action
authorJiawei Wang <jiaweiw@nvidia.com>
Wed, 12 May 2021 06:53:24 +0000 (09:53 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 12 May 2021 11:54:26 +0000 (13:54 +0200)
commitb20cb0fe6ea4bcc92de025e4b1565c9a9520d066
tree24cfe9b54b16352c7178f6c949092c727e53b9fc
parentd31a89719024934cb834ca4ed7f76e8d178cd366
net/mlx5: fix mirroring with metering action

While there's mirror action prior to the meter action in the E-Switch
flow, means that the packets should be duplicated into port firstly,
and then do meter and send to the original destination.
MLX5 PMD will split the above E-Switch flow into two sub flows,
similar as mirror with modify action before.

Fixes: 07627fbf1506 ("net/mlx5: support E-Switch mirroring with modify action")
Cc: stable@dpdk.org
Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow.c