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 AB15242CD4; Fri, 16 Jun 2023 06:58:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 36E9C4021E; Fri, 16 Jun 2023 06:58:21 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id D0EF14003C for ; Fri, 16 Jun 2023 06:58:19 +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 35G0rhCP009292; Thu, 15 Jun 2023 21:58:19 -0700 Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2042.outbound.protection.outlook.com [104.47.74.42]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3r7ky1wqta-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Jun 2023 21:58:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TflyxqPsmXaib1PN8k7fCfdIDuwEBARBGqX2oOnsnF5GBKtZhYE622tVKbnldvZjgb5IaeO6NLpTlQgTcHQcHlCVJtg0tlgsR+3B9zN1vTRQ37zw58rbEHJu7V+a92CDlbuomhKqgcCW4lQI32eP488XH9VHAmsPwu0gdVGsnw3BW0PpM7fTWz8HSbhMCQxUCcS5G2CwkCuI2qXGAwmTBWsKb4hnvPpoJwhkyK59pJ+7sCx/TPGLRevGbcbPh2t89QA0gWzIzxK5azVjNrMJzw18sqnywI5YTvQwarrTliigK0ehKIFnMHCr4UV2umcZEjAceaZUDAJ7WPveKIJ3kw== 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=7CLidg366x33aGws4RqyV4MeXEUQM2VAw0qJHLMIPTM=; b=fpDDXduMFiFNlN5x88xQQ4GHnT/kViDwuQk6xyPe6ixdwGMRr7ozVQ/we5VCS8sn4fIuCYtmbt93LnQXZgvKKwmtHYZpoC/NFuEOLdxKl+ioQmcxyG1EiHRjRNx+8NPTrmN6fAiOYibiDuuXVf+FRhC9VHIIlt81eKe2PNurKVyqI1ZO2QAgac2BPpKsckYFpxQzTXPAfvAhJFmSRGe/GCmxj3S7s0sGOLI4fbsabI9VgQ0ClK9yzrlGL5DOmrPgoD7Xu8D21q4qpCU2pLPs090f2/Suedjfv5fVGQmBrR8gOU5KnNiVHsZyXRU/UU/P9Bzwe3jU1XBMnh1g0x7b0Q== 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=7CLidg366x33aGws4RqyV4MeXEUQM2VAw0qJHLMIPTM=; b=i57ItFOW936Khk8dYgrZ1RdwLRJaEq9HGVh5j7BKNxwd7R0VT7fZ7V1vG571It1QHu0VMDasiwcPo8l5rD5iufxa2WM7Eik3PuJ8r/yi/aZCciWz/hW6E/Oh9C6VJKEaELx5SsPqvTRqJF80+DrAIkPkgc4kdEjqNUUCX+uPno8= Received: from CO6PR18MB3844.namprd18.prod.outlook.com (2603:10b6:5:340::7) by MW3PR18MB3529.namprd18.prod.outlook.com (2603:10b6:303:5c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.37; Fri, 16 Jun 2023 04:58:15 +0000 Received: from CO6PR18MB3844.namprd18.prod.outlook.com ([fe80::98e4:cac9:95a6:ad04]) by CO6PR18MB3844.namprd18.prod.outlook.com ([fe80::98e4:cac9:95a6:ad04%7]) with mapi id 15.20.6500.025; Fri, 16 Jun 2023 04:58:15 +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: AQHYvQXOm4bs8qMoPEqh9VOKCstcXq4sPBjwgENFaECA7TwGgIAXb5DwgBpzL4A= Date: Fri, 16 Jun 2023 04:58:14 +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?YmEyOWUzNWJcbXNnc1xtc2ctNjNlMDAwYTItMGMwMi0xMWVlLTllMjAtYjA3?= =?us-ascii?Q?ZDY0YWY4NmYwXGFtZS10ZXN0XDYzZTAwMGE0LTBjMDItMTFlZS05ZTIwLWIw?= =?us-ascii?Q?N2Q2NGFmODZmMGJvZHkudHh0IiBzej0iNTU1NCIgdD0iMTMzMzEzNjUwOTEw?= =?us-ascii?Q?MzQ2MjY3IiBoPSJtRHJzQit2WVlXMFdybjV2VDFYUnNUL3o5VE09IiBpZD0i?= =?us-ascii?Q?IiBibD0iMCIgYm89IjEiIGNpPSJjQUFBQUVSSFUxUlNSVUZOQ2dVQUFONFBB?= =?us-ascii?Q?QUFidk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0FBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?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_|MW3PR18MB3529:EE_ x-ms-office365-filtering-correlation-id: f68c65e3-166e-4637-8654-08db6e264b02 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uaTtUrcUbsvXCl5F+/aZok/V+uvh4KLE+mtgjLb1I9/8wrtFhoJ3byT6ZKxvTz1QkQ/evrUwmAMSAj5G8VdhMNfMU5He+jSXjXxvPuo9PyPsIuzqEqo6K6TqOd/LvHaoOhCn/Qi3sR/kvp6EWFK3NPHiqhCXCBcSxqe9QlFTbWKJwRRMWFcmvHV48gm06uMCo8e+2n4F6qJoABcDaapuEpMTdlFYCIC3R6wlnoG6XmiG7VaSeXGldxIqv0TuZND2moqQJ4vdLV/mCJXDIOSFoWXLWsg7QlgXPDcfMnhTg2djg8SqEkyEp8JgsyBqiad8BTefhfdeWNCU7TMFcAAXX7ikm2g1eHQEkNYKwR/pxMMhgxd040mWUUnPApZs+n8eDXfn9u7KwolvdWHXFR6T5ldSaIQ8M5KRYNr24Fs0P2NYitgdilw3mko900Bhcuwk9SVujuuY52k2uH/PGrZS4HbWbv+BlqWFwERjhTjA25OfE2zKpz1TCYKXWlsf1xk8UvWxqAyx5JLM86RsBD9t5zxMJXaIySKyLl9+kcfA2UczUsRGMpXsgaxVW6d+r4+Hzjj2/Jsrei+offOi+NWL6r0WaTtD6mAAM+wIFAE0xD3C3gVy/DaOz1cVZo/ruyY9My/tAhC9GFKQRYoy2tXnKhns+n5jEkgskn9031ETWYo= 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)(376002)(366004)(346002)(136003)(39860400002)(396003)(451199021)(186003)(71200400001)(6506007)(55016003)(478600001)(53546011)(9686003)(38070700005)(86362001)(7696005)(4326008)(6916009)(122000001)(66476007)(66556008)(66446008)(76116006)(66946007)(33656002)(64756008)(316002)(52536014)(2906002)(8676002)(8936002)(5660300002)(38100700002)(41300700001)(54906003)(83380400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?gceNlczAtPyjXjVF85DbmByfUvIxg4f33U4Q0Es1EKnKyjsbcOm6F7rdpydT?= =?us-ascii?Q?aWZ/GmKt7kelM8qp2n+KlBx1KOLpfeOstA+sqi7O3N77lSandltIbTM8Sflv?= =?us-ascii?Q?uIsjXArNAxL5oTiV8TU902SYMp508tSnzPRvNhp/65f0Q5SfofLSifTWWDns?= =?us-ascii?Q?GePlYxLtZ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Vl7ND3?= =?us-ascii?Q?/Jk5rNs8K8oGisYMMJY5+wCQC+Kwpx5KOvkEh0YARGFIeMG5euf915/EIxVz?= =?us-ascii?Q?3zozQoDmTEUkQC/BIHasc+/UXxTpyTYUq0Z/aSpiCjyB8SWkOJ00eSj3ZG9H?= =?us-ascii?Q?Kuf+JII0qQjmbVS9nhBKMaKLeH8+gF8a2yzPkPE9CPX/9B2jFBseo6y0KB3t?= =?us-ascii?Q?rlVSwxRGptkJUls6tUfurr2DUjh+e90wD/Ed47RLRtZZd/9KnMbuKL3aAcLo?= =?us-ascii?Q?fH4h3U4VwiWRksMpRCZjSWb6QELSaJ2gFrbyZW5i+pqTw4p0YxHhNcC1TzVj?= =?us-ascii?Q?sVvGeSUgVPiw8uxRrctUi6n/Qfb7ij6q1L6Y1Hf6mJ5J/2Bshqz4rlPhUhER?= =?us-ascii?Q?CTMFTOiqcUipAmU75DotiPPnf2upyGfI0XkLXTW2as1QrV8SFltyC3Y6Z0hV?= =?us-ascii?Q?D8a4y4CLglZBXRdWsEwdW9viRB3pY9XxO/VLjouxo5U2C7UieJgAa4SazrOR?= =?us-ascii?Q?FF29ExyA7ASDIN7TCsKlZaGOvENrSMX6t7Zzy09PydCY8vdlCYxXfkZc8hOK?= =?us-ascii?Q?zM2Q2gHfNw0eZlef8SHY8GsJgj+iYLkS1Z7I/0TKnANF?= 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: f68c65e3-166e-4637-8654-08db6e264b02 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2023 04:58:14.9048 (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: MMFVsqPYCNYfWreShijyN2OmY0PeIj7drXKTB5SShW9Q5xoRQZuj8JM3x5sEuzRDP7H9GFWoXoV7eh4jltF5Ew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR18MB3529 X-Proofpoint-GUID: 4qVvI891gq6yuhpwAR1MW0np-9Qp5mNk X-Proofpoint-ORIG-GUID: 4qVvI891gq6yuhpwAR1MW0np-9Qp5mNk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-16_02,2023-06-15_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, This is pending from long time and no comments so far. Can you please check= and accept this ? Let me know if you have any review comments. Regard, Rahul > -----Original Message----- > From: Rahul Bhansali > Sent: Tuesday, May 30, 2023 2:30 PM > To: 'Kirill Rybalchenko' ; 'Thomas Monjalon= ' > > Cc: 'dev@dpdk.org' > Subject: RE: [PATCH] examples/ptpclient: add signal handler for cleanup >=20 > Hi Kirill, >=20 > 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. >=20 > Regards, > Rahul >=20 > > -----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 pe= r-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