devlink: introduce line card info get message
authorJiri Pirko <jiri@nvidia.com>
Mon, 25 Apr 2022 03:44:22 +0000 (06:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2022 09:42:28 +0000 (10:42 +0100)
commit276910aecc6a4076f5fbfd8160ff70695d6c1eb5
treeb24b9a7855c113b7e38b874077ea243e101edccb
parent8d92e4fbcf0fb7ecb24223b7b1ce95b9beb4dfa2
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>
Documentation/networking/devlink/devlink-linecard.rst
include/net/devlink.h
include/uapi/linux/devlink.h
net/core/devlink.c