net/mlx5: allow copy from one tag to another
authorAlexander Kozyrev <akozyrev@nvidia.com>
Tue, 25 May 2021 17:14:14 +0000 (20:14 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 24 Jun 2021 11:19:45 +0000 (13:19 +0200)
commit1fddb5205b9f50dc6efdb9d23d0b0e63a254df39
tree98183b1400914c953c9bcf17219c998bf60bd819
parentd91093b9a2af5378734b301bd2fc75d44e18d269
net/mlx5: allow copy from one tag to another

The modify field implementation in mlx5 driver has a check to
prevent a copy from a field to the same field. But the level
is not taken into account which prevents a copy from different
tags. Check the level and allow a copy from one tag to another.

Fixes: 641dbe4fb05 ("net/mlx5: support modify field flow action")
Cc: stable@dpdk.org
Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c