From: Bruce Richardson <bruce.richardson@intel.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: <dev@dpdk.org>, Reshma Pattan <reshma.pattan@intel.com>
Subject: Re: [PATCH v4 5/8] pdump: handle pdump requests from primary
Date: Thu, 23 Oct 2025 17:21:17 +0100 [thread overview]
Message-ID: <aPpV_WfCjBC_Hu53@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <20251023154748.38535-6-stephen@networkplumber.org>
On Thu, Oct 23, 2025 at 08:46:26AM -0700, Stephen Hemminger wrote:
> 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@networkplumber.org>
> ---
> app/pdump/main.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
It's weird that the pdump app doesn't call pdump_init, but grep of the
source shows indeed it doesn't!
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
> 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.51.0
>
next prev parent reply other threads:[~2025-10-23 16:21 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <250811213632.16023-1-stephen@networkplumber.org>
2025-10-19 16:56 ` [PATCH v3 0/8] packet capture bugfix and improvements Stephen Hemminger
2025-10-19 16:56 ` [PATCH v3 1/8] dumpcap: handle primary process exit Stephen Hemminger
2025-10-19 16:56 ` [PATCH v3 2/8] pdump: " Stephen Hemminger
2025-10-19 16:56 ` [PATCH v3 3/8] pdump: fix races in callbacks Stephen Hemminger
2025-10-19 16:56 ` [PATCH v3 4/8] dumpcap: handle pdump requests from primary Stephen Hemminger
2025-10-19 16:56 ` [PATCH v3 5/8] pdump: " Stephen Hemminger
2025-10-19 16:56 ` [PATCH v3 6/8] pdump: forward callback enable to secondary Stephen Hemminger
2025-10-19 16:56 ` [PATCH v3 7/8] pdump: remove use of VLA Stephen Hemminger
2025-10-19 16:56 ` [PATCH v3 8/8] doc: update documentation on pdump library Stephen Hemminger
2025-10-21 15:11 ` Stephen Hemminger
2025-10-22 17:29 ` [PATCH v3 0/8] packet capture bugfix and improvements Patrick Robb
2025-10-23 15:46 ` [PATCH v4 0/8] packet capture bugfix and secondary support Stephen Hemminger
2025-10-23 15:46 ` [PATCH v4 1/8] dumpcap: handle primary process exit Stephen Hemminger
2025-10-23 16:13 ` Bruce Richardson
2025-10-23 15:46 ` [PATCH v4 2/8] pdump: " Stephen Hemminger
2025-10-23 16:14 ` Bruce Richardson
2025-10-23 15:46 ` [PATCH v4 3/8] pdump: fix races in callbacks Stephen Hemminger
2025-10-23 15:46 ` [PATCH v4 4/8] dumpcap: handle pdump requests from primary Stephen Hemminger
2025-10-23 16:18 ` Bruce Richardson
2025-10-23 15:46 ` [PATCH v4 5/8] pdump: " Stephen Hemminger
2025-10-23 16:21 ` Bruce Richardson [this message]
2025-10-23 15:46 ` [PATCH v4 6/8] pdump: forward callback enable to secondary Stephen Hemminger
2025-10-23 15:46 ` [PATCH v4 7/8] pdump: remove use of VLA Stephen Hemminger
2025-10-23 15:46 ` [PATCH v4 8/8] doc: update documentation on pdump library Stephen Hemminger
2025-10-23 16:22 ` [PATCH v4 0/8] packet capture bugfix and secondary support Bruce Richardson
2025-10-23 16:39 ` Khadem Ullah
2025-10-24 21:53 ` [PATCH v5 0/8] packet capture bugfixes and secondary process Stephen Hemminger
2025-10-24 21:53 ` [PATCH v5 1/8] dumpcap: handle primary process exit Stephen Hemminger
2025-10-24 21:53 ` [PATCH v5 2/8] pdump: " Stephen Hemminger
2025-10-24 21:53 ` [PATCH v5 3/8] pdump: fix races in callbacks Stephen Hemminger
2025-10-24 21:53 ` [PATCH v5 4/8] dumpcap: handle pdump requests from primary Stephen Hemminger
2025-10-24 21:54 ` [PATCH v5 5/8] pdump: " Stephen Hemminger
2025-10-24 21:54 ` [PATCH v5 6/8] pdump: forward callback enable to secondary Stephen Hemminger
2025-10-24 21:54 ` [PATCH v5 7/8] pdump: remove use of VLA Stephen Hemminger
2025-10-24 21:54 ` [PATCH v5 8/8] doc: update documentation on pdump library Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aPpV_WfCjBC_Hu53@bricha3-mobl1.ger.corp.intel.com \
--to=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=reshma.pattan@intel.com \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).