]> git.droids-corp.org - dpdk.git/commit
net/mlx5: allow meta modifications in legacy mode
authorAlexander Kozyrev <akozyrev@nvidia.com>
Wed, 27 Oct 2021 03:52:34 +0000 (06:52 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Sun, 31 Oct 2021 12:31:13 +0000 (13:31 +0100)
commita5a0a43bc62ed5c735ae482dbc4d8a7af4b95eab
treefbec8162f0fc09850fa0c8d87e59f8c61762099f
parentf4f8f5aee304ed92de98f0602c4a8052fdea5f65
net/mlx5: allow meta modifications in legacy mode

The MODIFY_FIELD RTE action rejects copy to/from metadata
in case of the legacy mode extensive flow metadata support.
It is not consistent with SET_META action that has no such
restriction imposed. Registers A or B are used for META in
legacy mode. Allow meta modifications in legacy mode as well.

On other hand, SET_META rejects actions in case register C
is not available even though it is not needed in legacy mode.
Skip this check for legacy mode and allow setting META.

Fixes: edf325d421e8 ("net/mlx5: check extended metadata for meta modification")
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