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 8B83045A78; Tue, 15 Oct 2024 20:35:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E074F40676; Tue, 15 Oct 2024 20:34:53 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2058.outbound.protection.outlook.com [40.107.104.58]) by mails.dpdk.org (Postfix) with ESMTP id 8C0DB402CD for ; Tue, 15 Oct 2024 20:34:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LRFKHOw/b/oq03IAWI7H53O6v/u3aDQI9xUx0FNGTdmhCrAx4Rbjlnzy77uSFgTJCiAwJGKUE6VRaIRRFFjfO5YfE0P9LL1fkpKLpHWwA8GoPTS+teHjYoLquPJ4QC0hRaCM5RndCA6qDvPiduSci0CEKHfQX1FBGzkaQeFszgZhDy05C51cxFinhxOFLv/GML4ARukGhrce2m9QTi/+r0PGbHX4RwWaXXu+6z0hAgclJQXBQxmLMtkSfbujPkZJRY0H+kvb0rdjvJPM+D7uVtSzx9cij457OAS6IME+wOoAf6tTs54/Sy8K2qXQ+eWsUNt5LmZWXFQe+hu/jdN8iQ== 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=0XLEkr7xoN+DCBSrYkh7y4qdndIY3A/52E06j+0jwDs=; b=XVFmgqRy1k0GjldkprMyvD4k2MP1C0Oz6Kj6gUs4Kdl8V075x4HW9jy5z6yhi6FaPUiAFa9Wobwy0nO2ezVfrYslWYjDFijTTSVsIa/F1Vf/+9M5njJQrqIpD0kxv4FlDosgI8XgifdgY20qJ6+SIt/Uq2cIylhgm9CrS6VP4swgY/ffvUQyO2oWgjx1sqAJANiCDHoNStiRiogIF/KXM3RRfj+IfOrBZSOlZjEjIfGIdvsPbx4Q5m6P0+Y7GmxhxMH8ycq7LBu+GYbGn8GhL7DckofhCBC5lx8a2x5+bfM7s5cxK9esIEyhYSuV7gr6NkRQUh77tkpPjo/9DLpEjA== 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=0XLEkr7xoN+DCBSrYkh7y4qdndIY3A/52E06j+0jwDs=; b=HRPVkt+OU+5hEZFPRdS/iQAgigruudcwdXPpX23zXpxFk2/BpNYl8zMphq2QykStXJ6OVyt2ZWv11Ii68ZDl1TWictJwxAvkIPav1tZHhzjiYgMQPk72+O0RiMtkSaBg0R9GdcAAWy1fApuNG143uSUGVDO/hGBqpUHHYmISj9GlY+ybvcEJCEVodtrTGTHK4iM/4CWFQASWY8Z+k8gE0iiYpTPcIPHGqf71nDgOwoI/vVvnjpP1bpahSaLEy1NBiiP880KcHJNLQNmSvUoPSQPTJobhLLImuqEGip625Q6qPzp6zL1h57QrBuD25SLidqSMR2dpodbA/s5IIL5W+g== Received: from AM7PR03CA0029.eurprd03.prod.outlook.com (2603:10a6:20b:130::39) by DU0PR07MB8715.eurprd07.prod.outlook.com (2603:10a6:10:319::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17; Tue, 15 Oct 2024 18:34:44 +0000 Received: from AM2PEPF0001C70F.eurprd05.prod.outlook.com (2603:10a6:20b:130:cafe::6) by AM7PR03CA0029.outlook.office365.com (2603:10a6:20b:130::39) 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 18:34:43 +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 AM2PEPF0001C70F.mail.protection.outlook.com (10.167.16.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Tue, 15 Oct 2024 18:34:43 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.63) with Microsoft SMTP Server id 15.2.1544.11; Tue, 15 Oct 2024 20:34:41 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 22C931C0070; Tue, 15 Oct 2024 20:34:41 +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 v2 06/10] event/dpaa: remove single event enqueue and dequeue Date: Tue, 15 Oct 2024 20:25:31 +0200 Message-ID: <20241015182535.825098-7-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241015182535.825098-1-mattias.ronnblom@ericsson.com> References: <20241015084943.823983-2-mattias.ronnblom@ericsson.com> <20241015182535.825098-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: AM2PEPF0001C70F:EE_|DU0PR07MB8715:EE_ X-MS-Office365-Filtering-Correlation-Id: 9437a29c-c261-4bca-dd86-08dced4809df X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|82310400026|36860700013|7416014|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?WWFsZ0pOekpITmFZUG16ZlhMUWVSYURHSFFTeWVCQS96Wk5yM1c5c1h2VmZu?= =?utf-8?B?L092N2JIRXBlakR3aWoyU0xrOFVMMStDUkd3VkpzaGNGRjVQUXdNZlV6ZXZW?= =?utf-8?B?SWtiZnBtMlR6Tmo0UU9nc3k1UmtnaFdqRkxBVG8ra01TQXNaMFhuQmR1YUxF?= =?utf-8?B?NTJrZ3JvUis0OHNBWjV2aDdwTXVicXRUMkFDMHNRenlVb3NHVlY2Tk9qdWt5?= =?utf-8?B?NlBIQ2V3TUYxRmxxVlc5bHlFWmlrMTFUQW51d1VWYmtEVjNvR053R3RJQWRH?= =?utf-8?B?ZVA3bnZEYlBLdHdSNlZzTGQxcUNHNHNWeitvWnJIdVBjYVV0em1xZ0dYQ25i?= =?utf-8?B?OS93NGwwa2pQWnc5Q0w5SGlCR3p0YzdWTzhWc21EUlFmaXd1dERCNUFUazh3?= =?utf-8?B?N0VrN2h0WHhxNkxRM2VJdzRXdjI1TDIyOFNYWHZMKzBqWGxaVGhnakI4bG1w?= =?utf-8?B?a3NKck5vM2x0blhCZ00xYk5YSW5rMW1zemhscUtFMThJbHRoMmdmd0RBWG41?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mFBemhHUzdP?= =?utf-8?B?N1M0QnpWSEFFMS9CSUVhRHNrWi9HOUNYNGlQYUdaY1VNUVR2ZS9vKzVXT0Uz?= =?utf-8?B?bjJzRTRZUkFIYjdRblhISzZBdzc0TFE1R25ZdVVWTW5ZMkNqQ1FITTl5b3dJ?= =?utf-8?B?WmFIQWM5RHV6b3ovdlc1cHBpTEFUcUpNVlByM1ExdjhwMllLZ1RvY2I1K0Rp?= =?utf-8?B?eTVBaFc1M0xTVytZcy80eWJXdmVLSWIxdFpoOGh1UHI4NFl4ZE9qOWJ0Nm9k?= =?utf-8?B?K3pFZm4yQURWK0wxTmd4ckxOREt6NDFXWjdZM3BXYVRqd1praGNjaEttRFBh?= =?utf-8?B?RGpLL1Z5cDR0TGhtemhnbTRGNjlsUG51NEJ5VVI1QzRlc0Q0RGFOdnlGVmx3?= =?utf-8?B?dUlKSk5DVUxNTys0bjdyT1BNSXpob3JtWFgwb1dGQWc1dldSZ3gvTXkzampE?= =?utf-8?Q?NeRRp3twBfx2K?= 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)(1800799024)(82310400026)(36860700013)(7416014)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 18:34:43.8393 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9437a29c-c261-4bca-dd86-08dced4809df 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: AM2PEPF0001C70F.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR07MB8715 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/dpaa/dpaa_eventdev.c | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/drivers/event/dpaa/dpaa_eventdev.c b/drivers/event/dpaa/dpaa_eventdev.c index 85ccb586ef..853cc1ecf9 100644 --- a/drivers/event/dpaa/dpaa_eventdev.c +++ b/drivers/event/dpaa/dpaa_eventdev.c @@ -113,12 +113,6 @@ dpaa_event_enqueue_burst(void *port, const struct rte_event ev[], return nb_events; } -static uint16_t -dpaa_event_enqueue(void *port, const struct rte_event *ev) -{ - return dpaa_event_enqueue_burst(port, ev, 1); -} - static void drain_4_bytes(int fd, fd_set *fdset) { if (FD_ISSET(fd, fdset)) { @@ -233,12 +227,6 @@ dpaa_event_dequeue_burst(void *port, struct rte_event ev[], return num_frames; } -static uint16_t -dpaa_event_dequeue(void *port, struct rte_event *ev, uint64_t timeout_ticks) -{ - return dpaa_event_dequeue_burst(port, ev, 1, timeout_ticks); -} - static uint16_t dpaa_event_dequeue_burst_intr(void *port, struct rte_event ev[], uint16_t nb_events, uint64_t timeout_ticks) @@ -311,14 +299,6 @@ dpaa_event_dequeue_burst_intr(void *port, struct rte_event ev[], return num_frames; } -static uint16_t -dpaa_event_dequeue_intr(void *port, - struct rte_event *ev, - uint64_t timeout_ticks) -{ - return dpaa_event_dequeue_burst_intr(port, ev, 1, timeout_ticks); -} - static void dpaa_event_dev_info_get(struct rte_eventdev *dev, struct rte_event_dev_info *dev_info) @@ -1012,17 +992,14 @@ dpaa_event_dev_create(const char *name, const char *params, struct rte_vdev_devi priv = eventdev->data->dev_private; eventdev->dev_ops = &dpaa_eventdev_ops; - eventdev->enqueue = dpaa_event_enqueue; eventdev->enqueue_burst = dpaa_event_enqueue_burst; - if (dpaa_event_check_flags(params)) { - eventdev->dequeue = dpaa_event_dequeue; + if (dpaa_event_check_flags(params)) eventdev->dequeue_burst = dpaa_event_dequeue_burst; - } else { + else { priv->intr_mode = 1; eventdev->dev_ops->timeout_ticks = dpaa_event_dequeue_timeout_ticks_intr; - eventdev->dequeue = dpaa_event_dequeue_intr; eventdev->dequeue_burst = dpaa_event_dequeue_burst_intr; } eventdev->txa_enqueue = dpaa_eventdev_txa_enqueue; -- 2.43.0