lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251115233341.2701607-1-poros@redhat.com>
Date: Sun, 16 Nov 2025 00:33:38 +0100
From: Petr Oros <poros@...hat.com>
To: netdev@...r.kernel.org
Cc: dsahern@...nel.org,
	stephen@...workplumber.org,
	ivecera@...hat.com,
	jiri@...nulli.us,
	Petr Oros <poros@...hat.com>
Subject: [PATCH iproute2-next v4 0/3] Add DPLL subsystem management tool

This patch series adds a new userspace tool for managing and monitoring
DPLL (Digital Phase-Locked Loop) devices via the Linux kernel DPLL
subsystem.

The series includes preparatory patches to move shared code to lib/ and
the main dpll tool implementation with full support for device/pin
management, monitoring, and JSON output.

Changes in v4:
- Replace DPLL_PR_MULTI_ENUM_STR macro with dpll_pr_multi_enum_str() function
- Replace pr_out("\n") with print_nl() for one-line mode support
- Remove all is_json_context() code splitting, use PRINT_FP/PRINT_JSON/PRINT_ANY
- Add dpll_pr_freq_range() helper function to reduce code duplication
- Remove trivial comments

Changes in v3:
- Use shared mnlg and str_to_bool helpers from lib
- Use str_num_map for bidirectional string/enum mapping
- Remove unnecessary else after return
- Remove misleading "legacy" comments
- Simplify DPLL_PR_MULTI_ENUM_STR macro
- Convert json_output to global json variable
- Use appropriate mnl helpers with proper type casting for signed integers
- Use DPLL_PR_INT_FMT for phase-adjust-gran to respect signed integer type
- Remove dpll_link from Makefile (mistake in v2)

Changes in v2:
- Added testing notes
- Added MAINTAINERS entry
- Removed unused -n parameter from man page

Petr Oros (3):
  lib: Move mnlg to lib for shared use
  lib: Add str_to_bool helper function
  dpll: Add dpll command

 MAINTAINERS                 |    5 +
 Makefile                    |    3 +-
 bash-completion/dpll        |  316 ++++++
 devlink/Makefile            |    2 +-
 devlink/devlink.c           |   22 +-
 dpll/.gitignore             |    1 +
 dpll/Makefile               |   38 +
 dpll/dpll.c                 | 1933 +++++++++++++++++++++++++++++++++++
 {devlink => include}/mnlg.h |    0
 include/utils.h             |    1 +
 lib/Makefile                |    2 +-
 {devlink => lib}/mnlg.c     |    0
 lib/utils.c                 |   17 +
 man/man8/dpll.8             |  428 ++++++++
 14 files changed, 2746 insertions(+), 22 deletions(-)
 create mode 100644 bash-completion/dpll
 create mode 100644 dpll/.gitignore
 create mode 100644 dpll/Makefile
 create mode 100644 dpll/dpll.c
 rename {devlink => include}/mnlg.h (100%)
 rename {devlink => lib}/mnlg.c (100%)
 create mode 100644 man/man8/dpll.8

-- 
2.51.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ