net/mlx5: fix representor ID check for sampling
authorJiawei Wang <jiaweiw@nvidia.com>
Tue, 29 Jun 2021 06:59:53 +0000 (09:59 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 8 Jul 2021 20:09:22 +0000 (22:09 +0200)
commitb3880af2ce3183c5cdb55760ef47036dc1585965
tree184cd112dffce5c1158a9f1e471d7135ff195bcd
parent2f6c2adbe550ea95a0f73c4f9a9cc5da890b9bf2
net/mlx5: fix representor ID check for sampling

The representor definition was introduced in the latest code.
For non-representor port, like PF port, use the 0xffff instead of -1.

This patch updates the representor id checking during splitting sample
flow.

Fixes: cb95feefdd03 ("net/mlx5: support sub-function representor")
Cc: stable@dpdk.org
Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Xueming Li <xuemingl@nvidia.com>
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow_dv.c