linux/net/devlink
Shay Drory cb59bfd419 devlink: Expose external flag for PCI SF ports
The external flag is part of the PCI SF port attributes, but unlike the
PCI PF and PCI VF flavours it was never filled into the port dump, so
userspace could not query it directly.

Reporting of the external flag was missed for SF ports. Hence, put
DEVLINK_ATTR_PORT_EXTERNAL for the PCI SF flavour as well, matching what
PCI PF and PCI VF ports already report.

$ devlink port show pci/0033:01:00.0/163840
 pci/0033:01:00.0/163840: type eth netdev eth1 flavour pcisf controller 1 pfnum 0 sfnum 77 external true splittable false

Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Shay Drory <shayd@nvidia.com>
Link: https://patch.msgid.link/20260803090012.257242-1-shayd@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-08-05 16:39:54 -07: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: Expose external flag for PCI SF ports 2026-08-05 16:39:54 -07: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