linux/net/devlink
Moshe Shemesh f6ec46b7e2 devlink: print controller prefix for non-zero controller
The controller prefix (c<N>) in phys_port_name is currently restricted
to external host controllers. This layout sufficed when DPUs only had a
single local controller and one or more external host controllers.

However, newer devices can have multiple controllers within the DPU
itself, even within a single host environment. To support these
topologies, allow drivers to report the controller number regardless of
the "external" flag status. Any non-zero controller number will now be
explicitly reported, even for single-host or local DPU controllers.
Existing ports with controller=0 are unaffected.

Update documentation and kdoc to clarify that a non-zero controller
number does not require the external flag to be set.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260702111726.816985-2-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2026-07-08 11:23:49 +02:00
..
core.c devlink: Allow rate node parents from other devlinks 2026-07-07 11:31:26 +02:00
dev.c devlink: Migrate from info->user_ptr to info->ctx 2026-07-07 11:31:26 +02:00
devl_internal.h devlink: Add parent dev to devlink API 2026-07-07 11:31:26 +02:00
dpipe.c devlink: Migrate from info->user_ptr to info->ctx 2026-07-07 11:31:26 +02:00
health.c devlink: Migrate from info->user_ptr to info->ctx 2026-07-07 11:31:26 +02:00
linecard.c devlink: Migrate from info->user_ptr to info->ctx 2026-07-07 11:31:26 +02:00
Makefile devlink: introduce shared devlink instance for PFs on same chip 2026-03-14 13:08:50 -07:00
netlink_gen.c devlink: Allow parent dev for rate-set and rate-new 2026-07-07 11:31:26 +02:00
netlink_gen.h devlink: Allow parent dev for rate-set and rate-new 2026-07-07 11:31:26 +02:00
netlink.c devlink: Allow parent dev for rate-set and rate-new 2026-07-07 11:31:26 +02:00
param.c devlink: Migrate from info->user_ptr to info->ctx 2026-07-07 11:31:26 +02:00
port.c devlink: print controller prefix for non-zero controller 2026-07-08 11:23:49 +02:00
rate.c devlink: Allow rate node parents from other devlinks 2026-07-07 11:31:26 +02:00
region.c devlink: Migrate from info->user_ptr to info->ctx 2026-07-07 11:31:26 +02:00
resource.c devlink: Migrate from info->user_ptr to info->ctx 2026-07-07 11:31:26 +02:00
sb.c devlink: Migrate from info->user_ptr to info->ctx 2026-07-07 11:31:26 +02:00
sh_dev.c devlink: introduce shared devlink instance for PFs on same chip 2026-03-14 13:08:50 -07:00
trap.c devlink: Migrate from info->user_ptr to info->ctx 2026-07-07 11:31:26 +02:00