[PATCH] app/testpmd: stop secondary process fwd_lcores during primary teardown

Stephen Hemminger stephen at networkplumber.org
Wed Sep 10 19:34:06 CEST 2025


On Wed, 10 Sep 2025 04:02:37 -0700
Khadem Ullah <14pwcse1224 at 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.


More information about the dev mailing list