]> git.feebdaed.xyz Git - 0xmirror/dpdk.git/commit
net/mlx5/windows: fix match criteria in flow creation
authorItai Sharoni <isharoni@nvidia.com>
Mon, 17 Nov 2025 08:45:00 +0000 (10:45 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Tue, 18 Nov 2025 13:20:19 +0000 (14:20 +0100)
commite0b87fa079b9f35750f4d6fb71a00ab0ca19d170
treef0cd7a0c98f6d5377997a9e35da2c9ddd4fe21e4
parentaff44ada9abc5831601e7dad5d48d9c6b5493f2d
net/mlx5/windows: fix match criteria in flow creation

Currently the Windows implementation hardcodes match criteria to
MLX5_MATCH_OUTER_HEADERS when creating flow rules, which prevents
matching on inner headers and other criteria types like NVGRE.

The fix uses the matcher's match_criteria_enable attribute instead
of hardcoding OUTER_HEADERS, and moves the assignment outside the
action switch block to apply to all cases.

NVGRE item type is also added to the supported items list.

Fixes: 1d194496b9d1 ("net/mlx5: create flow rule on Windows")
Cc: stable@dpdk.org
Signed-off-by: Itai Sharoni <isharoni@nvidia.com>
Acked-by: Bing Zhao <bingz@nvidia.com>
.mailmap
doc/guides/nics/mlx5.rst
drivers/net/mlx5/windows/mlx5_flow_os.c
drivers/net/mlx5/windows/mlx5_flow_os.h