patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Khadem Ullah <14pwcse1224@uetpeshawar.edu.pk>
Cc: Aman Singh <aman.deep.singh@intel.com>,
	Anatoly Burakov <anatoly.burakov@intel.com>,
	Ferruh Yigit <ferruh.yigit@amd.com>,
	Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,
	Ajit Khaparde <ajit.khaparde@broadcom.com>,
	Xiaoyun Li <xiaoyun.li@intel.com>,
	dev@dpdk.org, stable@dpdk.org
Subject: Re: [PATCH] app/testpmd: stop secondary process fwd_lcores during primary teardown
Date: Wed, 10 Sep 2025 10:34:06 -0700	[thread overview]
Message-ID: <20250910103406.3be5eac1@hermes.local> (raw)
In-Reply-To: <20250910110237.460825-1-14pwcse1224@uetpeshawar.edu.pk>

On Wed, 10 Sep 2025 04:02:37 -0700
Khadem Ullah <14pwcse1224@uetpeshawar.edu.pk> wrote:

> +#ifndef RTE_EXEC_ENV_WINDOWS
> +			printf("Stopping secondary process ...\n");
> +			void *msg = NULL;
> +			if (rte_mempool_get(message_pool, &msg) < 0)
> +				rte_panic("Failed to get message buffer\n");
> +			strlcpy((char *)msg, "stop", STR_TOKEN_SIZE);
> +			if (rte_ring_enqueue(send_ring, msg) < 0) {
> +				printf("Failed to send message - message discarded\n");
> +				rte_mempool_put(message_pool, msg);
> +			}
> +#endif

Windows doesn't support secondary processes, not sure how you tested this.
When Windows supports secondary processes it should the existing EAL API's,
not fixing every service.

  reply	other threads:[~2025-09-10 17:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-10 11:02 Khadem Ullah
2025-09-10 17:34 ` Stephen Hemminger [this message]
2025-09-10 18:16   ` 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=20250910103406.3be5eac1@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=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=stable@dpdk.org \
    --cc=xiaoyun.li@intel.com \
    /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).