net/mlx5: check extended metadata for mark modification
authorAlexander Kozyrev <akozyrev@nvidia.com>
Wed, 24 Mar 2021 15:04:36 +0000 (15:04 +0000)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 31 Mar 2021 07:21:25 +0000 (09:21 +0200)
commit0588d64ffde32973a97ad87bdd7aec79613e90ce
treea9bbdc2573c549f8d218acd92598180fd57c031b
parent144127ba566059f01c372f3031357bbf98e4d67c
net/mlx5: check extended metadata for mark modification

The MODIFY_FIELD action requires the extended metadata support
in order to manipulate on MARK register. Check if it is supported
and reject the MODIFY_FIELD action if it is not.

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