]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix sample flow action on trusted device
authorJiawei Wang <jiaweiw@nvidia.com>
Wed, 9 Mar 2022 10:19:46 +0000 (12:19 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 9 Mar 2022 12:31:06 +0000 (13:31 +0100)
commit9a726360dd3010a4c664e37682826b68a0a7f7fe
tree0fc46e7472c9ad49bd279521659c305e0398e5b4
parent7c0c63c9a53964d40b27da618ab94303f28ea92e
net/mlx5: fix sample flow action on trusted device

A flow rule with sample action will be split into two sub flows,
and a tag action was added implicitly in the sample prefix sub flow,
the reserved metadata regC index was used for this tag action.

The reserved metadata regC was shared with metering action,
for ConnectX-5 trusted device (VF/SF), the reserved metadata regC was
invalid since PF only supported the legacy metering.

This patch adds the checking for the tag index and back to use the
application tag if a failure happened.

Fixes: a9b6ea45bed6 ("net/mlx5: fix tag ID conflict with sample action")
Cc: stable@dpdk.org
Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
doc/guides/nics/mlx5.rst
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow_dv.c