diff options
author | Jiri Pirko <jiri@nvidia.com> | 2022-04-18 09:42:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-18 13:00:18 +0300 |
commit | fc9f50d5b366cd9f35bdee22fe3f8d77833cb1d8 (patch) | |
tree | 4df5da71305573153fddd8e61dba55e3ab0a955f /Documentation | |
parent | fcdc8ce23a309c26a67fc613a741d9b21a248311 (diff) | |
download | linux-fc9f50d5b366cd9f35bdee22fe3f8d77833cb1d8.tar.xz |
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.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/networking/devlink/devlink-linecard.rst | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Documentation/networking/devlink/devlink-linecard.rst b/Documentation/networking/devlink/devlink-linecard.rst index 63ccd17f40ac..6c0b8928bc13 100644 --- a/Documentation/networking/devlink/devlink-linecard.rst +++ b/Documentation/networking/devlink/devlink-linecard.rst @@ -66,6 +66,7 @@ The ``devlink-linecard`` mechanism supports the following line card states: with a line card type. * ``provisioning_failed``: Provisioning was not successful. * ``provisioned``: Line card slot is provisioned with a type. + * ``active``: Line card is powered-up and active. The following diagram provides a general overview of ``devlink-linecard`` state transitions:: @@ -85,11 +86,11 @@ state transitions:: | | | +-----------------------------+ | | | - | +------------v------------+ +------------v------------+ - | | | | | - +----- provisioning_failed | | provisioned | - | | | | | - | +------------^------------+ +------------|------------+ + | +------------v------------+ +------------v------------+ +-------------------------+ + | | | | ----> | + +----- provisioning_failed | | provisioned | | active | + | | | | <---- | + | +------------^------------+ +------------|------------+ +-------------------------+ | | | | | | | | +------------v------------+ |