All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/3] net/mlx5: Expose additional devlink dev info
@ 2025-04-16 21:41 Jiri Pirko
  2025-04-16 21:41 ` [PATCH net-next v3 1/3] net/mlx5: Expose serial numbers in devlink info Jiri Pirko
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Jiri Pirko @ 2025-04-16 21:41 UTC (permalink / raw)
  To: netdev
  Cc: davem, edumazet, kuba, pabeni, saeedm, leon, tariqt,
	andrew+netdev, horms, donald.hunter, parav,
	kalesh-anakkur.purayil

From: Jiri Pirko <jiri@nvidia.com>

This patchset aims to expose couple of already defined serial numbers
for mlx5 driver.

On top of that, it introduces new field, "function.uid" and exposes
that for mlx5 driver.

Example:

$ devlink dev info
pci/0000:08:00.0:
  driver mlx5_core
  serial_number e4397f872caeed218000846daa7d2f49
  board.serial_number MT2314XZ00YA
  function.uid MT2314XZ00YAMLNXS0D0F0
  versions:
      fixed:
        fw.psid MT_0000000894
      running:
        fw.version 28.41.1000
        fw 28.41.1000
      stored:
        fw.version 28.41.1000
        fw 28.41.1000
auxiliary/mlx5_core.eth.0:
  driver mlx5_core.eth
pci/0000:08:00.1:
  driver mlx5_core
  serial_number e4397f872caeed218000846daa7d2f49
  board.serial_number MT2314XZ00YA
  function.uid MT2314XZ00YAMLNXS0D0F1
  versions:
      fixed:
        fw.psid MT_0000000894
      running:
        fw.version 28.41.1000
        fw 28.41.1000
      stored:
        fw.version 28.41.1000
        fw 28.41.1000
auxiliary/mlx5_core.eth.1:
  driver mlx5_core.eth

---
v2->v3:
- patch#1 from v2 was separatelly accepted
- patch#1:
  - do not continue in case devlink_info_*serial_number_put() returns
    error
- patch#2:
  - extended patch description
  - extended documentation
- patch#3:
  - do not continue in case devlink_info_function_uid_put() returns error
v1->v2:
- patch#2:
  - fixed possibly uninitialized variable "err"

Jiri Pirko (3):
  net/mlx5: Expose serial numbers in devlink info
  devlink: add function unique identifier to devlink dev info
  net/mlx5: Expose function UID in devlink info

 Documentation/netlink/specs/devlink.yaml      |  4 ++
 .../networking/devlink/devlink-info.rst       | 20 ++++++
 .../net/ethernet/mellanox/mlx5/core/devlink.c | 68 +++++++++++++++++++
 include/net/devlink.h                         |  2 +
 include/uapi/linux/devlink.h                  |  2 +
 net/devlink/dev.c                             |  9 +++
 6 files changed, 105 insertions(+)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-04-29  7:16 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-16 21:41 [PATCH net-next v3 0/3] net/mlx5: Expose additional devlink dev info Jiri Pirko
2025-04-16 21:41 ` [PATCH net-next v3 1/3] net/mlx5: Expose serial numbers in devlink info Jiri Pirko
2025-04-16 21:41 ` [PATCH net-next v3 2/3] devlink: add function unique identifier to devlink dev info Jiri Pirko
2025-04-18  1:38   ` Jakub Kicinski
2025-04-18 10:15     ` Jiri Pirko
2025-04-19  0:20       ` Jakub Kicinski
2025-04-22  9:18         ` Jiri Pirko
2025-04-22 15:02           ` Jakub Kicinski
2025-04-23 11:23             ` Jiri Pirko
2025-04-23 22:17               ` Jakub Kicinski
2025-04-24  9:42                 ` Jiri Pirko
2025-04-24 22:06                   ` Jakub Kicinski
2025-04-25  7:27                     ` Jiri Pirko
2025-04-25 20:45                       ` Jakub Kicinski
2025-04-28 16:28                         ` Jiri Pirko
2025-04-28 18:12                           ` Jakub Kicinski
2025-04-29  7:16                             ` Jiri Pirko
2025-04-16 21:41 ` [PATCH net-next v3 3/3] net/mlx5: Expose function UID in devlink info Jiri Pirko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.