net/mlx5: fix metadata and meter split shared tag
authorJiawei Wang <jiaweiw@nvidia.com>
Fri, 19 Nov 2021 13:02:00 +0000 (15:02 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Sun, 21 Nov 2021 14:38:02 +0000 (15:38 +0100)
commit16f4aa57ca381c4283826cdfce2cd4e172744ca7
tree7ed1943891473df6580a46bb5c7e673d9259c4db
parent369ce46248c0605d31bd29ebaa4474309a875176
net/mlx5: fix metadata and meter split shared tag

In the metadata flow split, PMD created the prefix subflow
with removed Queue or RSS action and appended the set tag and
copy table jump actions. If the flow being split for metadata
was the meter prefix subflow, the driver supposed to share the same
meter split tag action for the metadata split flow. There was the wrong
check for preceding meter split tag action, causing append with metadata
split set tag action and resulting the meter suffix subflow was missed
due to tag value mismatch.

This patch adds the checking before copying into extend action list,
to make sure the correct shared tag is used.

Fixes: 8d72fa668964 ("net/mlx5: share tag between meter and metadata")
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