History

devlink: introduce line card devices support

Line card can contain one or more devices that makes sense to make visible to the user. For example, this can be a gearbox with flash memory, which could be updated. Provide the driver possibility to attach such devices to a line card and expose those to user. Example: $ devlink lc show pci/0000:01:00.0 lc 8 pci/0000:01:00.0: lc 8 state active type 16x100G supported_types: 16x100G devices: device 0 device 1 device 2 device 3

Jiri Pirko committed 4 years ago

Commit 8d92e4f1 parent cfc1d913 files · +113 −1Browse files

Showing the changes to include/uapi/linux/devlink.h (1 of 3 files). Show all

Unified · Split

include/uapi/linux/devlink.h+3−0
@@ -575,6 +575,9 @@ enum devlink_attr { · 574 unmodified lines
575575 DEVLINK_ATTR_LINECARD_STATE, /* u8 */
576576 DEVLINK_ATTR_LINECARD_TYPE, /* string */
577577 DEVLINK_ATTR_LINECARD_SUPPORTED_TYPES, /* nested */
578+ DEVLINK_ATTR_LINECARD_DEVICE_LIST, /* nested */
579+ DEVLINK_ATTR_LINECARD_DEVICE, /* nested */
580+ DEVLINK_ATTR_LINECARD_DEVICE_INDEX, /* u32 */
578581
579582 /* add new attributes above here, update the policy in devlink.c */
580583