net/mlx5: check field size in modify field action
authorAlexander Kozyrev <akozyrev@nvidia.com>
Wed, 24 Mar 2021 15:04:34 +0000 (15:04 +0000)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 31 Mar 2021 07:21:21 +0000 (09:21 +0200)
commit8660e202b3c32d0ec27a2ca3e7f3c7e5c95f0968
tree70641edbe0a371efc039174ed709d5d2d9c823b8
parent91766fae2b7c76530ac0a52f5992db25edbeb92f
net/mlx5: check field size in modify field action

Add a validation check to make sure that the specified width
for MODIFY_FIELD RTE action is not bigger than a field size.

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