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 DA0EE45B90; Mon, 21 Oct 2024 11:15:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C609E4026B; Mon, 21 Oct 2024 11:15:59 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2054.outbound.protection.outlook.com [40.107.20.54]) by mails.dpdk.org (Postfix) with ESMTP id 04D194021F for ; Mon, 21 Oct 2024 11:15:58 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PVSpCCuynJ7Gqd5I5mA+UjYCdF2ctFNV7VZyIEdta0hZ3Q0w5VSNNZr2DQ2RyOUYgs2ZZ7qKoHc5newf8QIckUyNTSICe4ssTTa7F5f9tOrbUE0LYT/cyETtKtptSDBRBScOQzoxBEdoTNV5EGNTNnRDJU+WhOpZosm1/tGvDw3YxihxRHFWLKbZAwotwy8vRf7qdSr6zikxC44mS8elYcm90tnHx3VHwCXyKHksc5phRGVZ6+nUEq4+9ndzHrX8vXcDVSBcWrz5qTqiY4VzZCAFHK7Wlf+VnQCI3vUO7CBDhgZkEDCH3wmz7eMLkDRMUzjX2UpwBViOLiuH26kJ1g== 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=wUh2PvdND3hDwpqFD3xIr+5NTUjAtcmuOBBF6iXuTF8=; b=sqAUgH7tTouqEg1QTAD6upaYD6OIWPz1UmoMZLYuulKobrl1OvbiLiJ2o8IbPUBI3s263bzVKLMduFpkShyOsH4DR7vZUHYw2vZ9elW8tXGnE80OZ28EsOJE75UnGCxhXanTQF73duG7UcGE2xlg2jEsC5ZoG4q1lnXoHIhu5aHwYlyCs42CEqwCYZG1q1mw6pXWUbUOtG2OY3MWC2YXxFRFSogeafBRmQ+P9wZUNBKMHwjib8o1wZRmpN7nS+FdBwPRokCT7sFJgCwJH+jUQpFhQm4lMK7o/qI/6/2utCpxorwuLwxPL43grVfj0xh2K/PMIzRz6b8c+K+0kYYPZw== 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=wUh2PvdND3hDwpqFD3xIr+5NTUjAtcmuOBBF6iXuTF8=; b=BzQ4yYHpzwxAHlsGyYiM6zHMl8nRV/oop3A/xpuG1Vmh7IOqvEQfV/4D5QVQe3AhXJWGraxtzb/9mV7urC5QUsJtoSuQ5f4DKhFRfe6fFsuyTIKm6R1QH280AlJMhFfF2PRp3VhFawYorsiULEwoGAgjDuuXXIHZEe1t1fyj1mokYe/1z+ey1kYmvTonDzoRdgxoY4yK7CuKpbktasoSlaoe32zt+iVKkxT/kt/Boe6MvbElhZEVswHx6AWGrs3cGAaacLMA75dqSXnLg+Ohe1Ap9V64UwXLaW0l+w3C3+91rGjwFcPwJMqhRZusoeyAuQBx1ykRqSFkdupamwpSWw== Received: from DB7PR03CA0085.eurprd03.prod.outlook.com (2603:10a6:10:72::26) by DB8PR07MB6249.eurprd07.prod.outlook.com (2603:10a6:10:140::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 21 Oct 2024 09:15:56 +0000 Received: from DU6PEPF0000A7E2.eurprd02.prod.outlook.com (2603:10a6:10:72:cafe::db) by DB7PR03CA0085.outlook.office365.com (2603:10a6:10:72::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.29 via Frontend Transport; Mon, 21 Oct 2024 09:15:56 +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 DU6PEPF0000A7E2.mail.protection.outlook.com (10.167.8.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.14 via Frontend Transport; Mon, 21 Oct 2024 09:15:56 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.61) with Microsoft SMTP Server id 15.2.1544.11; Mon, 21 Oct 2024 11:15:55 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 98E321C0096; Mon, 21 Oct 2024 11:15:55 +0200 (CEST) From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= To: Jerin Jacob CC: , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= , David Marchand , "Stephen Hemminger" , Anoob Joseph , Hemant Agrawal , Sachin Saxena , Abdullah Sevincer , Pavan Nikhilesh , Shijith Thotton , Harry van Haaren , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Subject: [PATCH 02/10] event/dlb2: remove single event enqueue and dequeue Date: Mon, 21 Oct 2024 11:06:45 +0200 Message-ID: <20241021090653.864237-3-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241021090653.864237-1-mattias.ronnblom@ericsson.com> References: <20241017063842.848360-1-mattias.ronnblom@ericsson.com> <20241021090653.864237-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: DU6PEPF0000A7E2:EE_|DB8PR07MB6249:EE_ X-MS-Office365-Filtering-Correlation-Id: 85e574a3-69aa-430d-942a-08dcf1b0f8ac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|1800799024|36860700013|376014|7416014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?ZXlKeHNUNFNqeHVUZ2xodC9zK2JMSUVXdkU0S2hDVHpyR3ZoNDU4ZDRCRVN1?= =?utf-8?B?UHREOXovM3lNZEVQd09TUy9YamhXaVZaWHdGUjhYc0hhV3kzNU42dlNGb3Mx?= =?utf-8?B?M085QmQxYVZGbjRiVUxtOWVDWVA4dytLZ2ppSHZ6MXAzUXBrc0djNEkxR2hM?= =?utf-8?B?czlHUGNEWHZwV0tQV2RkZ2JTOEIvUzNVV1Z3RW5xREhoc0Q4anZpOGt5ak5w?= =?utf-8?B?UVc2bUFTUWE2MDJrWXNkcFRlT0ZEdXcyQ3hYTk9SeFF3ek1EbTdmMVFla1Vv?= =?utf-8?B?eXUvUzhFRWFXaVZ5QTVHQit0bkhlckczaTRmK1RsaXMvWnpnZjhPRDRoblF2?= =?utf-8?B?NnZXdjBFZ2VneXBZWGhYeXIwVWlLd2dkcG5wc3pGeDlNdkg0Z2F5WWxxd042?= =?utf-8?B?ekt6d1o2OWpUbStXTDdwdnQzRVZHK01IUjRwZGROVmJyd01xcERNRVhyOUpN?= =?utf-8?B?ZXV4bGRyUS8rQytUeXE1bUFGTnlvdFBtM2xKSUNB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DN4cnJ4NVl2ajRWWE1ZR00wc0dPZkZYUkFzRGp5OXNN?= =?utf-8?B?SUZNb0l4VE82MjZYUExtMURRS0RSVGIweTQyaFR6a3p3OVpWYzhhMmphTUps?= =?utf-8?B?enhqakwzTy9IQXlZVFNzekNJbTJmTDBPdmtOVGk5R2hzaGkwV20xRkd5RXB3?= =?utf-8?B?UWorQVpiL0FtRHBiKzRRMXBHZTdDS0EvZWFCQjI1NnRQdU5yQWUva1FWT1VE?= =?utf-8?B?UWtnc2htQ0d5VEhPU2V1SXptRHBkZ09GVC9aM09uVVZOQlFuTDkvTG1OZWJ5?= =?utf-8?B?dlRTeXdsYm44V2VFZUdHNjRua2xwMTN0T1RPenhDL01CWDB0anBUNllWeTlB?= =?utf-8?B?dmxZV0hleEFtMnR5SEdOa0xvZC9UUjRkWDZUQWNzMXp1SEpxOS9vRzd2OXVt?= =?utf-8?B?bDhlcGF3d08xbnVmNHd3YkN3RU5UU2NsWlNrZkhTd1ZQN3BCbW91b0xpeUhW?= =?utf-8?B?QlJvZk02MVRTWXhwc2IyQThSRHZtOFRvbWMrL25ha3BtNVE9PQ==?= 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)(82310400026)(1800799024)(36860700013)(376014)(7416014); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 09:15:56.7584 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 85e574a3-69aa-430d-942a-08dcf1b0f8ac 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: DU6PEPF0000A7E2.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR07MB6249 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 Provide only burst enqueue and dequeue. Signed-off-by: Mattias Rönnblom -- RFCv2: * Remove unused function. (Stephen Hemminger) --- drivers/event/dlb2/dlb2.c | 40 ++------------------------------------- 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index 09e4107824..934fcafcfe 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,20 +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[]) -{ - return __dlb2_event_enqueue_burst(event_port, events, 1, true); -} - static uint16_t dlb2_event_enqueue_new_burst(void *event_port, const struct rte_event events[], @@ -4312,12 +4293,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 +4350,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 +4661,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