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 779BF426D3; Fri, 6 Oct 2023 17:27:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 11AD4402C8; Fri, 6 Oct 2023 17:27:33 +0200 (CEST) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2046.outbound.protection.outlook.com [40.107.105.46]) by mails.dpdk.org (Postfix) with ESMTP id CF69F402B9 for ; Fri, 6 Oct 2023 17:27:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NwYlohWP+ciSw/7IlEycuucKa/7l4rZveBHfNrRLxxc=; b=3AhryZXyCn8RAFE4Ism5/WbjrD4I6jVaYnN3M8SIF2vTYINeezFN0DKtbyvLV4yni2OjYvyEUBZbNkvAk8hcnU92Yd27HD0JazOoXeF9KNx91uTQ0Zi5o3UsL6k+zhD8JYIybMODAmAiddpffn00tmJMBUbQ5AtHg4n5mBeDnY8= Received: from AS9PR06CA0236.eurprd06.prod.outlook.com (2603:10a6:20b:45e::27) by PR3PR08MB5659.eurprd08.prod.outlook.com (2603:10a6:102:83::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.38; Fri, 6 Oct 2023 15:27:26 +0000 Received: from AM7EUR03FT061.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45e:cafe::5) by AS9PR06CA0236.outlook.office365.com (2603:10a6:20b:45e::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.30 via Frontend Transport; Fri, 6 Oct 2023 15:27:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT061.mail.protection.outlook.com (100.127.140.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.25 via Frontend Transport; Fri, 6 Oct 2023 15:27:26 +0000 Received: ("Tessian outbound ee9c7f88acf7:v211"); Fri, 06 Oct 2023 15:27:25 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 8d8106d96efbb8d6 X-CR-MTA-TID: 64aa7808 Received: from f3a5f599cf3a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5F265441-0D0F-4C44-B3DB-6896BA030649.1; Fri, 06 Oct 2023 15:27:19 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f3a5f599cf3a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 06 Oct 2023 15:27:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K192x3YH6asghQVYb8GljNEYPPdzaqTXz7o5qkP3+6lhkkm9W+ed99ssOdmt29QF5A4IA/xkJQp/ZAeQkZKfaiGj5+EmbDpAWIWI4oJMJJCf2ARCJqwDVjcJgDGVFduShW6l7SRz0cc0INdfD0cYtpDN7ztVISQQ3N/tBtZxV9pCteH8d9dn96sml+nvkKhPNjozSPaYR5OM63Rz3WhSnsAsbO5uKMR225oynOjRL5LP9ttnLEvj9gpvBWQy1aOMkwT7AIuJKhtiAXezZvAH9ht5RaVDdwR7kFLQlRN4ncozmFbfxd9eoKlalxTpc7Vmd1biaVXfjJZJlKrhTySQCw== 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=NwYlohWP+ciSw/7IlEycuucKa/7l4rZveBHfNrRLxxc=; b=SeiCCRCH6NAB1tUcwpulA7LnDdWyK/5DtLKAk5lRMVf7OIX6entexxcg3V5Dlbs9L+hyh02rbp36kW3Z4Buye9jGPLWjCD4HdxczafwL4kVZJ0t86BZ4UbpcrK1Myf3xU3I1sO+kd+vsYQLDkoyG+LF4c7lGuJpBiBTm9Uq2TznnFqeXj0cJNQuQqK1Fx/ShmwfWT3X0R872ZsbwkSNwkyQjOkDRSbPFqLj8mrLfDwP/3y4jgX01nkrpDPEXOfHU3EYVgB6t2VRDvA27/GDLYGgalLI4estHgvWAYcK8D2PHvaYXfwnwdp7IaaS3kxzT1fnmSfK6xJZVfRXV5Ngmkw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NwYlohWP+ciSw/7IlEycuucKa/7l4rZveBHfNrRLxxc=; b=3AhryZXyCn8RAFE4Ism5/WbjrD4I6jVaYnN3M8SIF2vTYINeezFN0DKtbyvLV4yni2OjYvyEUBZbNkvAk8hcnU92Yd27HD0JazOoXeF9KNx91uTQ0Zi5o3UsL6k+zhD8JYIybMODAmAiddpffn00tmJMBUbQ5AtHg4n5mBeDnY8= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by GVXPR08MB7679.eurprd08.prod.outlook.com (2603:10a6:150:6f::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.33; Fri, 6 Oct 2023 15:27:16 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::caf4:1831:be7e:e57d]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::caf4:1831:be7e:e57d%6]) with mapi id 15.20.6838.033; Fri, 6 Oct 2023 15:27:16 +0000 From: Honnappa Nagarahalli To: =?iso-8859-1?Q?Morten_Br=F8rup?= , Harman Kalra , Anatoly Burakov , David Hunt CC: "dev@dpdk.org" , nd , nd Subject: RE: How to rte_epoll_wait for IPC? Thread-Topic: How to rte_epoll_wait for IPC? Thread-Index: Adn4PGUtGWTIu5zhQqCKF/jptdJoNQALNZPg Date: Fri, 6 Oct 2023 15:27:16 +0000 Message-ID: References: <98CBD80474FA8B44BF855DF32C47DC35E9EF02@smartserver.smartshare.dk> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35E9EF02@smartserver.smartshare.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 69D4DF97D07964459615DFCC46114DBD.0 Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: DBAPR08MB5814:EE_|GVXPR08MB7679:EE_|AM7EUR03FT061:EE_|PR3PR08MB5659:EE_ X-MS-Office365-Filtering-Correlation-Id: db580686-7f13-429f-6036-08dbc680bece x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: JlkHZ6qz/ZHzYI8q36UyrCO0tH1blYepkkpfHNs5ljJizWkoK9zRttQ5jC0NA6rDw1Vu9q2F6sVIefvwDPvgZ50OJuscSwRuGV66GASst1JtLXRz8tm+O4SN9qTvth42hxPyOQi1bwi/0ibDCbBuY5hVaXn7Rf4YV4JuUg4J9jcNrsK2j8jG4ZMBz+qLBoZ/RxQhByPX7yBCcUud+VREoOCNtMvUeHXSnZ3NX1tds6D7GW0AZi15qXwo95v+XCimtorIIZaUyWM+okMgBThJ080a/tKcnXeRlzqF1/PdJDj6KlhN1dJCWpKIw86Z/nGjfUi8M5M4bbNCdRr/oToXESUCYiNgme+r6EMVii2zyu4O2xy+vbQ1iCGx8kgiFJ4ksIvcKQlqi4jD41X9JQotmaVKYzUK+d0KMx3VD5cUkUwY7BQdGVVTOd42VP2y879T3pd2t6/bJIuZosCYYl3Kb/ZsMNxQ2Cz1vSF3w2xss9kQfxbdgmgSKyjC8qXulBhSq4pBXKbIv1ugQmGIDB6m28Z1GIkCHJGc2Hi4S8QGGs6fI1FCri2Ggiy1qWV74Pq7ugSdv+iLJxFFYmy417BVpzSUiH1xzOuzhFyUmEPYT0WsuPysEkBFcj+bR1TXVUoS X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBAPR08MB5814.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(39860400002)(136003)(396003)(346002)(376002)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(55016003)(26005)(8676002)(86362001)(4326008)(83380400001)(5660300002)(53546011)(71200400001)(9686003)(122000001)(52536014)(6506007)(7696005)(8936002)(66556008)(33656002)(66446008)(38070700005)(38100700002)(2906002)(478600001)(110136005)(41300700001)(66476007)(66946007)(316002)(64756008)(54906003)(76116006); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR08MB7679 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT061.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ebca96a3-e5b5-41e3-8fd4-08dbc680b8df X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fvWIZB+6Ug4XLkSfNGS01kVbl4Tpxw0lPW1EaDgTRr1znIuMgHbsNmDR6PljpDhBPRSsvQQvk5rh2vrhySW34ibRXpxdcborJRPzy0nQ98YNilnbfSEID5UNDeLx0fi0Xjv6n8ap4dkzRzc7VB2uUF3W+7zN/OSr3+hwyTqV+fJ+lr5uYABT4j0kXz/kVHjKNMJ23BcOj2JrQKGMo++QXb3qrtcbd62YLd7jMslv3Vqz+FHz/pfQcMk4bcd2hN/gnCscjsIhUPBjG545CjGKzOlpJfKZh83L/TdsFxY03f6SKwxq6g7cqdBgWOJvBniUgZHFsi1EDWuBrTMcW/nGwm4EKVq94wswbuAzsibwsNKU6xvBB/3TRcKwYfjouyuE5u8smBivKcbkgB7sa70K7F1pAN7La7CfGltbpqijK2m2r61Qp5UToe9fr1+twPXfBlHfg0eJflVxrewtl2xCuHsLBQ+IlgJVSyW/eginglgHmCSWbeMsVbMI5oQs9pneixa8KNdQku/GnAHCfFeIxmmFFeLvjPDbXc67joWRxIYQBS9WSwH5eSMPAsh40RZxh/CSQB0/jNNEkG/GAcHvvAgNwpBy1+xB4oOFKO4++HKeNXsYawEwn+pGQmHN8PVCfYJTHHyksNuudar/2E+GBms5p0EHpgzGaNbVEAIVqvS1n7vrYrCIknpkmLz7b0pQfKK37fnaaaIqlssLoCmErcqTDx3K5KoI56b3iKYnf5s83nLd20sB3UgPwnv5Jhzn X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230031)(4636009)(396003)(376002)(346002)(39860400002)(136003)(230922051799003)(64100799003)(451199024)(1800799009)(82310400011)(186009)(36840700001)(40470700004)(46966006)(478600001)(26005)(4326008)(8936002)(8676002)(53546011)(7696005)(9686003)(356005)(81166007)(82740400003)(6506007)(336012)(5660300002)(52536014)(70586007)(54906003)(70206006)(316002)(41300700001)(110136005)(83380400001)(36860700001)(2906002)(47076005)(40460700003)(55016003)(40480700001)(33656002)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2023 15:27:26.1741 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: db580686-7f13-429f-6036-08dbc680bece X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT061.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5659 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 > -----Original Message----- > From: Morten Br=F8rup > Sent: Friday, October 6, 2023 5:04 AM > To: Harman Kalra ; Anatoly Burakov > ; David Hunt > Cc: dev@dpdk.org > Subject: How to rte_epoll_wait for IPC? >=20 > Dear Harman, Anatoly and David, >=20 > I have been looking somewhat into power management, and have a question > about rte_epoll: >=20 > Can I use rte_epoll to wait for an event (or interrupt/signal) in one EAL= thread, > generated by another EAL thread? >=20 > Here's a simple use case with two EAL threads: >=20 > 1. The "ingress" thread receives its packets from the NICs, filters the p= ackets > and puts them into a an rte_ring for the "processing" thread. The "ingres= s" > thread can sleep and use RX interrupts to wake up, as shown in the l3fwd- > power example. All good. >=20 > 2. The "processing" thread receives its packets from the rte_ring. This t= hread > should sleep until packets are ready for it in the rte_ring. >=20 > The "ingress" thread knows when it puts packets into the rte_ring, so it = can > signal that event to the "processing" thread, to wake it up; either as an > interrupt/signal, or through a file descriptor. Is this supported by rte_= epoll (or > other DPDK APIs), and how? This feature is supported by using rte_wait_until_equal_xx APIs in rte_ring= . >=20 >=20 > In a generic scenario, an EAL thread could be rte_epoll_wait'ing for a va= riety of > event sources. This may require a different, more advanced, solution. >=20 > A solution to the simple use case suffices. >=20 >=20 > PS: I'm using the standard acronym IPC in the subject, although I'm askin= g > about Inter Thread Communication, not Inter Process Communication. I'm no= t > looking for a multi process solution. >=20 >=20 > Med venlig hilsen / Kind regards, > -Morten Br=F8rup