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 8A02242B12; Mon, 15 May 2023 12:59:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 105F140687; Mon, 15 May 2023 12:59:24 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 67CDF40395 for ; Mon, 15 May 2023 12:59:22 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34FAaZ3C009233; Mon, 15 May 2023 03:59:21 -0700 Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2171.outbound.protection.outlook.com [104.47.56.171]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3qkk4ur1u7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 May 2023 03:59:21 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dPps7JyrOFQrcGLy5g/aUsWGvh3h3v8CpzN26Q5HTtg1NShdN1k2FklxaiHOIRh/5t+YIZbLM7dJWKk7aEK41RlgKVMIi9Yjkl8FO4TVmKH9DuxAOBv4z0TzJZYn6ZTihTq4YJJZVwodABRa4iQ+Nny0fLyEwoSvTQVfuwudoM7N0759mE470fP7krfZpn/VujATr+DV1eekULDu3iFfEKAg2AXkktZLAFDpMNgzYRRE5y4ysMuGmuyFqat92Bl1ihL3tXSpS2VIFVrG+gVbFnkl9RcfUQeAb6raWoEW92IdumR7k6T+l5fPbsgwkz/Rdy9uKgl0lT9oNDxsdhFrjA== 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=EbKB5mwKsV7bWtjaYHpHLOmO4ClRnQxu/IffMelkrx8=; b=S1/8deBrymO17XkN+l1lLIC714ww8KFTe4sV4dv+xe392fIHH2GYZwBg8rtRyz2dcZT1CeYSgwY62PyOiOhXy5XVxt2pP9iy/e9CGtcsdD4VGoCAl78aAu8asQREnDIz/7DTdAGNuwTBQz2KRA30NtYhE4Gv3uku5AQv/KK0bhFcPdk/UTi3NFkPj5C2w1VqvEnCyUqjCSwSd45/EtrfAQdCXTTWB2CUwNA0SbNEwdUQ3AK6C7wh7hVcNX31BYuXYOE0QDUrBiofCO1HXUHgJLE8lcKnO4VhRdW+wyKkf/FQS9s0t1zWz/bIMe1yCjEt/MS6K8criooF79JetazKjw== 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=EbKB5mwKsV7bWtjaYHpHLOmO4ClRnQxu/IffMelkrx8=; b=Vep3CBK+R8SWA9+Fg/njJdMFoOIcpGyLJNqvetPdkHTrYxLH7ruw5S/gdF8y2sYCu3iynFl+Iuq3BlzNToY3caxxLH2KmKIZTeTgjcDUoSaLOCyPJojRGkEJy6Ha+Ywj6TG62ukbv4SEeOKYZ2wH1+fWVLjoXGMTqne2diPHnmg= Received: from CO6PR18MB3844.namprd18.prod.outlook.com (2603:10b6:5:340::7) by DM5PR1801MB1994.namprd18.prod.outlook.com (2603:10b6:4:67::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.32; Mon, 15 May 2023 10:59:18 +0000 Received: from CO6PR18MB3844.namprd18.prod.outlook.com ([fe80::98e4:cac9:95a6:ad04]) by CO6PR18MB3844.namprd18.prod.outlook.com ([fe80::98e4:cac9:95a6:ad04%6]) with mapi id 15.20.6387.030; Mon, 15 May 2023 10:59:18 +0000 From: Rahul Bhansali To: Kirill Rybalchenko , Thomas Monjalon CC: "dev@dpdk.org" Subject: RE: [PATCH] examples/ptpclient: add signal handler for cleanup Thread-Topic: [PATCH] examples/ptpclient: add signal handler for cleanup Thread-Index: AQHYvQXOm4bs8qMoPEqh9VOKCstcXq4sPBjwgENFaECA7TwGgA== Date: Mon, 15 May 2023 10:59:18 +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?YmEyOWUzNWJcbXNnc1xtc2ctODc3NThhMDctZjMwZi0xMWVkLTllMWYtOGM4?= =?us-ascii?Q?Y2FhMjAxMGUyXGFtZS10ZXN0XDg3NzU4YTA5LWYzMGYtMTFlZC05ZTFmLThj?= =?us-ascii?Q?OGNhYTIwMTBlMmJvZHkudHh0IiBzej0iMzk5MSIgdD0iMTMzMjg2MjE5NTUx?= =?us-ascii?Q?MjU5MjQ5IiBoPSI5UWM3cC8zdmVtZ1BLQjVBUzlsYkF6WUcxT1k9IiBpZD0i?= =?us-ascii?Q?IiBibD0iMCIgYm89IjEiIGNpPSJjQUFBQUVSSFUxUlNSVUZOQ2dVQUFNZ01B?= =?us-ascii?Q?QUJ4dXM1SkhJZlpBZXJpdkVzM2x2a2k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aUUJrQUY4QWJRQmhBSElBZGdCbEFHd0Fi?= =?us-ascii?Q?QUJmQUc4QWNnQmZBR0VBY2dCdEFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUJBQUFBQUFB?= =?us-ascii?Q?QUFBSUFBQUFBQUo0QUFBQnRBR0VBY2dCMkFHVUFiQUJzQUY4QWRBQmxBSElB?= =?us-ascii?Q?YlFCcEFHNEFkUUJ6QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFFQUFBQUFBQUFBQWdBQUFBQUFuZ0FB?= =?us-ascii?Q?QUcwQVlRQnlBSFlBWlFCc0FHd0FYd0IzQUc4QWNnQmtBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= x-dg-reffour: QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBUUFBQUFBQUFBQUNBQUFBQUFBPSIvPjwvbWV0YT4= x-dg-rorf: true x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR18MB3844:EE_|DM5PR1801MB1994:EE_ x-ms-office365-filtering-correlation-id: fc0643b7-6aab-4783-6072-08db55336e1f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FmfCW1l95z+ZdPuey+kiN6dEn5WMy2eIBcH99EOaVcxPzPGRWPGexe5SSgjNlWB8Zv7SJMGO553t+NvxGVeLpnR1DoiP87UQ0zQUcch9BdaVLKON/zSnXNwl9f2NfxT+WDTitnmIrnOqwEZXywSCW8EYiAeOWujDsUdmCI4C9AxGLAzXCSvvWlvZtJz7KUU3WAQEK/M9wruzlgG/Xlq1nbMfkx/sPZTG9JxJheFfomP4h1xAVw/fbsj9KrDstGLL1wQUVGyNU2Bul6jjRtRRaBqf8vKSAGYsQK+tFvA0WN1SymAFev49S3zae3QYVh8cjs9RSbJwSPBIX2obJ3KEqjvCMOYjybqtdgweyXCiUlaq1CbsZwBXcIlVt5bH94MIbxQ55izgnyvu74F+7W4cjhOY8HySChVbcW/PtPFY6myXZeonT5HoJAFKxqYtW3dq1857P8mCvngHIu5yQTUWzttMTTUJl+tOH1WSLI6R4JscgdkcCsuqACseZCKmmA1WZskw9RpektWRVG155IF1rjHAwB4/k8+mYr+pmhzZAvjoIXs86I1awssnO7/I/L0REOI5ooZmnmNquYewn1F35et3g0MOBHbDU7M4fRs7zAw= 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:(13230028)(4636009)(366004)(39860400002)(346002)(396003)(376002)(136003)(451199021)(5660300002)(52536014)(8936002)(8676002)(110136005)(7696005)(71200400001)(41300700001)(316002)(9686003)(6506007)(2906002)(53546011)(66446008)(4326008)(66556008)(64756008)(76116006)(66946007)(66476007)(478600001)(83380400001)(186003)(122000001)(55016003)(38070700005)(38100700002)(33656002)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1X6YyqHDAc2e7oZt0xLM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=?us-ascii?Q?3QHgfQEflBrrn3dKHp0YExbvD0K5pIxv6yTahk41ihmHdECRGN+19FU0Pypm?= =?us-ascii?Q?TIb0BLM9BsQVRk8RSRmkIQpE6Ds5JBgQJEbplfnNMQ6IeN6nAENzfXAfSMYJ?= =?us-ascii?Q?uPYmpj+JyV2OMkvmntFIWumkaOlViIUKNL5V+baPEUQiSU541xaHUIwDRIOg?= =?us-ascii?Q?Du9WidHrMqy8cIRCEPozc7b7rM07qGJPjXVGTUyabzx3mmxpLerzTgwv/hJ/?= =?us-ascii?Q?ihapdSlq8bDiknov3StQFjP8GX/rGYOhIQMeClX0BdHqJk/Ttg1ydfSF6efE?= =?us-ascii?Q?SVvpOm3JM2khbDtHZ7888CrSQMhbdNKUK4cFD3EajCy7FMw4yPIs+g+QVE1z?= =?us-ascii?Q?cCw/+/6edmtgLQ5CFHPRGao9IoB5gznM+v66Vl214k8kX48FE5kQ/klQXkxE?= =?us-ascii?Q?X6TNe4UOuf+GF62VCdOIUwWOR6H2UVbkDGLQ8UyDuGbA0jdsd5YXUcltjpQV?= =?us-ascii?Q?Vlf3LHDO+/79LY2Mg/QL1m1iiMjKm7yU2NKQNL18cpCAwwgnUVSirKsWcM/f?= =?us-ascii?Q?4oEIg64It7tQFUrXqMshxXevCGRjF5bFRJnxj7myFca8sAwOJ6hQa4XJeGO/?= =?us-ascii?Q?19ZQde8Kt03+EojOxTQ3+PBNsnrVEyoE2GY0MrDCKnMVkVVQtyemC1qPym47?= =?us-ascii?Q?0G8u0CdAe+2qJd82svwtMifo0/85AUCtHq/BPmNRrnkPkwf9HRhVzEGekBv/?= =?us-ascii?Q?eQq7iWKgMEX2q4v6m4BEqEsTX6fe+K1CEllMZzGfyRgO?= 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: fc0643b7-6aab-4783-6072-08db55336e1f X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2023 10:59:18.2290 (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: zxHP51SQCiVw4gwznENuINw4WhIk1JRdO5ASoZBadtAWl8IUno31IfoP4BuVYr6HJFmS1Ur6Uq/lMTJLNtnM0g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1801MB1994 X-Proofpoint-ORIG-GUID: UpUPiBlPiBy7sn1L79BtGWe9PZZyk0Xg X-Proofpoint-GUID: UpUPiBlPiBy7sn1L79BtGWe9PZZyk0Xg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-15_08,2023-05-05_01,2023-02-09_01 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 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 >=20 > Ping. >=20 > > -----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, readi= ng 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-lc= ore > > > * 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