net/mlx5: adjust modify field action endianness
authorAlexander Kozyrev <akozyrev@nvidia.com>
Wed, 24 Mar 2021 15:04:35 +0000 (15:04 +0000)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 31 Mar 2021 07:21:23 +0000 (09:21 +0200)
commit144127ba566059f01c372f3031357bbf98e4d67c
tree845e6d37dfa773dcb2c18395c79866e286699b72
parent8660e202b3c32d0ec27a2ca3e7f3c7e5c95f0968
net/mlx5: adjust modify field action endianness

Masks that used to modify a packet field must be in a big
endian format. Convert then to BE to ensure proper modification.

Fixes: 641dbe4fb053 ("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