From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7580546CB1; Tue, 5 Aug 2025 02:50:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0BFA14028E; Tue, 5 Aug 2025 02:50:37 +0200 (CEST) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by mails.dpdk.org (Postfix) with ESMTP id B714840280; Tue, 5 Aug 2025 02:50:34 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.19.88.163]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4bwvsv2hSCz23jdj; Tue, 5 Aug 2025 08:48:03 +0800 (CST) Received: from kwepemk500009.china.huawei.com (unknown [7.202.194.94]) by mail.maildlp.com (Postfix) with ESMTPS id 6475A18001B; Tue, 5 Aug 2025 08:50:32 +0800 (CST) Received: from [10.67.121.161] (10.67.121.161) by kwepemk500009.china.huawei.com (7.202.194.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Tue, 5 Aug 2025 08:50:31 +0800 Message-ID: <1c605182-499f-4a98-b836-bbbdd9d2a7e1@huawei.com> Date: Tue, 5 Aug 2025 08:50:31 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7] app/testpmd: monitor state of primary process when using secondary To: Khadem Ullah <14pwcse1224@uetpeshawar.edu.pk>, , , , CC: , References: <20250729063919.3554143-3-14pwcse1224@uetpeshawar.edu.pk> <20250804113322.53650-1-14pwcse1224@uetpeshawar.edu.pk> Content-Language: en-US From: fengchengwen In-Reply-To: <20250804113322.53650-1-14pwcse1224@uetpeshawar.edu.pk> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.161] X-ClientProxiedBy: kwepems200001.china.huawei.com (7.221.188.67) To kwepemk500009.china.huawei.com (7.202.194.94) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Acked-by: Chengwen Feng On 8/4/2025 7:33 PM, Khadem Ullah 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@dpdk.org > > Signed-off-by: Khadem Ullah <14pwcse1224@uetpeshawar.edu.pk> > Signed-off-by: Stephen Hemminger