netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/2] dpll: expose clock quality level
@ 2024-10-14  8:11 Jiri Pirko
  2024-10-14  8:11 ` [PATCH net-next v3 1/2] dpll: add clock quality level attribute and op Jiri Pirko
  2024-10-14  8:11 ` [PATCH net-next v3 2/2] net/mlx5: DPLL, Add clock quality level op implementation Jiri Pirko
  0 siblings, 2 replies; 19+ messages in thread
From: Jiri Pirko @ 2024-10-14  8:11 UTC (permalink / raw)
  To: netdev
  Cc: davem, edumazet, kuba, pabeni, donald.hunter, vadim.fedorenko,
	arkadiusz.kubalewski, saeedm, leon, tariqt

From: Jiri Pirko <jiri@nvidia.com>

Some device driver might know the quality of the clock it is running.
In order to expose the information to the user, introduce new netlink
attribute and dpll device op. Implement the op in mlx5 driver.

Example:
$ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/dpll.yaml --dump device-get
[{'clock-id': 13316852727532664826,
  'clock-quality-level': ['itu-opt1-eeec'],    <<<<<<<<<<<<<<<<<
  'id': 0,
  'lock-status': 'unlocked',
  'lock-status-error': 'none',
  'mode': 'manual',
  'mode-supported': ['manual'],
  'module-name': 'mlx5_dpll',
  'type': 'eec'}]

---
v2->v3:
- changed "itu" prefix to "itu-opt1"
- changed driver op to pass bitmap to allow to set multiple qualities
  and pass it to user over multiple attrs
- enhanced the documentation a bit
v1->v2:
- extended quality enum documentation
- added "itu" prefix to the enum values

Jiri Pirko (2):
  dpll: add clock quality level attribute and op
  net/mlx5: DPLL, Add clock quality level op implementation

 Documentation/netlink/specs/dpll.yaml         | 35 ++++++++
 drivers/dpll/dpll_netlink.c                   | 24 ++++++
 .../net/ethernet/mellanox/mlx5/core/dpll.c    | 81 +++++++++++++++++++
 include/linux/dpll.h                          |  4 +
 include/uapi/linux/dpll.h                     | 24 ++++++
 5 files changed, 168 insertions(+)

-- 
2.47.0


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

end of thread, other threads:[~2024-10-29 14:41 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-14  8:11 [PATCH net-next v3 0/2] dpll: expose clock quality level Jiri Pirko
2024-10-14  8:11 ` [PATCH net-next v3 1/2] dpll: add clock quality level attribute and op Jiri Pirko
2024-10-14  8:54   ` Kubalewski, Arkadiusz
2024-10-15 14:26   ` Jakub Kicinski
2024-10-15 14:38     ` Jiri Pirko
2024-10-15 15:01       ` Jakub Kicinski
2024-10-16  8:19         ` Jiri Pirko
2024-10-18  7:07           ` Jiri Pirko
2024-10-28 17:14           ` Jakub Kicinski
2024-10-29 12:52             ` Jiri Pirko
2024-10-29 13:51               ` Jakub Kicinski
2024-10-29 14:41                 ` Jiri Pirko
2024-10-16  8:21         ` Jiri Pirko
2024-10-15 14:50     ` Vadim Fedorenko
2024-10-15 14:56       ` Jiri Pirko
2024-10-15 15:01         ` Vadim Fedorenko
2024-10-16  8:17           ` Jiri Pirko
2024-10-14  8:11 ` [PATCH net-next v3 2/2] net/mlx5: DPLL, Add clock quality level op implementation Jiri Pirko
2024-10-14  8:57   ` Kubalewski, Arkadiusz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).