net/mlx5: fix flow modify action validation
authorJiawei Wang <jiaweiw@nvidia.com>
Mon, 28 Jun 2021 10:58:28 +0000 (13:58 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 8 Jul 2021 20:09:21 +0000 (22:09 +0200)
commit3057f337792ad71a65b8c5aa1f63a556837c9472
treec439321920f15576f28fb82bd169bc0b6b57bc4c
parentec837ad0fc7c6df4912cc2706b9cd54b225f4a34
net/mlx5: fix flow modify action validation

The introduced MODIFY_FIELD action was used to manipulate
the packet header field through copy or set operations.

These modify header actions should be counted as one action
in low level, the current code used wrong actions flags
checking for modify field action.

This patch update the action flags checking into the correct
MODIFY_HDR_ACTIONS set.

Fixes: 641dbe4fb053 ("net/mlx5: support modify field flow 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_dv.c