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
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -575,6 +575,9 @@ enum devlink_attr { · 574 unmodified lines | ||
| 575 | 575 | DEVLINK_ATTR_LINECARD_STATE, /* u8 */ |
| 576 | 576 | DEVLINK_ATTR_LINECARD_TYPE, /* string */ |
| 577 | 577 | 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 */ | |
| 578 | 581 | |
| 579 | 582 | /* add new attributes above here, update the policy in devlink.c */ |
| 580 | 583 | |