patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Khadem Ullah <14pwcse1224@uetpeshawar.edu.pk>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: Aman Singh <aman.deep.singh@intel.com>,
	Anatoly Burakov <anatoly.burakov@intel.com>,
	 Ajit Khaparde <ajit.khaparde@broadcom.com>,
	Lijun Ou <oulijun@huawei.com>,
	 Ferruh Yigit <ferruh.yigit@amd.com>,
	Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,
	dev@dpdk.org,  dpdk stable <stable@dpdk.org>
Subject: Re: [PATCH v2] app/testpmd: stop secondary process fwd_lcores during primary teardown
Date: Fri, 12 Sep 2025 08:27:08 +0500	[thread overview]
Message-ID: <CA++2-x5zZJaa_FcX8dzg13Pvmh1gSosmg-xmzAQVL2d51Yrisw@mail.gmail.com> (raw)
In-Reply-To: <20250911165058.31fd0101@hermes.local>

[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]

Hi Stephen,

On Fri, Sep 12, 2025, 04:51 Stephen Hemminger <stephen@networkplumber.org>
wrote:

>
> Ok, the Windows #ifdef was confusing me then looked more closely.
> This patch is adding a set of rings so that primary and secondary
> can communicate, the adding one command.
>
> The idea is good, but there is a better way to handle this.
> There already exists a way for primary and secondary to communicate
> through the mp service. This is used for hotplug and pdump and probably
> other things as well.
>
Yeah, agree. Testpmd have also hutplug callbacks, I have tried that too,
but it is in lower layer to call any stopping fwd_engines.

>
> The communication can be either way, for example I proposed patches
> to pdump so that primary can tell secondary to participate.
>
>
> https://patchwork.dpdk.org/project/dpdk/patch/20250814165307.12786-7-stephen@networkplumber.org/
>
> This of testpmd can be done in similar way.
> The handler in secondary should be able to act same as
> when SIGINT is received. Set the flag f_exit which will cause the main
> loop to exit.
>
> This can then happen immediately, and the proc monitor alarm function
> is only then needed to handle when primary process crashes.
>
Yeah, we can try that, my only concern is that if it can handle and stop
any numbers of secondary processes fwd_engines as the current solution can
stop.

Best regards,
Khadem

>
>
>

[-- Attachment #2: Type: text/html, Size: 2414 bytes --]

  reply	other threads:[~2025-09-12  3:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-10 11:02 [PATCH] " Khadem Ullah
2025-09-10 17:34 ` Stephen Hemminger
2025-09-10 18:16   ` Khadem Ullah
2025-09-11 10:25 ` [PATCH v2] " Khadem Ullah
2025-09-11 17:53   ` Stephen Hemminger
2025-09-11 18:51     ` Khadem Ullah
2025-09-11 19:00     ` Khadem Ullah
2025-09-11 19:23     ` Khadem Ullah
2025-09-11 23:50   ` Stephen Hemminger
2025-09-12  3:27     ` Khadem Ullah [this message]
2025-09-12  5:59       ` Khadem Ullah

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=CA++2-x5zZJaa_FcX8dzg13Pvmh1gSosmg-xmzAQVL2d51Yrisw@mail.gmail.com \
    --to=14pwcse1224@uetpeshawar.edu.pk \
    --cc=ajit.khaparde@broadcom.com \
    --cc=aman.deep.singh@intel.com \
    --cc=anatoly.burakov@intel.com \
    --cc=andrew.rybchenko@oktetlabs.ru \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@amd.com \
    --cc=oulijun@huawei.com \
    --cc=stable@dpdk.org \
    --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).