net/mlx5: support 64-bit for modify field action
authorAlexander Kozyrev <akozyrev@nvidia.com>
Wed, 7 Apr 2021 15:18:29 +0000 (15:18 +0000)
committerRaslan Darawsheh <rasland@nvidia.com>
Tue, 13 Apr 2021 11:22:59 +0000 (13:22 +0200)
commit61cfa035d3712243d0b724e6e3d76607520671e2
tree20ce5652cd576936b81e6e6af044e06dbfcb46f0
parentf70dcb2bab09f21f8f73a192eb7ba6fc0255b48b
net/mlx5: support 64-bit for modify field action

Extend the range of immediate value used in the MODIFY_FIELD action
from 32 to 64 bits to conform to the rte_flow_action_modify_data spec.
Apply appropriate big endian conversion to the immediate value
according to a destination field bit width.

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