[PATCH v6] app/testpmd: monitor state of primary process when using secondary
Stephen Hemminger
stephen at networkplumber.org
Sat Aug 2 00:50:57 CEST 2025
On Wed, 30 Jul 2025 02:08:18 -0400
Khadem Ullah <14pwcse1224 at uetpeshawar.edu.pk> wrote:
> In secondary processes, accessing device after primary has exited
> will cause crash.
>
> This patch adds a mechanism in testpmd to monitor the primary process
> from the secondary process.
> When primary process exits it forces secondary to exit avoiding
> issues from cleanup logic.
>
> Fixes: a550baf24af9 ('app/testpmd: support multi-process')
> Cc: stable at dpdk.org
>
> Signed-off-by: Khadem Ullah <14pwcse1224 at uetpeshawar.edu.pk>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
The problem with this patch, is the build now fails on Windows
where there is no primary/secondary process support.
Either add stubs for Windows or #ifdef the code in test-pmd
as necessary.
More information about the dev
mailing list