[PATCH] net/mlx5: fix crash when using represented port w/o port ID

Raslan Darawsheh rasland at nvidia.com
Tue Mar 11 08:32:18 CET 2025


Hi,

From: Maayan Kashani <mkashani at nvidia.com>
Sent: Thursday, February 27, 2025 12:33 PM
To: dev at dpdk.org
Cc: Maayan Kashani; Dariusz Sosnowski; Raslan Darawsheh; stable at dpdk.org; Slava Ovsiienko; Bing Zhao; Ori Kam; Suanming Mou; Matan Azrad; Alex Vesker; Mark Bloch
Subject: [PATCH] net/mlx5: fix crash when using represented port w/o port ID

For non template API on top of HWS, when trying to use
represented-port item w/o setting the ethdev_port_id,
it crashes.

Added default values to match the case for SWS.
Default port is now eswitch manager id.

Fixes: c55c2bf35333 ("net/mlx5/hws: add definer layer")
Cc: stable at dpdk.org

Signed-off-by: Maayan Kashani <mkashani 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 dev mailing list