nfp: update devlink device info output
authorFei Qin <fei.qin@corigine.com>
Wed, 10 Apr 2024 11:26:36 +0000 (13:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Apr 2024 10:40:09 +0000 (11:40 +0100)
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: Fei Qin <fei.qin@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/devlink/nfp.rst
drivers/net/ethernet/netronome/nfp/nfp_devlink.c

index a1717db0dfccb6ce0383c0b5d532475c7f373e2c..3093642bdae4111da72ea6e845909f71b11bb249 100644 (file)
@@ -32,7 +32,7 @@ The ``nfp`` driver reports the following versions
      - Description
    * - ``board.id``
      - fixed
-     - Part number identifying the board design
+     - Identifier of the board design
    * - ``board.rev``
      - fixed
      - Revision of the board design
@@ -42,6 +42,9 @@ The ``nfp`` driver reports the following versions
    * - ``board.model``
      - fixed
      - Model name of the board design
+   * - ``board.part_number``
+     - fixed
+     - Part number of the board and its components
    * - ``fw.bundle_id``
      - stored, running
      - Firmware bundle id
index 635d33c0d6d3f8d858add32acbe19542b14a30d3..ea75b9a063130d434573458f721c858762246bda 100644 (file)
@@ -160,6 +160,7 @@ static const struct nfp_devlink_versions_simple {
        { DEVLINK_INFO_VERSION_GENERIC_BOARD_REV,       "assembly.revision", },
        { DEVLINK_INFO_VERSION_GENERIC_BOARD_MANUFACTURE, "assembly.vendor", },
        { "board.model", /* code name */                "assembly.model", },
+       { DEVLINK_INFO_VERSION_GENERIC_BOARD_PART_NUMBER, "pn", },
 };
 
 static int