History

devlink: implement line card active state

Allow driver to mark a line card as active. Expose this state to the userspace over devlink netlink interface with proper notifications. 'active' state means that line card was plugged in after being provisioned.

Jiri Pirko committed 4 years ago

Commit fc9f50d1 parent fcdc8ce4 files · +50 −5Browse files

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

Unified · Split

include/uapi/linux/devlink.h+1−0
@@ -350,6 +350,7 @@ enum devlink_linecard_state { · 349 unmodified lines
350350 DEVLINK_LINECARD_STATE_PROVISIONING,
351351 DEVLINK_LINECARD_STATE_PROVISIONING_FAILED,
352352 DEVLINK_LINECARD_STATE_PROVISIONED,
353+ DEVLINK_LINECARD_STATE_ACTIVE,
353354
354355 __DEVLINK_LINECARD_STATE_MAX,
355356 DEVLINK_LINECARD_STATE_MAX = __DEVLINK_LINECARD_STATE_MAX - 1