public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Jiri Pirko <jiri@resnulli.us>
To: Louis Peens <louis.peens@corigine.com>
Cc: David Miller <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Fei Qin <fei.qin@corigine.com>,
	netdev@vger.kernel.org, oss-drivers@corigine.com
Subject: Re: [PATCH net-next v2 1/4] devlink: add two info version tags
Date: Wed, 28 Feb 2024 13:14:43 +0100	[thread overview]
Message-ID: <Zd8js1wsTCxSLYxy@nanopsycho> (raw)
In-Reply-To: <20240228075140.12085-2-louis.peens@corigine.com>

Wed, Feb 28, 2024 at 08:51:37AM CET, louis.peens@corigine.com wrote:
>From: Fei Qin <fei.qin@corigine.com>
>
>Add definition and documentation for the new generic
>info "board.model" and "part_number".
>
>Signed-off-by: Fei Qin <fei.qin@corigine.com>
>Signed-off-by: Louis Peens <louis.peens@corigine.com>
>---
> Documentation/networking/devlink/devlink-info.rst | 10 ++++++++++
> include/net/devlink.h                             |  5 +++++
> 2 files changed, 15 insertions(+)
>
>diff --git a/Documentation/networking/devlink/devlink-info.rst b/Documentation/networking/devlink/devlink-info.rst
>index 1242b0e6826b..e663975a6b19 100644
>--- a/Documentation/networking/devlink/devlink-info.rst
>+++ b/Documentation/networking/devlink/devlink-info.rst
>@@ -146,6 +146,11 @@ board.manufacture
> 
> An identifier of the company or the facility which produced the part.
> 
>+board.model
>+-----------
>+
>+Board design model.
>+
> fw
> --
> 
>@@ -203,6 +208,11 @@ fw.bootloader
> 
> Version of the bootloader.
> 
>+part_number
>+-----------
>+
>+Part number of the entire product.
>+
> Future work
> ===========
> 
>diff --git a/include/net/devlink.h b/include/net/devlink.h
>index 9ac394bdfbe4..edcd7a1f7068 100644
>--- a/include/net/devlink.h
>+++ b/include/net/devlink.h
>@@ -605,6 +605,8 @@ enum devlink_param_generic_id {
> #define DEVLINK_INFO_VERSION_GENERIC_BOARD_REV	"board.rev"
> /* Maker of the board */
> #define DEVLINK_INFO_VERSION_GENERIC_BOARD_MANUFACTURE	"board.manufacture"
>+/* Model of the board */
>+#define DEVLINK_INFO_VERSION_GENERIC_BOARD_MODEL       "board.model"
> 
> /* Part number, identifier of asic design */
> #define DEVLINK_INFO_VERSION_GENERIC_ASIC_ID	"asic.id"
>@@ -632,6 +634,9 @@ enum devlink_param_generic_id {
> /* Bootloader */
> #define DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER	"fw.bootloader"
> 
>+/* Part number for entire product */
>+#define DEVLINK_INFO_VERSION_GENERIC_PART_NUMBER       "part_number"

/* Part number, identifier of board design */
#define DEVLINK_INFO_VERSION_GENERIC_BOARD_ID   "board.id"

Isn't this what you are looking for?

"part_number" without domain (boards/asic/fw) does not look correct to
me. "Product" sounds very odd.

pw-bot: cr



>+
> /**
>  * struct devlink_flash_update_params - Flash Update parameters
>  * @fw: pointer to the firmware data to update from
>-- 
>2.34.1
>
>

  reply	other threads:[~2024-02-28 12:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-28  7:51 [PATCH net-next v2 0/4] nfp: series of minor driver improvements Louis Peens
2024-02-28  7:51 ` [PATCH net-next v2 1/4] devlink: add two info version tags Louis Peens
2024-02-28 12:14   ` Jiri Pirko [this message]
2024-02-29  4:32     ` Jakub Kicinski
2024-03-07  8:17       ` Louis Peens
2024-03-07  8:40         ` Jiri Pirko
2024-03-07 11:06           ` Louis Peens
2024-03-07 11:32             ` Jiri Pirko
2024-03-08  0:59               ` Jakub Kicinski
2024-02-28  7:51 ` [PATCH net-next v2 2/4] nfp: update devlink device info output Louis Peens
2024-02-28 12:16   ` Jiri Pirko
2024-02-29  4:34   ` Jakub Kicinski
2024-03-07  8:22     ` Louis Peens
2024-02-28  7:51 ` [PATCH net-next v2 3/4] dim: introduce a specific dim profile for better latency Louis Peens
2024-02-28  7:51 ` [PATCH net-next v2 4/4] nfp: use new dim profiles " Louis Peens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Zd8js1wsTCxSLYxy@nanopsycho \
    --to=jiri@resnulli.us \
    --cc=davem@davemloft.net \
    --cc=fei.qin@corigine.com \
    --cc=kuba@kernel.org \
    --cc=louis.peens@corigine.com \
    --cc=netdev@vger.kernel.org \
    --cc=oss-drivers@corigine.com \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox