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 E829C45B42; Tue, 15 Oct 2024 10:59:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 83CBD40A80; Tue, 15 Oct 2024 10:59:07 +0200 (CEST) Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2073.outbound.protection.outlook.com [40.107.249.73]) by mails.dpdk.org (Postfix) with ESMTP id 17B73400D7 for ; Tue, 15 Oct 2024 10:58:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UJtGoKrnM23SwRGjWk71Mgk3x5uYuwGLqo/lzVUgUTUHtrLv/LcL+7EKs2sfduaj2jotpBpJ+iijVAmyxtoWFvEUQdvyxmR6WOD0STLmlGaA0NJhzk3irCawoqDNoaQma4YfLCXrM+YzW9SL7PrqYoR0R+7RszjRfrOSo2UR7HJNv4yqtk9CZWNxuRiRqGnePeGwow3IMOTr/aeFqKu8Z+8/mY2JEO/w+1ViKPrH1YYdxIdHGQtXmwTz3NTnBUzCBwOeQI1vF7fLWLmKHrul2O78SXUv0QtrMzAi30k0ILIF9Z9C9DrrnZLgeJcIcLnwN1vhipYxZjz3TT36Ayvr0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=fIiwI8kAK7zHKvwj0znaojPKVa7AiPAACNrCeGskKsw=; b=RnhV191uWrbYMj7+VQYkdwAdG/Oi/aM9Yw7BbgVR3M6iNQUNAy/cE1KEbpEwr0wKJNk8CAWnCXV+JcP5lFq7Q7x/lzuiLx60kRK4BLNEji8D55MUfyglWFjt3ZBffYxkNbbek/luxGDXjtzDWoXUCRndj8bTWTKDFzza3f+pcbkqFps1CdDtSgiFp/T344ONBvUR58/JeZRIawYlY9gFFOHbiFSjkWw8K0JnaufqYvAOzlnnSsa+IBMLYIuHU/+PgzmGpYrQitm765eDxkxyIufqDlWttvAnqq5Z2v//7CgT0+GETJxYWc58s6+z27yyc99upLQj/qhO+5Y20KdV0g== 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 (0) 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=fIiwI8kAK7zHKvwj0znaojPKVa7AiPAACNrCeGskKsw=; b=fhx2ykIBA09sNwWWWiATlP6Zhyo8SnYEBUKZv7cl+Spy85xS2kxgBrNcLJmOvonUWhI0ICGsarHg4i5THWQDjOQI4Hyp1aXNcnbDWoaoBzt/qobWe/NW9d7S/6fc1GmGOB5aMcgNU2ExqtboxSEjxH5kgCxGfJ/NncfUBWi82JbpfGkWdyrkmmsltza0OhzXXRv3+xjsJtsTEGYrHAmGuGugJ4eKEecOoCkBeV9gwRxPsu8E9XYRvLmLTkJp9svSKdkrYbcx74JDe04ypbSVm1Y4uXl+iu4VXSuQpbK/xYONDiMoAQtwvA54GrkZX6hAYvh0l967pCNAJ2ky2ahtHQ== Received: from DUZPR01CA0291.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b7::9) by AS1PR07MB8760.eurprd07.prod.outlook.com (2603:10a6:20b:47c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 08:58:50 +0000 Received: from DB5PEPF00014B8B.eurprd02.prod.outlook.com (2603:10a6:10:4b7:cafe::10) by DUZPR01CA0291.outlook.office365.com (2603:10a6:10:4b7::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27 via Frontend Transport; Tue, 15 Oct 2024 08:58:50 +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 DB5PEPF00014B8B.mail.protection.outlook.com (10.167.8.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17 via Frontend Transport; Tue, 15 Oct 2024 08:58:49 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.64) with Microsoft SMTP Server id 15.2.1544.11; Tue, 15 Oct 2024 10:58:48 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id B160F1C0070; Tue, 15 Oct 2024 10:58:48 +0200 (CEST) From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= To: Jerin Jacob CC: , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= , David Marchand , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Subject: [RFC 02/10] event/dlb2: remove single event enqueue and dequeue Date: Tue, 15 Oct 2024 10:49:35 +0200 Message-ID: <20241015084943.823983-3-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241015084943.823983-1-mattias.ronnblom@ericsson.com> References: <20241015084943.823983-1-mattias.ronnblom@ericsson.com> 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: DB5PEPF00014B8B:EE_|AS1PR07MB8760:EE_ X-MS-Office365-Filtering-Correlation-Id: 66bf5d98-f131-49d9-2c78-08dcecf795d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?B?MDVEa29BYlU0TDdTVURGRGhpMmk5djVrMjVjaGN0dEJpblZ6Q215TE1UTmM3?= =?utf-8?B?Z1BXYllYN3Q0TzZFVnhxMUhHUWI1UHo3TXpsVUtZb2l0UFg0ZTR6TnVBSGlz?= =?utf-8?B?M1pQRGdyTVE2U0dQT2RZdFlzeXZEVzhSK3p6a2RaUE9WbE5EYStic0JZSFNN?= =?utf-8?B?OXBLbkhoMWNVc2FUTkxYUndhQyszRXlhOTJoMGtaRjU2T29TREJaRm9IS1FN?= =?utf-8?B?OUI3OGFBZTlPaExHclg0anZHR0UxN3dXWnJJd29nSTVxaUtEOW5rTHpOSWdF?= =?utf-8?B?RlJLVldoNWxKK21zMTNjRCtaQVdUcWQ3QThRVFMxMSt6VGp3SVlZb2QrL3VY?= =?utf-8?B?alZTV1RlY0l1NnVGbCttb0V2cHFJRUVpZWpvMnRtUGV3Z3p4RXlSQmpzenc5?= =?utf-8?B?blFuRDc4VnRjdm0vZkJ3ZXU4a0h1ZWRncjhlTVJadVBabmxDaW15NlU4UzRa?= =?utf-8?B?T0IxZ29XbXpSQk1WMndOVGNzSC9ZUXArMGY0UVEzS1RaNm42YlJTY2p1UHkv?= =?utf-8?B?a2txQ2FOVlprL3FWblpoVk81NXN1SjZCWks2OUR1K0N4dlhGWThWTGwrTWpi?= =?utf-8?B?SGZNbml0STZVNUYzUXFHaXdOakNrQi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UvY0VRM2VMblB4b2YrOU9CVVREVFRlMzB0bEhrbVNU?= =?utf-8?B?YVhtaU10aVFlT2lGbFZkZmRmKzFkQ1BvYkpGcXN1T0FheE9hbGNOVXA2N2U1?= =?utf-8?B?SmllV3J1Y2tIcXdrWExMMk5pTWNnUW0xZVFqK003OXAzVWRoVnpIOUo4dTFS?= =?utf-8?B?bElIQmZDeTVLclMvOGZzVEwyV0N6STJRMnVURHdFaEt4T3B4TjJ3QnRycDE5?= =?utf-8?B?QUV2N0ZSV2ExeXBJblpHQ0o4WThIRWZHYUo4NEZmWEZKaWFzVEs4bHF4eEls?= =?utf-8?B?L2NTck9WOEdieTM2eC91SGszcXBRK05xUlJ1ZzhxMDF5ejF4WVlBV0tXazE0?= =?utf-8?Q?cAWeL4PmPcA5W?= 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:(13230040)(376014)(82310400026)(36860700013)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 08:58:49.3708 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 66bf5d98-f131-49d9-2c78-08dcecf795d3 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: DB5PEPF00014B8B.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR07MB8760 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 Signed-off-by: Mattias Rönnblom --- drivers/event/dlb2/dlb2.c | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index 09e4107824..e4400b1bc2 100644 --- a/drivers/event/dlb2/dlb2.c +++ b/drivers/event/dlb2/dlb2.c @@ -1483,10 +1483,6 @@ dlb2_init_qe_mem(struct dlb2_port *qm_port, char *mz_name) return ret; } -static inline uint16_t -dlb2_event_enqueue_delayed(void *event_port, - const struct rte_event events[]); - static inline uint16_t dlb2_event_enqueue_burst_delayed(void *event_port, const struct rte_event events[], @@ -1662,7 +1658,6 @@ dlb2_hw_create_ldb_port(struct dlb2_eventdev *dlb2, * performance reasons. */ if (qm_port->token_pop_mode == DELAYED_POP) { - dlb2->event_dev->enqueue = dlb2_event_enqueue_delayed; dlb2->event_dev->enqueue_burst = dlb2_event_enqueue_burst_delayed; dlb2->event_dev->enqueue_new_burst = @@ -3304,13 +3299,6 @@ dlb2_event_enqueue_burst_delayed(void *event_port, return __dlb2_event_enqueue_burst(event_port, events, num, true); } -static inline uint16_t -dlb2_event_enqueue(void *event_port, - const struct rte_event events[]) -{ - return __dlb2_event_enqueue_burst(event_port, events, 1, false); -} - static inline uint16_t dlb2_event_enqueue_delayed(void *event_port, const struct rte_event events[]) @@ -4312,12 +4300,6 @@ dlb2_event_dequeue_burst(void *event_port, struct rte_event *ev, uint16_t num, return cnt; } -static uint16_t -dlb2_event_dequeue(void *event_port, struct rte_event *ev, uint64_t wait) -{ - return dlb2_event_dequeue_burst(event_port, ev, 1, wait); -} - static uint16_t dlb2_event_dequeue_burst_sparse(void *event_port, struct rte_event *ev, uint16_t num, uint64_t wait) @@ -4375,13 +4357,6 @@ dlb2_event_dequeue_burst_sparse(void *event_port, struct rte_event *ev, return cnt; } -static uint16_t -dlb2_event_dequeue_sparse(void *event_port, struct rte_event *ev, - uint64_t wait) -{ - return dlb2_event_dequeue_burst_sparse(event_port, ev, 1, wait); -} - static void dlb2_flush_port(struct rte_eventdev *dev, int port_id) { @@ -4693,19 +4668,15 @@ dlb2_entry_points_init(struct rte_eventdev *dev) /* Expose PMD's eventdev interface */ dev->dev_ops = &dlb2_eventdev_entry_ops; - dev->enqueue = dlb2_event_enqueue; dev->enqueue_burst = dlb2_event_enqueue_burst; dev->enqueue_new_burst = dlb2_event_enqueue_new_burst; dev->enqueue_forward_burst = dlb2_event_enqueue_forward_burst; dlb2 = dev->data->dev_private; - if (dlb2->poll_mode == DLB2_CQ_POLL_MODE_SPARSE) { - dev->dequeue = dlb2_event_dequeue_sparse; + if (dlb2->poll_mode == DLB2_CQ_POLL_MODE_SPARSE) dev->dequeue_burst = dlb2_event_dequeue_burst_sparse; - } else { - dev->dequeue = dlb2_event_dequeue; + else dev->dequeue_burst = dlb2_event_dequeue_burst; - } } int -- 2.43.0