This series extends five ovs-appctl commands with structured JSON output
via the --format json option: fdb/stats-show, upcall/show,
dpif-netdev/pmd-sleep-show, dpif-netdev/pmd-perf-show, and dpctl/show.
Changes since v2:
- Patch 4: target dpif-netdev/pmd-perf-show instead of
dpif-netdev/pmd-stats-show, which was removed in favor of
pmd-perf-show. The JSON formatter lives in dpif-netdev-perf.c
beside the text formatter, and reports the aggregated "main" thread
in addition to the PMD threads.
- Patch 5 (dpctl/show): make "caches" an independent field (null when
unavailable), matching the "masks" and "cache" fields, so the schema
is consistent regardless of datapath capabilities.
- Patches 1-3 are unchanged since v2.
Timothy Redaelli (5):
ofproto-dpif: Add JSON output to fdb/stats-show.
ofproto-dpif-upcall: Add JSON output to upcall/show.
dpif-netdev: Add JSON output to pmd-sleep-show.
dpif-netdev: Add JSON output to pmd-perf-show.
dpctl: Add JSON output to dpctl/show.
NEWS | 3 +
lib/dpctl.c | 233 +++++++++++++++++++++++++++++++++-
lib/dpctl.h | 11 ++
lib/dpif-netdev-perf.c | 129 +++++++++++++++++++
lib/dpif-netdev-perf.h | 5 +
lib/dpif-netdev.c | 95 +++++++++++++-
ofproto/ofproto-dpif-upcall.c | 94 +++++++++++---
ofproto/ofproto-dpif.c | 87 ++++++++++---
tests/dpctl.at | 19 +++
tests/ofproto-dpif.at | 44 +++++++
tests/pmd.at | 97 ++++++++++++++
11 files changed, 776 insertions(+), 41 deletions(-)
--
2.54.0
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev