net/mlx5: fix internal root table flow priority
authorXueming Li <xuemingl@nvidia.com>
Tue, 19 Oct 2021 10:34:59 +0000 (18:34 +0800)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 21 Oct 2021 07:31:12 +0000 (09:31 +0200)
commitebe9afedc70a08b68495a607e90fdb82e0224f91
tree784132759f2f4e86f7a1e187c6265edc802ed147
parentd9020f257724819e55ef1af838812ce0e14bbda4
net/mlx5: fix internal root table flow priority

When creating internal transfer flow on root table with lowest
priority, the flow was created with max UINT32_MAX priority. It is wrong
since the flow is created in kernel and  max priority supported is 16.

This patch fixes this by adding internal flow check.

Fixes: 5f8ae44dd454 ("net/mlx5: enlarge maximal flow priority")
Cc: stable@dpdk.org
Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c