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 3104F46F30 for ; Thu, 18 Sep 2025 17:08:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 08BE14027A; Thu, 18 Sep 2025 17:08:38 +0200 (CEST) Received: from mail-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43]) by mails.dpdk.org (Postfix) with ESMTP id 6CAF04027A for ; Thu, 18 Sep 2025 17:08:37 +0200 (CEST) Received: by mail-qv1-f43.google.com with SMTP id 6a1803df08f44-7946137e7a2so7927546d6.0 for ; Thu, 18 Sep 2025 08:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1758208116; x=1758812916; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Le040uKjjezzOMibKYrfgiOvcG7HWuMWyQT9KXoBwN4=; b=d3lvhU6lLAgkT3BJKwFiRAVV62HYBKUIPu0bWEh9RgpjnVBsUkiCMEixJi5PYAoeKf dwZyZ1+7quygfUZ7pyAARTmKhHocSjA1SSmFZ0i/ZdaWl9VLiL230/X3se5usH03hBrT YL6f4xiEgD5t2Z3ioTdKCV5yaKV5dcNNAMM5377A6eZXz4gAgz72pR9RzO+xHxTIR79+ nZhFrMZzepGJ7gMTzuNHEoRyplNHpE5ov39rMAzct30Kd0qFeK/Iq2MCrd9ZSPEp3yXd IaUV1x78gr/eGd1pRB6TULxCMacFaCQzEUyWV9TLCGQdZl/weqFQgt8QNoCvAoqebnzl kDbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758208116; x=1758812916; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Le040uKjjezzOMibKYrfgiOvcG7HWuMWyQT9KXoBwN4=; b=P82zkhat6l/uiySoLdQNnR1Ifkl5KUsGUfVkV9hwicfSLRCdFODRc54rQ94/r+n2Lm IerIpkjteNbEeH3qLj/QqO8yrp9R1Kgjj+POUfHuOwnc88NrOVZPUGqZnF0lMUoSlDXD XQ1hG4dsAmafm7T/lDFzm6ZrwMQdTRxlc7wkvEKb7OwnKlNN8mvh8LXjNxIDF0iOitBK DO+vw3bz1PS0ML8bltG9PdYntT57hAhJEoQ06xhD416wfXbev717i2DxrnAG3G7wauf8 1dORNKWdktlLRd2xPcASzRwIchHDfyG2miuwkgvKqRrUywznsDz9GR/ZW6Q90uqTQT54 eGhw== X-Forwarded-Encrypted: i=1; AJvYcCWnl58ieWHred0Rt5INamKVzADaBl7g37rzIcPAEeDxEIaC/YeeoMtBhX4kWTsQm3IZ1evZXRY=@dpdk.org X-Gm-Message-State: AOJu0Yx0b6viTWp022iHEmC22iMG8ffSryuEeSNUYVNhmFAaPLZLtpGu j568StZEXCHr+fx8D8G9fZbyOrYMFeVxzwBITMY9S+V2Hn/vrQg304dxdDfL9oYvAWU= X-Gm-Gg: ASbGncu5AO1lEHspelpJoDiY9bZfqP9ff2rLhmV+sieCWg3pMgckTO8kuLPRh5wvTic Vg5nRAWwJv3dJhcEH+sMSGGAwcP6pfZ1JNHWkXqh4N3vM6FDtFQo4QONSx3IAHWkm4BKwwm607Q EhFd+VHDid12q9NMCEiI0clqlovGhDSlBodF3Se2TJm3tH7oPSsmauzePeLekTaLPIMVbhZUlC+ 9v9Ph9YvWcX/0oAwcEILL088js3RlnNSeuYoLkGf8tbLYTs1aCqJA+36FI6Yk7FMObqI0WU0dhe JnfbjDCeVeYXfCposFzZ74coXZ5poO8X9872zlPYjJ2szRe5NDHsQS5jiU+Ym7XrzLLWQeLjXLw QEprQvlI6sTX/JVfZllbkayqHqnN75iF0ERTwssiU25PQicuaspv/703mrsRzB2SdtXbfjVYrS8 WHfRRLt875gSiACy8wRQ== X-Google-Smtp-Source: AGHT+IHd2J6g541B5qyfIjlpKythsjlWwIyRfTLddvktuVzIly5i6KEbrat/iF/43tKXfvsudPePVA== X-Received: by 2002:ad4:5992:0:b0:78e:d1a1:2323 with SMTP id 6a1803df08f44-78ed1b06601mr44559626d6.11.1758208116338; Thu, 18 Sep 2025 08:08:36 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-79355ce6648sm14013176d6.65.2025.09.18.08.08.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Sep 2025 08:08:36 -0700 (PDT) Date: Thu, 18 Sep 2025 08:08:31 -0700 From: Stephen Hemminger To: Khadem Ullah <14pwcse1224@uetpeshawar.edu.pk> Cc: Aman Singh , Anatoly Burakov , Ferruh Yigit , Lijun Ou , Ajit Khaparde , Andrew Rybchenko , dev@dpdk.org, stable@dpdk.org Subject: Re: [PATCH v5] app/testpmd: stop secondary process fwd_lcores during primary teardown Message-ID: <20250918080831.1057b4a4@hermes.local> In-Reply-To: <20250918064703.528973-1-14pwcse1224@uetpeshawar.edu.pk> References: <20250917113601.521308-1-14pwcse1224@uetpeshawar.edu.pk> <20250918064703.528973-1-14pwcse1224@uetpeshawar.edu.pk> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Wed, 17 Sep 2025 23:47:03 -0700 Khadem Ullah <14pwcse1224@uetpeshawar.edu.pk> wrote: > @@ -3628,6 +3709,7 @@ pmd_test_exit(void) > } > } > #endif > + > if (ports != NULL) { > no_link_check = 1; > RTE_ETH_FOREACH_DEV(pt_id) { I will drop that extra newline... Sorry > + > +static int > +handle_testpmd_request(const struct rte_mp_msg *request, const void *peer) > +{ > + const struct testpmd_mp_req *req = (const struct testpmd_mp_req *)request->param; > + > + if (req->t == TESTPMD_REQ_TYPE_EXIT) { > + printf("\nReceived notification of primary exiting\n"); > + fflush(stdout); > + > + /* Response is sent after forwarding loop exits */ > + rte_atomic_store_explicit(&primary_name, peer, rte_memory_order_relaxed); > + > + kill(getpid(), SIGINT); Needed to use kill() here to force end of read when testpmd is in interactive mode. Only other option would be closing stdin, but that seemed less safe.