[PATCH] net/mlx5: fix register selection for metadata between E-Switch and VM

Raslan Darawsheh rasland at nvidia.com
Wed Feb 4 16:10:21 CET 2026


Hi,


On 01/12/2025 7:36 PM, Gregory Etelson wrote:
> The PMD relied on a flow domain type in register selection for
> modify header action that assigned metadata value.
> 
> In the HWS code, the PMD uses the MLX5DR_TABLE_TYPE_MAX instead of
> the exact domain type for flows in group 0.
> As a result, the register selection was wrong.
> 
> This patch fixes the register selection logic when flow metadata
> sharing between E-Switch and VM is enabled.
> In this case REG_C_1 will always be used.
> 
> Fixes: a78425ba3793 ("net/mlx5: support flow metadata between E-Switch and VM")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Gregory Etelson <getelson at nvidia.com>
> Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>

Patch applied to next-net-mlx,

Kindest regards
Raslan Darawsheh



More information about the stable mailing list