]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix implicit tag insertion with sample action
authorJiawei Wang <jiaweiw@nvidia.com>
Thu, 10 Mar 2022 04:00:10 +0000 (06:00 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 10 Mar 2022 08:29:05 +0000 (09:29 +0100)
commit0f845cc7264a8b56225a28cb4584095cbbf88869
treebb1c08a3a318125752ed702c153f60dc297930c6
parent4a9e5c999cd5ed8d17bcff4288d32e2c3ff82ac5
net/mlx5: fix implicit tag insertion with sample action

A flow rule with sample action was split into two sub-flows,
and the implicit tag action with unique id was added in the prefix
sub-flow, the suffix sub-flow used the tag item to match with that
unique id, and the implicit set tag action was inserted next to
the sample action.

While there's either PUSH VLAN action or ENCAP action preceding the
sample action, implicit set tag action was added after PUSH VLAN or
ENCAP actions, causing flow creation failure due to rdma-core
does not support this action order.

This patch ensures the implicit set tag action is inserted before
either PUSH VLAN or encap action (if any) in the prefix sub-flow.

Fixes: 6a951567c159 ("net/mlx5: support E-Switch mirroring and jump in one flow")
Cc: stable@dpdk.org
Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow.c