Commit 8910f93b authored by Fei Qin's avatar Fei Qin Committed by David S. Miller

nfp: update devlink device info output

Newer NIC will introduce a new part number, now add it
into devlink device info.

This patch also updates the information of "board.id" in
nfp.rst to match the devlink-info.rst.
Signed-off-by: default avatarFei Qin <fei.qin@corigine.com>
Signed-off-by: default avatarLouis Peens <louis.peens@corigine.com>
Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3bb946c9
...@@ -32,7 +32,7 @@ The ``nfp`` driver reports the following versions ...@@ -32,7 +32,7 @@ The ``nfp`` driver reports the following versions
- Description - Description
* - ``board.id`` * - ``board.id``
- fixed - fixed
- Part number identifying the board design - Identifier of the board design
* - ``board.rev`` * - ``board.rev``
- fixed - fixed
- Revision of the board design - Revision of the board design
...@@ -42,6 +42,9 @@ The ``nfp`` driver reports the following versions ...@@ -42,6 +42,9 @@ The ``nfp`` driver reports the following versions
* - ``board.model`` * - ``board.model``
- fixed - fixed
- Model name of the board design - Model name of the board design
* - ``board.part_number``
- fixed
- Part number of the board and its components
* - ``fw.bundle_id`` * - ``fw.bundle_id``
- stored, running - stored, running
- Firmware bundle id - Firmware bundle id
......
...@@ -160,6 +160,7 @@ static const struct nfp_devlink_versions_simple { ...@@ -160,6 +160,7 @@ static const struct nfp_devlink_versions_simple {
{ DEVLINK_INFO_VERSION_GENERIC_BOARD_REV, "assembly.revision", }, { DEVLINK_INFO_VERSION_GENERIC_BOARD_REV, "assembly.revision", },
{ DEVLINK_INFO_VERSION_GENERIC_BOARD_MANUFACTURE, "assembly.vendor", }, { DEVLINK_INFO_VERSION_GENERIC_BOARD_MANUFACTURE, "assembly.vendor", },
{ "board.model", /* code name */ "assembly.model", }, { "board.model", /* code name */ "assembly.model", },
{ DEVLINK_INFO_VERSION_GENERIC_BOARD_PART_NUMBER, "pn", },
}; };
static int static int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment