]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix port matching in sample flow rule
authorJiawei Wang <jiaweiw@nvidia.com>
Mon, 7 Mar 2022 02:10:42 +0000 (04:10 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Mon, 14 Mar 2022 14:29:57 +0000 (15:29 +0100)
commit04c0d3f20f54618c2b62f353b31b5a2fb20d687a
treef2cf60c3a25708d6af8915e3a75611b81ca49f13
parent1ceeac3241b1a6c0bda63f8245a72b991eb44705
net/mlx5: fix port matching in sample flow rule

If there are an explicit port match and sample action in the same flow,
mlx5 PMD pushes the explicit port match in the prefix subflow, and
uses the tag item match in the suffix subflow.

The explicit port match was translated into source vport match so
the sample suffix subflow lost this match after flow split.

This patch copies the explicit port match to the sample suffix subflow,
and the latter gets the correct source vport value in the flow matcher.

Fixes: b4c0ddbfcc58 ("net/mlx5: split sample flow into two sub-flows")
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