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 5E58EA0544; Mon, 10 Oct 2022 16:57:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4F8834021E; Mon, 10 Oct 2022 16:57:59 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2072.outbound.protection.outlook.com [40.107.21.72]) by mails.dpdk.org (Postfix) with ESMTP id 39C1040146 for ; Mon, 10 Oct 2022 16:57:58 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hEIWDEs8CIgGvn2iWFwYfJxLLeI27CUR3heFWtPwsjEJI4h3hCymR7Lgi2XyY1/hthODASRLqVO5sq8ZerJNZtlqxvQRXnaGYxpRd1ybO4SxcXRdCDoAM43UgeUQwEA0+a5mR8CL4zHtiwwPMVzoZTLGsYIyJZxczT/0fZ0m48R0V3vnSF1cpD99wzIwtTxfIpfIqF/ld18lRKX+B4sZxa00vn97WzS9ZorpxRF4rg+lyThKuKVk7Oj2o+wsqY722XC43kHxMmLFloMtY2dUkUHXc8TrjhUsvHXZZd/yMWU1cBPONkFP3SQurcDORBN5vZGnPhpbWPnG6o+fk9jl0Q== 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=NoTova+6MQf5TicG+DEvX35C1WJv5vJo2CkLZjD92zY=; b=Vyi3uUDLGvCAN52WmUXaz7IYdcJo+8Cu9DvAZG/WRGdBDZGvS2icfEjm6K75sBkSPw7uA6JQJMNnsVpoGoMWIRcpRhqFwPtxuYQyfeh0gbIuL19ktq/evWCP6penjWXRMr7QlXKc6Gukd7J+7WHcKEOy1gT/4EQU1IhhgGNix7pbw7VLzVuSqFAZfH1wAkjXxEV8dOkovf2Qr883jBfl26Chue4YhLr9Pq/hRAr6cHwMZdHvO/ztO9TuTZDTrHuOhIBUVYFfsjPQYBmJVqkQKMy9l/tMFlu/saJ0TDJiDrGGEqnW7SN9luIyPbZ5e9ViywWxcaQCNJ2hadsulvo10A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.176.1.74) smtp.rcpttodomain=dpdk.org smtp.mailfrom=ericsson.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ericsson.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NoTova+6MQf5TicG+DEvX35C1WJv5vJo2CkLZjD92zY=; b=AdmVXR5WYlAJGsVtE/np/dGdrT5hOMpKbQ1WPe1YAJvy6V07msXMjBkLojZMKUZLS4fzknt24TyvFsg5cOKAZgfrTjBnBPLLQ9HAuVCCCQrW8kYylS1jIdZGI0/Hf9AaELikkbXC9yhgLdIn+2fF8Ss36bf1fM6mogRhp5+y/Fw= Received: from AS9PR06CA0374.eurprd06.prod.outlook.com (2603:10a6:20b:460::29) by AM0PR07MB6306.eurprd07.prod.outlook.com (2603:10a6:20b:158::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.16; Mon, 10 Oct 2022 14:57:57 +0000 Received: from AM0EUR02FT060.eop-EUR02.prod.protection.outlook.com (2603:10a6:20b:460:cafe::c1) by AS9PR06CA0374.outlook.office365.com (2603:10a6:20b:460::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15 via Frontend Transport; Mon, 10 Oct 2022 14:57:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.176.1.74) smtp.mailfrom=ericsson.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ericsson.com; Received-SPF: Pass (protection.outlook.com: domain of ericsson.com designates 192.176.1.74 as permitted sender) receiver=protection.outlook.com; client-ip=192.176.1.74; helo=oa.msg.ericsson.com; pr=C Received: from oa.msg.ericsson.com (192.176.1.74) by AM0EUR02FT060.mail.protection.outlook.com (10.13.54.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.5709.10 via Frontend Transport; Mon, 10 Oct 2022 14:57:57 +0000 Received: from ESESSMB505.ericsson.se (153.88.183.166) by ESESSMR504.ericsson.se (153.88.183.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.31; Mon, 10 Oct 2022 16:57:56 +0200 Received: from seliicinfr00049.seli.gic.ericsson.se (153.88.183.153) by smtp.internal.ericsson.com (153.88.183.193) with Microsoft SMTP Server id 15.1.2375.31 via Frontend Transport; Mon, 10 Oct 2022 16:57:56 +0200 Received: from localhost.localdomain (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00049.seli.gic.ericsson.se (Postfix) with ESMTP id 77F8F380061; Mon, 10 Oct 2022 16:57:56 +0200 (CEST) From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= To: Jay Jayatheerthan , Erik Gabriel Carrillo , Abhinandan Gujjar , Jerin Jacob CC: , Harry van Haaren , , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Subject: [PATCH 0/4] Have event adapters report idle status Date: Mon, 10 Oct 2022 16:54:02 +0200 Message-ID: <20221010145406.118880-1-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0EUR02FT060:EE_|AM0PR07MB6306:EE_ X-MS-Office365-Filtering-Correlation-Id: dd02b045-22e1-4478-e7aa-08daaacfd12d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Tv8fe2os12+Hih9zLLm087yjs5TWRZwXHgiCARBE7NkPi7Qh9N4Z4Okb7x7EzpylwMAfLtesJmy/aFzl59fQmlFyb0nXX2MxdxPNshXbES7C4GSx06em2KZthIibLDGEketcXTfaRsdW9CoV1S2IHx7hBxZR/FFGQz1XMPCFdXJk69PDFV5nRDySRlF/Dorb6KZ0dPXvbwahRuzu140XCHYYZasLK0qSmY7WGr5zWvLf7k+eG6332NznuXMTChMqPTIeHg+sXewPgcUlbQ42fxgFVGU14eLCCQWqCcF98Nd2FbbfUVkqwOnbLHApmWjooOfmAeyBhpetRKGe8stGh06Zpn3wrYMODhu6xW20cFhGqmMfXkN0DyrBkWm1LWpyUs4mLxiZxYya9GX5sDYQnBHGtzXzCglVoyrH51upQrny2QJsNUXr+sn+sj0HVB7lW7mO27t4qnjtiZIDu1CeG2ps5Km4UdTx3bieIyXfbuTatjXM4naMVtQ/xp682R/VtoLA4WmyqQx0Vf4WL2SmBRflMRVE0xbSs0KhYl0be8koNothAb+5OSvkMElczk2GPRAtHaTwKT10yQOGW+ZqrbSGlERAgUdOkrUXrf9OaUQsy42rUKQHrVsKdvoukl7RJVnmbrddxvuI/E0lSpx6I4RAJD0/L213qnxATaS//Y4PsMdXVv5YvlXXJbgZWWNYvBumccCeem8cMJ9dHE0c1VgFNyJVHwRtOsJRufdjt9Ha1/jdph1tqu8gzVa8szlMVvOabJY8S8IKSRMv66wgsc39Bsv2Y8KNRzsX99gwxczUpE2Vy2+tl6sPr6QlA5hw X-Forefront-Antispam-Report: CIP:192.176.1.74; CTRY:SE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:oa.msg.ericsson.com; PTR:office365.se.ericsson.net; CAT:NONE; SFS:(13230022)(4636009)(396003)(136003)(376002)(346002)(39860400002)(451199015)(46966006)(36840700001)(40470700004)(316002)(83380400001)(7636003)(110136005)(186003)(1076003)(54906003)(82310400005)(2616005)(40460700003)(70206006)(107886003)(6666004)(41300700001)(70586007)(478600001)(8676002)(2906002)(4326008)(6266002)(5660300002)(8936002)(36860700001)(36756003)(86362001)(40480700001)(26005)(356005)(82740400003)(47076005)(82960400001)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2022 14:57:57.0120 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dd02b045-22e1-4478-e7aa-08daaacfd12d X-MS-Exchange-CrossTenant-Id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=92e84ceb-fbfd-47ab-be52-080c6b87953f; Ip=[192.176.1.74]; Helo=[oa.msg.ericsson.com] X-MS-Exchange-CrossTenant-AuthSource: AM0EUR02FT060.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR07MB6306 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 This series updates the event adapters' service functions to report back to the service cores framework, whether or not any useful work was performed. This in turn makes it possible to use the service core statistics to compute service lcore load (i.e., the fraction of time its EAL thread is doing something useful). This patchset does not affect scenarios where the event device has internal ports for relaying packets from the NIC into the scheduler (and vice versa), and thus no service core is required. Mattias Rönnblom (4): eventdev: have crypto adapter appropriately report idle eventdev: have ethernet Rx adapter appropriately report idle eventdev: have ethernet Tx adapter appropriately report idle eventdev: have timer adapter appropriately report idle lib/eventdev/rte_event_crypto_adapter.c | 12 ++++-- lib/eventdev/rte_event_eth_rx_adapter.c | 56 ++++++++++++++++++------- lib/eventdev/rte_event_eth_tx_adapter.c | 13 ++++-- lib/eventdev/rte_event_timer_adapter.c | 3 +- 4 files changed, 60 insertions(+), 24 deletions(-) -- 2.34.1