[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251118141031.236430-1-poros@redhat.com>
Date: Tue, 18 Nov 2025 15:10:28 +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 v5 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 v5:
- Fix checkpatch warnings
- Use structure initialization instead of memset
- Use sigemptyset() for proper signal mask initialization
- Remove redundant if (json) checks around JSON functions
- Use signalfd for signal handling in monitor
- Set netlink socket to non-blocking in monitor
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
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 | 1951 +++++++++++++++++++++++++++++++++++
{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, 2764 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