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 /include/uapi | |
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 'include/uapi')
-rw-r--r-- | include/uapi/linux/devlink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h index cd578645f94f..fb8c3864457f 100644 --- a/include/uapi/linux/devlink.h +++ b/include/uapi/linux/devlink.h @@ -136,6 +136,8 @@ enum devlink_command { DEVLINK_CMD_LINECARD_NEW, DEVLINK_CMD_LINECARD_DEL, + DEVLINK_CMD_LINECARD_INFO_GET, /* can dump */ + /* add new commands above here */ __DEVLINK_CMD_MAX, DEVLINK_CMD_MAX = __DEVLINK_CMD_MAX - 1 |