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 B4C2242BE1; Tue, 30 May 2023 11:00:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8277F40F18; Tue, 30 May 2023 11:00:30 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 80860406BC for ; Tue, 30 May 2023 11:00:28 +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 34U8uFnC006350; Tue, 30 May 2023 02:00:27 -0700 Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2048.outbound.protection.outlook.com [104.47.66.48]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3quhcm7mtx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 02:00:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MypHGrLx6pyPn905rYvg/JWQkT9vE1ccUtSGtdAhuD/MWPHAEaHMBT/FmLBXibMPAd/A2fGv9MlGow3DaGyIBw+asMZz/XLY5BYYwDgIETiCba8g91TgrsFsKEhZl6R5mwvkXRhp8+0lky77osFJu4ZaDFJet8YsFtLaPCDeWdbqGkaZUmyJw8Tvm6dDaOij5/ZMz8rmzE42ejFFfQdqI1eKFpXIIIPDrAloqWRyT7f97xgF/v8HtV+roF8oF91Q9xbAnH5qnP36GSn639VOBmDQbCISX5/S2j9P+/cVN9dwZnQph8wrDKCIabCSQSghJuvhH0qB590n3J9WM/X8Uw== 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=E6efcHDW/T1sAJqBgrWjHd2M+hyqHvTXHItQlLG1u/4=; b=NOmhJmjhLKLvsJl7AKQbTAO67Hc2I4TiVH6I5Z3Si01YLCnizWV4SvVGQcKd6sTCwEU5iBpEs+qkIjIDZuFLi6LdH3OQg1jQl6136Xl1y+c53bgpyaXenQqJax3Cyh2Lb6t4GuYCS2AFAocaFz5AVBrrVuECezDmhkegAFqbC43ZTzzKs8BSVTSaWX+4YoJyto4b5o2e67YgetpW7Tw+PNXiZd41PLxs/kQYTWH4BddJRoIZNla4yBJN2CDQ8SOHiGGejpWWRMftWOS7NAomS+NOvtUU0dueaFoYsrGrUt2/9pxArpDp++QbDQEKQy3lt7ZXcLHc445rl3y9imEX9g== 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=E6efcHDW/T1sAJqBgrWjHd2M+hyqHvTXHItQlLG1u/4=; b=kvT7zsZAi0hSbgevg2YTZro0KwR+1zCcxEkDooJ6CvnGjRKikkRn3AHsfFWNsMCW9B2WrSaih8QXTCXIfoS4tTf1tBdp5LjIm8bTj1XCxrj9lWd1uOmsMNkWh4PhVqh0Qnag6PUx2zl1bM4MsjiaqjHKD3MgF0EU0Z6VmzitHjY= Received: from PH0PR18MB3846.namprd18.prod.outlook.com (2603:10b6:510:49::21) by DM4PR18MB5073.namprd18.prod.outlook.com (2603:10b6:8:52::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.23; Tue, 30 May 2023 09:00:23 +0000 Received: from PH0PR18MB3846.namprd18.prod.outlook.com ([fe80::d4ec:4856:60b7:df6c]) by PH0PR18MB3846.namprd18.prod.outlook.com ([fe80::d4ec:4856:60b7:df6c%7]) with mapi id 15.20.6433.022; Tue, 30 May 2023 09:00:23 +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: AQHYvQXOm4bs8qMoPEqh9VOKCstcXq4sPBjwgENFaECA7TwGgIAXb5Dw Date: Tue, 30 May 2023 09:00:23 +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?YmEyOWUzNWJcbXNnc1xtc2ctNjUxMmQ1YTAtZmVjOC0xMWVkLTllMWYtOGM4?= =?us-ascii?Q?Y2FhMjAxMGUyXGFtZS10ZXN0XDY1MTJkNWEyLWZlYzgtMTFlZC05ZTFmLThj?= =?us-ascii?Q?OGNhYTIwMTBlMmJvZHkudHh0IiBzej0iNDc1MSIgdD0iMTMzMjk5MTA4MTcx?= =?us-ascii?Q?MjMyODYxIiBoPSI1Rk0wUHJiWnhicWZFQzlFNkg3YkQ0S21lNlk9IiBpZD0i?= =?us-ascii?Q?IiBibD0iMCIgYm89IjEiIGNpPSJjQUFBQUVSSFUxUlNSVUZOQ2dVQUFONFBB?= =?us-ascii?Q?QUJkTm13bjFaTFpBZnBCT25lWCtxTU8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UFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?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: PH0PR18MB3846:EE_|DM4PR18MB5073:EE_ x-ms-office365-filtering-correlation-id: d0cf7834-5edf-4aa1-09d1-08db60ec4d75 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FhlMT0NktFnmxjYLyoLjbgbocxQ/PtTuldFf0c+C0OmK+uwRf4bH4gw+dNmqMsmzQzlOZCLi4XE2s6saN8hILtsJFsS1/4+utSQi/I0LYSQV1MW/YsB/tOw2/fd+u1sSQftAcfZSQyrK/HvMF/+nYZH/GrMyPBM6u6WBaVrn1bv297WJrMa1vsbckIrlDdgn2ZQ88gyiBHuj7Z3Z3z242QbgFUmwUEzEtVpkpb8/vpU5WLjHU+TvsWzPqrtoTBKJjfo4HmDFF3dUqJwZTLtP9k9IVqeaUxtmyBFMTuj/vLHH3Ron6XWeY//0qYfE0UjbZjiezYpZVkEVB1ZhcGLp7hZ2PKNo2J+ojGO4JzCayGqP4jDN6uE1LlJ66NYeAz1LRSLjdz1v9XtreyRZb9m3IxvgviUV8Q21ZAW+EH/GyWlO4mWmeSLlBuQCF7AFZ9XawHyQUGByALAYDcnBd56pb4MvYomNZ2s5vhAwr7gxO16UIeb9Ki/ljWMxr7z4OVeHF2U4RS0hUlSW9Z9iT5qnjpDcUfEVoCAVwmPN16lQW2Znrqw/wjhjzIU0lulWpo3YkDnUNB7ew0KbyKFYq50M+sODQPNoIVg147+ADquhTvA= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB3846.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(136003)(366004)(39860400002)(376002)(396003)(346002)(451199021)(33656002)(86362001)(110136005)(478600001)(4326008)(316002)(64756008)(66476007)(66556008)(66946007)(66446008)(76116006)(83380400001)(7696005)(71200400001)(55016003)(5660300002)(8676002)(8936002)(2906002)(41300700001)(52536014)(122000001)(38100700002)(38070700005)(6506007)(186003)(53546011)(9686003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?sHjSJwdNikbhLY3gjgBJHc8Q0SV3dK8WbAeBnv2iRqsBW1QKRYiDexptkDHm?= =?us-ascii?Q?vlkT77+RjlWX424XlqIRfsSktHTFNDdQl/mOpWC9+Rvx9Q395sCMcTEFxQVC?= =?us-ascii?Q?Wsg5OGBlYJOP+uf2uRU0JvcmwGNlFxAujlfdlI8vjZk4f/Q86Npdp96ZrFh8?= =?us-ascii?Q?j9EFBzEKGUavcHu5BJRgaMe376qWQKbvgO1cA2ZJaTdG3+cWR9WYnBVARl7L?= =?us-ascii?Q?jaHqpiQU2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?= =?us-ascii?Q?NgGUFIH2863sKndUoO0cQjr+J1oJE+VxsSJ6iATa64h5HmJYQPU3sPcnCKrb?= =?us-ascii?Q?LvK7WZKrBE46+oHxn8bMLJbIySBGx3CZWBZ5laT2W8gl+swdwOvx94WaYKf+?= =?us-ascii?Q?6YS2xDV+X6qCuvd1Z1XsPfjPtakST91CbD1lUmEOihJ/WpOElJHEoErUDwrL?= =?us-ascii?Q?aJiGZCkpGMmVGLxG9Stm4a4x6UKdpNVKseBydJqXn+1pVtjkVKzej9t1UYEe?= =?us-ascii?Q?EfDbd5/NRxNVDx+2V3rRqK2IrYwyyWimFWuKoUS+84QiXvAtYtum3pDOTLou?= =?us-ascii?Q?H+I3KFA3s+IYt8B7jaIYUBHokSnKx1XpM7vrNELobrvPFBysJY+W++1elYzU?= =?us-ascii?Q?BfuM88mLAUhGKKFYsPy2Qzxdp93jtf7QR4PXktmeVzHum1g2omRlKnrK8PNi?= =?us-ascii?Q?1PxbJHPKq5I3YQUiNlkOIbLXBRgTMyWj4nqEIOt5KGv9U0MYPHTRCiafY5jU?= =?us-ascii?Q?vlKtIc+LP6R+HC0bK5yvAljelIuIiu543t/CZ/+lKncy?= 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: PH0PR18MB3846.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0cf7834-5edf-4aa1-09d1-08db60ec4d75 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 May 2023 09:00:23.0816 (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: mGTvU8LNtxYsAWKjx16DC5STAHzmYrxUB5EYPR/eAx6qRC2T0a5i8RF8PusCXmROlBUECn0y1n6he2fL53Tpzw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR18MB5073 X-Proofpoint-GUID: 4aI-EKZ9WksNGubPd6ghFRAuFOLKwR5J X-Proofpoint-ORIG-GUID: 4aI-EKZ9WksNGubPd6ghFRAuFOLKwR5J X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-30_06,2023-05-29_02,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 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 m= erge 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 >=20 > Ping. >=20 > > -----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