Skip to content

dpll: add client-side filtering

Petr Oros netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dpll: fix pin id-get type filter parsingdpll/dpll.c+1 -10 replies
2/4dpll: add client-side filtering for device showbash-completion/dpll dpll/dpll.c man/man8/dpll.8+243 -80 replies
3/4dpll: add client-side filtering for pin showbash-completion/dpll dpll/dpll.c man/man8/dpll.8+169 -100 replies
4/4dpll: add pin filtering by parent-device and parent-pinbash-completion/dpll dpll/dpll.c man/man8/dpll.8+85 -250 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH iproute2-next 0/4] dpll: add client-side filtering

This series fixes a parsing bug in dpll pin id-get and adds client-side filtering support for dpll device show and pin show commands.

Patch 1 fixes a bug where "dpll pin id-get type gnss" would read the keyword "type" as the enum value instead of the actual type.

Patches 2-3 add client-side filtering for device show and pin show. Users can filter output by various attributes (module-name, clock-id, type, etc.) with AND semantics. Kernel-side dump filtering for dpll is not yet available, so all filtering is done in userspace.

Patch 4 replaces the non-functional server-side "device" filter in pin show (kernel ignores DPLL_A_ID in pin dump requests) with client-side parent-device and parent-pin filtering that checks nested multi-attrs. The argument is renamed from "device" to "parent-device" to reflect the actual semantics.

Each patch includes corresponding man page and bash completion updates.

Petr Oros (4):
dpll: fix pin id-get type filter parsing
dpll: add client-side filtering for device show
dpll: add client-side filtering for pin show
dpll: add pin filtering by parent-device and parent-pin

 bash-completion/dpll |  55 +++++-
 dpll/dpll.c          | 387 ++++++++++++++++++++++++++++++++++++++++---
 man/man8/dpll.8      |  80 ++++++++-
 3 files changed, 488 insertions(+), 34 deletions(-)

--
2.52.0