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 7C6DE42607; Thu, 21 Sep 2023 16:08:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 676E1402D2; Thu, 21 Sep 2023 16:08:39 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 2ADFF402C9 for ; Thu, 21 Sep 2023 16:08:38 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38LBSDi2018600; Thu, 21 Sep 2023 07:08:37 -0700 Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2101.outbound.protection.outlook.com [104.47.58.101]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3t85ptughc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Sep 2023 07:08:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BlyWaZ/fMvBWJ5YaPMghu3BA8pMYKzTbbbuJj92oJZtHQzaHPeXsLl83UErqAonUMSEHoM6x8PUwSqs2egtGUb9Viw3+5lkg9zbJlvkTXT4qzObfPi3UhB7jAnkbmwVWCiy7yl6gWi3Z6xZpqreDPFQ9WnlP3rupUWM6QTfBeiRS6i/Jm0pf5GT1TItQBxpL5TNqShMspL1hYlpzgMAjTftQBQg1ldyyDxCWtXBInHpjd9Wqk5NSSOHWHYva0dXp3HyVneYD/xecB4g1WTzvx8uOeUc+lIar7tnbzD+1NDwukH+GmnZzGXoZtgt22sdAP9EWEMdcT4splmFs2Ui15A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=doyKr/j0EaUEVuYNA1ck+EVsZ73Py4M22ntawhfNMAA=; b=KE57gnFSXuTwbw/JYPeJZc0DQhieA7ooxPwl3r/pD34y67r0ysnzqdMewnUNYa1j7sAYVOl0muVjm5/RoCWXgT8uIWX0945/97MjXVPkRLwVtouq68Y//Z+boKh0Je2nJo/BAOaa5Mg069qy01nJ6es+WghoNmRjOXgL+BZ+An6FysAwa+MXGqougpwHSV0792YTQJxpE34EMQ4sD+KxiMvBxLXZBIuPvBGAMMerH4uw1+2KmiMx+2ifWqywv3QjU93xo9HweckQSmVAUoRYo5XvhD+uBWk8sZ7uIoq2Hhf7EDnWxXNYwmvD637cyJ9Ej4hippjs/qYhuHAuiWHafQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=doyKr/j0EaUEVuYNA1ck+EVsZ73Py4M22ntawhfNMAA=; b=vAnI2oH+Z1DwDlA1vPHkgyf2YNHBvYIx7wEN0yGphgOZEYNyYtKdIF4YlAaIWsyKzXGZeCX9uV+N4f6UyvORrMiab/LHS2mfAjkelLBK406cwKIMU+6oc3JM+20pFqlglXUWetw4AqtpE06kJeQkc40fl5C6f01C1y9faTPs9wI= Received: from CO6PR18MB3844.namprd18.prod.outlook.com (2603:10b6:5:340::7) by BN9PR18MB4154.namprd18.prod.outlook.com (2603:10b6:408:133::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.27; Thu, 21 Sep 2023 14:08:34 +0000 Received: from CO6PR18MB3844.namprd18.prod.outlook.com ([fe80::df3d:9ab:5da9:824b]) by CO6PR18MB3844.namprd18.prod.outlook.com ([fe80::df3d:9ab:5da9:824b%6]) with mapi id 15.20.6792.026; Thu, 21 Sep 2023 14:08:34 +0000 From: Rahul Bhansali To: Thomas Monjalon CC: "dev@dpdk.org" , Kirill Rybalchenko Subject: RE: [PATCH] examples/ptpclient: add signal handler for cleanup Thread-Topic: [PATCH] examples/ptpclient: add signal handler for cleanup Thread-Index: AQHYvQXOm4bs8qMoPEqh9VOKCstcXq4sPBjwgENFaECA7TwGgIAXb5DwgBpzL4CAmQ7XYA== Date: Thu, 21 Sep 2023 14:08:34 +0000 Message-ID: References: <20220831064925.2580881-1-rbhansali@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNccmJoYW5zYWxp?= =?us-ascii?Q?XGFwcGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02Yjg0?= =?us-ascii?Q?YmEyOWUzNWJcbXNnc1xtc2ctNTc5ZjRiYTUtNTg4OC0xMWVlLTllMjYtYjA0?= =?us-ascii?Q?ZjEzZGMyYzgyXGFtZS10ZXN0XDU3OWY0YmE3LTU4ODgtMTFlZS05ZTI2LWIw?= =?us-ascii?Q?NGYxM2RjMmM4MmJvZHkudHh0IiBzej0iNjM0MSIgdD0iMTMzMzk3Nzg5MTE0?= =?us-ascii?Q?MTE4NTYzIiBoPSI5Ylhhbll6TUp6MEhhM0kzMWE4bkhTNXRtSUE9IiBpZD0i?= =?us-ascii?Q?IiBibD0iMCIgYm89IjEiIGNpPSJjQUFBQUVSSFUxUlNSVUZOQ2dVQUFONFBB?= =?us-ascii?Q?QUNq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FBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFCQUFBQUFBQUFBQUlBQUFBQUFKNEFBQUJ0QUdFQWNn?= =?us-ascii?Q?QjJBR1VBYkFCc0FGOEFkd0J2QUhJQVpBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?RUFBQUFBQUFBQUFnQUFBQUFBIi8+PC9tZXRhPg=3D=3D?= x-dg-rorf: true x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR18MB3844:EE_|BN9PR18MB4154:EE_ x-ms-office365-filtering-correlation-id: 77ff818d-b607-41ae-c31d-08dbbaac3e59 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 26iIe8P6qzf+ddHuDaH3IC09ggJwWyBXj7YuZ5Gfyjvgrmn3Q0ckjVX5fEpk4Ylne0XgN1O3W57UEbn4fytw+/D6mRULJf4NrKqpWSzDzT+/+/5XtTWmpw+aanYkBUg9QS7yaq1mkj30+1PtG78xWQwLSJftn4ZpjU+gnDCE2cR5WS0CA0qevtyLttZP7lFSUio3+nFR1sF8aKmiq4F8Jv07ee/P9dClmYczq9XRSzFXli/U+RAPIeqhfWgzbdsWscy8KoA/f3GchXgkFsZCayWU0oL1Q4aH9OdiuUYG7q98GQ2GvhHNlh7IyWPDXivT6ZyoMEpdDtNiKq1SdXUMOZR+mJbbtaEldVBadER+fyv321wNMX0zYxnHo8rUCNhTj+tUncp4yUSPeXZANrSK2mLAQtoCyq/v2T2b+4qXNEVdNykYBiqCW6H7KGX0SNmnkPP7ONiVEmARmdWG8sQ9WLn9Z6PCqCaZF0Ybgekx1HOcTmxzbs7JzgpI+pK6gU8GN0g7VJ9yvpmQeTL8wh87nCm2osNGM6jZh2xtDH512nSRZsyL1vXxpQLuwkcZmK9mitn/EI31z4ZZ5N/vhFz5yaluWrZkcSkt7h7CxZTc9uw= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB3844.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(346002)(396003)(376002)(39860400002)(136003)(1800799009)(186009)(451199024)(53546011)(6506007)(7696005)(9686003)(55016003)(122000001)(38070700005)(66946007)(86362001)(38100700002)(76116006)(71200400001)(66556008)(478600001)(26005)(66476007)(5660300002)(66446008)(4326008)(52536014)(41300700001)(8936002)(64756008)(33656002)(316002)(6916009)(8676002)(54906003)(2906002)(83380400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?qwgptrvvbzA89ZmtOZ4Lmu82XEh1p19dVH0ICqHKjeaQeVVikMEKYphAUewj?= =?us-ascii?Q?te5kF2YM65f9p7zzESrgFlQ8H7vIuQWoF7aLRwDw/iGIrCn5zT1HnDLgexpY?= =?us-ascii?Q?blMAob114Ra1rFuGGM7RBp1SmQsaxLnTVvAcs5l9r+awxEaVvlmqfCohVmw1?= =?us-ascii?Q?S5S5sNuonVwqbJzKZU7TQ+0MGoW0SBV7yK/IZRVsDZAkOwcQn3cE5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PP83XLdu+Pm9CFAXI8NsQcXvK9dS?= =?us-ascii?Q?AgiGzGm19/awPBXYOP3JMWB9OVh9dApefrATGAkgqZEiIuVQS10ZXDP2HJdU?= =?us-ascii?Q?OQGEU9DNDhk/TEcRpZJh5kPD786qnATNVVqOvfRwF9vubYcCCrMgFJZJJ0wT?= =?us-ascii?Q?F+rOErFbX9sNJMmt/exQT6i0TW83n55Q9FKTy1str0y6MNcYytY6eHPguUnA?= =?us-ascii?Q?qtSCTj8begtBGVJ018+ihN8WnZt/NSQetvJSosFx2Vh0DKP4lNPlJ6ODU7AL?= =?us-ascii?Q?eDXdHMHMNtFF943CP+1C9OV7+Oo1/3HHFFzTTxUwN2ZohwUv5U8C7NDWWNIc?= =?us-ascii?Q?R6KqjMA4zXz30zK6/SC9xWAxIVf97Td9MqSQ5wWroofJh9/kiqbPlyCFwQHX?= =?us-ascii?Q?Aiw+/UDbUO6xZmVG4NESpxqU3oSAV4vhsQy5kvqKDH3Kwh0lAKoNGPpqpXjJ?= =?us-ascii?Q?c4gsuZ3dxii/SF8htQbWcWHhjDJesBZXV8aVyhZ8?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB3844.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 77ff818d-b607-41ae-c31d-08dbbaac3e59 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2023 14:08:34.5759 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: JDNdP2W//9a1Ue04M7hZaMg0n5BWiEoHYQR/LQ6/1ZYdPTZBCMrQmvarE+Bx8PiE85Aqo1d1dd33cpEAc0UBBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR18MB4154 X-Proofpoint-GUID: Su2ozKj-esh2KXJCB6PUHt4zdN3RM9ot X-Proofpoint-ORIG-GUID: Su2ozKj-esh2KXJCB6PUHt4zdN3RM9ot X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-21_12,2023-09-21_01,2023-05-22_02 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 Hi Thomas, Can you please check this and merge if no comments as this is waiting from = long time ? Regards, Rahul > -----Original Message----- > From: Rahul Bhansali > Sent: Friday, June 16, 2023 10:28 AM > To: 'Thomas Monjalon' > Cc: 'dev@dpdk.org' ; 'Kirill Rybalchenko' > > Subject: RE: [PATCH] examples/ptpclient: add signal handler for cleanup >=20 > Hi Thomas, >=20 > This is pending from long time and no comments so far. Can you please che= ck > and accept this ? > Let me know if you have any review comments. >=20 > Regard, > Rahul >=20 > > -----Original Message----- > > From: Rahul Bhansali > > Sent: Tuesday, May 30, 2023 2:30 PM > > To: 'Kirill Rybalchenko' ; 'Thomas Monjal= on' > > > > Cc: 'dev@dpdk.org' > > Subject: RE: [PATCH] examples/ptpclient: add signal handler for > > cleanup > > > > Hi Kirill, > > > > This patch is pending for review from long time. > > Please do let me know if any comments on this patch, else will request > > to merge it. > > > > Regards, > > Rahul > > > > > -----Original Message----- > > > From: Rahul Bhansali > > > Sent: Monday, May 15, 2023 4:29 PM > > > To: 'Kirill Rybalchenko' ; Thomas > > > Monjalon > > > Cc: 'dev@dpdk.org' > > > Subject: RE: [PATCH] examples/ptpclient: add signal handler for > > > cleanup > > > > > > Ping. > > > > > > > -----Original Message----- > > > > From: Rahul Bhansali > > > > Sent: Friday, January 20, 2023 11:26 AM > > > > To: 'dev@dpdk.org' ; 'Kirill Rybalchenko' > > > > > > > > Subject: RE: [PATCH] examples/ptpclient: add signal handler for > > > > cleanup > > > > > > > > Ping. > > > > > > > > > -----Original Message----- > > > > > From: Rahul Bhansali > > > > > Sent: Wednesday, November 2, 2022 10:21 PM > > > > > To: dev@dpdk.org; Kirill Rybalchenko > > > > > > > > > > Subject: RE: [PATCH] examples/ptpclient: add signal handler for > > > > > cleanup > > > > > > > > > > Ping. > > > > > > > > > > > -----Original Message----- > > > > > > From: Rahul Bhansali > > > > > > Sent: Wednesday, August 31, 2022 12:19 PM > > > > > > To: dev@dpdk.org; Kirill Rybalchenko > > > > > > > > > > > > Cc: Rahul Bhansali > > > > > > Subject: [PATCH] examples/ptpclient: add signal handler for > > > > > > cleanup > > > > > > > > > > > > This adds the signal handler for SIGINT, SIGTERM. > > > > > > Also, this will come out from infinite loop and do cleanup > > > > > > once it receives any of the registered signal. > > > > > > > > > > > > Signed-off-by: Rahul Bhansali > > > > > > --- > > > > > > examples/ptpclient/ptpclient.c | 32 > > > > > > ++++++++++++++++++++++++++++++-- > > > > > > 1 file changed, 30 insertions(+), 2 deletions(-) > > > > > > > > > > > > diff --git a/examples/ptpclient/ptpclient.c > > > > > > b/examples/ptpclient/ptpclient.c index 1f1c9c9c52..8b69716be1 > > > > > > 100644 > > > > > > --- a/examples/ptpclient/ptpclient.c > > > > > > +++ b/examples/ptpclient/ptpclient.c > > > > > > @@ -19,6 +19,9 @@ > > > > > > #include > > > > > > #include > > > > > > #include > > > > > > +#include > > > > > > + > > > > > > +static volatile bool force_quit; > > > > > > > > > > > > #define RX_RING_SIZE 1024 > > > > > > #define TX_RING_SIZE 1024 > > > > > > @@ -609,7 +612,7 @@ parse_ptp_frames(uint16_t portid, struct > > > > > > rte_mbuf > > > > > > *m) { > > > > > > * The lcore main. This is the main thread that does the > > > > > > work, reading from > > > > an > > > > > > * input port and writing to an output port. > > > > > > */ > > > > > > -static __rte_noreturn void > > > > > > +static void > > > > > > lcore_main(void) > > > > > > { > > > > > > uint16_t portid; > > > > > > @@ -621,7 +624,7 @@ lcore_main(void) > > > > > > > > > > > > /* Run until the application is quit or killed. */ > > > > > > > > > > > > - while (1) { > > > > > > + while (!force_quit) { > > > > > > /* Read packet from RX queues. 8< */ > > > > > > for (portid =3D 0; portid < ptp_enabled_port_nb; portid++) > { > > > > > > > > > > > > @@ -734,6 +737,13 @@ ptp_parse_args(int argc, char **argv) > > > > > > return 0; > > > > > > } > > > > > > > > > > > > +static void > > > > > > +signal_handler(int signum) > > > > > > +{ > > > > > > + if (signum =3D=3D SIGINT || signum =3D=3D SIGTERM) > > > > > > + force_quit =3D true; > > > > > > +} > > > > > > + > > > > > > /* > > > > > > * The main function, which does initialization and calls the = per-lcore > > > > > > * functions. > > > > > > @@ -758,6 +768,10 @@ main(int argc, char *argv[]) > > > > > > argc -=3D ret; > > > > > > argv +=3D ret; > > > > > > > > > > > > + force_quit =3D false; > > > > > > + signal(SIGINT, signal_handler); > > > > > > + signal(SIGTERM, signal_handler); > > > > > > + > > > > > > ret =3D ptp_parse_args(argc, argv); > > > > > > if (ret < 0) > > > > > > rte_exit(EXIT_FAILURE, "Error with PTP > initialization\n"); > > > > > > @@ > > > > > > - > > > > > > 802,6 +816,20 @@ main(int argc, char *argv[]) > > > > > > /* Call lcore_main on the main core only. */ > > > > > > lcore_main(); > > > > > > > > > > > > + RTE_ETH_FOREACH_DEV(portid) { > > > > > > + if ((ptp_enabled_port_mask & (1 << portid)) =3D=3D 0) > > > > > > + continue; > > > > > > + > > > > > > + /* Disable timesync timestamping for the Ethernet > > device */ > > > > > > + rte_eth_timesync_disable(portid); > > > > > > + > > > > > > + ret =3D rte_eth_dev_stop(portid); > > > > > > + if (ret !=3D 0) > > > > > > + printf("rte_eth_dev_stop: err=3D%d, port=3D%d\n", > > ret, > > > > > > portid); > > > > > > + > > > > > > + rte_eth_dev_close(portid); > > > > > > + } > > > > > > + > > > > > > /* clean up the EAL */ > > > > > > rte_eal_cleanup(); > > > > > > > > > > > > -- > > > > > > 2.25.1