For certain devlink port flavours controller number and optionally external attributes are reported by the kernel.
(a) controller number indicates that a given port belong to which local or external controller. (b) external port attribute indicates that if a given port is for external or local controller. This short series shows this attributes to user. Patch summary: Patch-1 updates the kernel header Patch-2 shows external attribute Patch-3 show controller number Parav Pandit (3): devlink: Update kernel headers devlink: Show external port attribute devlink: Show controller number of a devlink port devlink/devlink.c | 9 +++++++++ include/uapi/linux/devlink.h | 4 ++++ 2 files changed, 13 insertions(+) -- 2.26.2