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 04E1445B5A; Thu, 17 Oct 2024 08:48:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 505B340697; Thu, 17 Oct 2024 08:48:09 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2086.outbound.protection.outlook.com [40.107.104.86]) by mails.dpdk.org (Postfix) with ESMTP id 061BF402E2 for ; Thu, 17 Oct 2024 08:47:58 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=StHnfURlpOkf9drboD4fSZOrlzwhyLdsp91UtWm8dPPHKIOS9H0OJ6rJHjFYkuZAMyQ0iQpfDVnljntrw6/fUTeC1AIeap5hXmCFRJJlMkt/jjy7+ReWlaLJnfxjmA3uXf/71PHZcl5obJ63tohiJJ2sSVj+tTCvUNfAk2D3FkNJqE6ZRlyEVIHmAYIKGfhPQykYOM2mbY45JSh0Y+eu0HWkdWgxXOHaU8lTzi6ahTPDLFGSWDphTrSSGkiCzhdCia3mlq4PdTuOapv2qn5HcTlmdINNBx4YwRSu5XaQmc+cC3pW03J4fP0FUFdkCcuZgi6mJTUeockTK3oGKxsJCA== 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=FmD8F337MQo6tOMHssGbattilXp7O2Id8R9EcTfYMq1wb94pXoJxZP691RW8sViJBNLXEhqUXx8uj2bndvBntZ7HYHGJPLYISfldcsLP9TWaWlyumIATlsQPzb7xyz+z9k0JPcC/V19cGAHurYY70AMTCuG1cMl1OFGfdy4wxwxvCBo90NGxt6JinkGlmA/7iurHLTM3yAzPZY/ecdmXXHqYgJa2dUZIzF3Xk/OO8fcby0pBOsN5jk2y9+y8Mf4eG159X9tRulZUTrmT4FU82sH8HNFhDA8T+CxEuaiiuGQ6hy/g6gdNPPpeJSuQpIdMZo4NGCwOfysGzS6JGpU59Q== 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=h7063HiXdWWX7eiKy8GELaiYLwLflm6gkmILOLLX6lnD/q7kqy36sK21S+Zn35LqENUhFeXDGnX/Ugv0OvkmIpPXyk/a9l0vCcBWjxBQBiUtBEs1v2Pq1CtU1byXZlnlr4KO7VqCHDLZI9VuxgEFHoEr4+1Lece3bwjn14D8Cy8BzRuvasywatgCqIpYQtLPcXgUk96seRKF7ozomTj5/HQvLVF+K/JVsnCDVKywi1O5LJ/Zdjxpnys5xH/RG52PG0nsOHJRqhdiu3WTrgtS0jfdhu8AzWYvLgzlKJh7v2bJsWjw/+JW3+0yD8dDg4oeaLCLZvuxF+RRb8cCFIj9GQ== Received: from AS8PR04CA0106.eurprd04.prod.outlook.com (2603:10a6:20b:31e::21) by PAXPR07MB8446.eurprd07.prod.outlook.com (2603:10a6:102:2b8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Thu, 17 Oct 2024 06:47:53 +0000 Received: from AMS0EPF000001B1.eurprd05.prod.outlook.com (2603:10a6:20b:31e:cafe::6a) by AS8PR04CA0106.outlook.office365.com (2603:10a6:20b:31e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.20 via Frontend Transport; Thu, 17 Oct 2024 06:47:53 +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 AMS0EPF000001B1.mail.protection.outlook.com (10.167.16.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Thu, 17 Oct 2024 06:47:53 +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; Thu, 17 Oct 2024 08:47:51 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 96F251C0070; Thu, 17 Oct 2024 08:47:51 +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: [RFC v3 02/10] event/dlb2: remove single event enqueue and dequeue Date: Thu, 17 Oct 2024 08:38:34 +0200 Message-ID: <20241017063842.848360-3-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241017063842.848360-1-mattias.ronnblom@ericsson.com> References: <20241015182535.825098-2-mattias.ronnblom@ericsson.com> <20241017063842.848360-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: AMS0EPF000001B1:EE_|PAXPR07MB8446:EE_ X-MS-Office365-Filtering-Correlation-Id: 571ebdad-b338-4618-1fbf-08dcee779ff8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|376014|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?B?T1dnY1JlRTRNaWhaeGh5ZDdWTnl0dFhwcVlvM3VCb1Q5WXRITEcvVHUxL0F6?= =?utf-8?B?K2swU1JRNVZpaEVKRE9uNkd2eHF0cjdYZzdUS2w2R2dyaWxNbk5hQTFrYWVu?= =?utf-8?B?QmdkbmFadW1YVDdoMUx1REdDNDIyKzFaM2VVNmE4a1V6Ym5seGFacGk2bzBL?= =?utf-8?B?RGRwdE5ZMkJGVmJ0Y3d4a3l6UEJFOStveDk5azVNemI3b1ZNbUVDRzJPYm5C?= =?utf-8?B?Y0g0aG16bzJQTEwwRVdGZlJXVittL3NHbFRrcFU3VWljcVZtdHFWSVFxeEZV?= =?utf-8?B?SW0zZWtMVnRFcmNtTCtPQWRjTG56VzA2K08wZzNtSTFxcXpNUEx4d1ZZRTRQ?= =?utf-8?B?UUFpSmFxVklsTjBDU2RycW16VFVHeWd5cFZkem4rTjczRzdua2h2cVNDeGow?= =?utf-8?B?c3Q2UFhlQjl1VnlBTHpHeUVtcElyaHhDWUdJekNmOGFzazl0MEptbWk0M2FT?= =?utf-8?B?eTh3YlVpUWZPTGZ6Smg3cVV4ZThqVlExYjZWRGZ0SzJicEs1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ad21ub3l0aGFFNzJueXV4QUZE?= =?utf-8?B?TVVRbGdvNU56NUJCc3luc2JvM2lIR3JyYWt6bkdtZXNaaTVXZ1RQdnEzVWNL?= =?utf-8?B?WGpjRUJYL0o5MjlJQlN4Q1lQeEVKdkFqSDF1bjFyd0VWYjVTOXh3Ti9USE1Y?= =?utf-8?B?Q2xaVHlRM0VxekI2cmpKZnZoMUlnRzQwVTRFcU4wek9IYk9wc0taMDdsN0Vm?= =?utf-8?B?T3hueHBDRGpFeWczUGpZRnY0eUV2TGlPK0JOU1VJRGRDRVVLWW14d2NQUHhC?= =?utf-8?B?VzBldU9pRFAxY2hjVTNxa3I3dTl3WlZyT0tjb01LZWVPczVycUNSdXdnNWRn?= =?utf-8?B?MUg3bnovWTE2NVU5TzRCVXpzbC80b241K3Q1U3VKRS8rS1ZKQkJDbUpLNmNZ?= =?utf-8?B?U0hhd3I0VkpWcXNFU1U0NjFaUEw1R0NPajN4bnE2a2VXT3lsVmRyS2krNGFR?= =?utf-8?B?VUJ4emlYNVJ3ZUREN0czdnFiVU43KzVteTJNU2ZjcU85YkE9PQ==?= 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)(36860700013)(82310400026)(376014)(7416014)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2024 06:47:53.1656 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 571ebdad-b338-4618-1fbf-08dcee779ff8 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: AMS0EPF000001B1.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR07MB8446 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