[PATCH net-next 0/2] devlink: extend phys_port_name controller prefix to non-external ports
From: Tariq Toukan
Date: Thu Jul 02 2026 - 07:28:03 EST
Hi,
This series by Moshe includes the controller number in phys_port_name
for non-external ports with a non-zero controller, and updates the mlx5
driver to mark satellite PFs as non-external.
The controller prefix (c) in phys_port_name was previously only included
for ports marked as external. However, newer devices can have multiple
controllers within the DPU itself, even within a single host
environment. For example, a SmartNIC may have additional local PCI
physical functions that are managed by the eswitch but are not on an
external host. These ports use a non-zero controller number to
distinguish them from the eswitch manager's own functions, while the
external flag remains unset.
Patch 1 updates the devlink core to include the controller prefix in
phys_port_name for any non-zero controller, regardless of the external
flag. Documentation and kdoc are updated accordingly.
Patch 2 updates the mlx5 driver to set satellite PF devlink ports as
non-external, since they are local to the DPU. It also distinguishes
satellite PF SFs from host PF SFs when setting the external attribute.
Regards,
Tariq
Moshe Shemesh (2):
devlink: print controller prefix for non-zero controller
net/mlx5: Set satellite PF devlink ports as non-external
Documentation/networking/devlink/devlink-port.rst | 9 +++++++++
.../net/ethernet/mellanox/mlx5/core/esw/devlink_port.c | 7 +++++--
include/net/devlink.h | 6 +++---
net/devlink/port.c | 6 +++---
4 files changed, 20 insertions(+), 8 deletions(-)
base-commit: 1c664ec4b9ea827b609d296921ed5bad8a40a158
--
2.44.0