[PATCH] net/mlx5: fix NAT64 register selection
Raslan Darawsheh
rasland at nvidia.com
Thu Mar 13 14:07:56 CET 2025
Hi
From: Dariusz Sosnowski <dsosnowski at nvidia.com>
Sent: Wednesday, March 12, 2025 11:51 AM
To: Slava Ovsiienko; Bing Zhao; Ori Kam; Suanming Mou; Matan Azrad
Cc: dev at dpdk.org; Raslan Darawsheh; stable at dpdk.org
Subject: [PATCH] net/mlx5: fix NAT64 register selection
PMD statically assumed that REG_C_6 is always available for use
with NAT64 HW flow action.
This led to PMD configuration errors on FW versions which do not expose
that specific register.
This patch fixes that by adding a check for REG_C_6 against FW
capabilities, when registers for NAT64 are selected.
Also, if not enough registers are available, PMD will not attempt to
create NAT64 actions.
Fixes: 7a26bfec06a4 ("net/mlx5: fetch available registers for NAT64")
Cc: stable at dpdk.org
Signed-off-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
Acked-by: Bing Zhao <bingz at nvidia.com>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the dev
mailing list