[PATCH v2 5/8] pdump: handle pdump requests from primary
Stephen Hemminger
stephen at networkplumber.org
Thu Aug 14 18:53:01 CEST 2025
The primary process will start to notify all secondary processes
about pdump changes. The pdump secondary process can just call
rte_pdump_init() and it take care of that.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
app/pdump/main.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/app/pdump/main.c b/app/pdump/main.c
index 1741d7e709..626ba0ce93 100644
--- a/app/pdump/main.c
+++ b/app/pdump/main.c
@@ -552,6 +552,7 @@ cleanup_pdump_resources(void)
}
}
+ rte_pdump_uninit();
cleanup_rings();
}
@@ -822,6 +823,9 @@ enable_pdump(void)
struct pdump_tuples *pt;
int ret = 0, ret1 = 0;
+ if (rte_pdump_init() < 0)
+ rte_exit(EXIT_FAILURE, "pdump init failed\n");
+
for (i = 0; i < num_tuples; i++) {
pt = &pdump_t[i];
if (pt->dir == RTE_PDUMP_FLAG_RXTX) {
--
2.47.2
More information about the dev
mailing list