diff options
author | Jiri Pirko <jiri@nvidia.com> | 2022-04-25 05:44:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-25 11:42:28 +0200 |
commit | 276910aecc6a4076f5fbfd8160ff70695d6c1eb5 (patch) | |
tree | b24b9a7855c113b7e38b874077ea243e101edccb /Documentation/networking | |
parent | devlink: introduce line card devices support (diff) | |
download | linux-276910aecc6a4076f5fbfd8160ff70695d6c1eb5.tar.xz linux-276910aecc6a4076f5fbfd8160ff70695d6c1eb5.zip |
devlink: introduce line card info get message
Allow the driver to provide per line card info get op to fill-up info,
similar to the "devlink dev info".
Example:
$ devlink lc info pci/0000:01:00.0 lc 8
pci/0000:01:00.0:
lc 8
versions:
fixed:
hw.revision 0
running:
ini.version 4
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/networking')
-rw-r--r-- | Documentation/networking/devlink/devlink-linecard.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/networking/devlink/devlink-linecard.rst b/Documentation/networking/devlink/devlink-linecard.rst index 6c0b8928bc13..5a8d5989702a 100644 --- a/Documentation/networking/devlink/devlink-linecard.rst +++ b/Documentation/networking/devlink/devlink-linecard.rst @@ -14,6 +14,7 @@ system. Following operations are provided: * Get a list of supported line card types. * Provision of a slot with specific line card type. * Get and monitor of line card state and its change. + * Get information about line card versions. Line card according to the type may contain one or more gearboxes to mux the lanes with certain speed to multiple ports with lanes @@ -120,3 +121,6 @@ Example usage # Set slot 8 to be unprovisioned: $ devlink lc set pci/0000:01:00.0 lc 8 notype + + # Set info for slot 8: + $ devlink lc info pci/0000:01:00.0 lc 8 |