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 583CB45B90; Mon, 21 Oct 2024 11:16:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01ADB406B7; Mon, 21 Oct 2024 11:16:13 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2058.outbound.protection.outlook.com [40.107.22.58]) by mails.dpdk.org (Postfix) with ESMTP id D7D7D40689 for ; Mon, 21 Oct 2024 11:16:11 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Hr/QmR7fwr4ZvQn9pthmk+Cowcayhf2bp6qq48XNs0fg7YW9NYnt15raWaN1y8rhD7TtxYYHMGMd+nSQkbtx+ValpVMxp1lOjLs807xXOVLxNZKLKh64/7bbUf3PWmuXCE7geq86N4CW7wwLjP9Nlxnn4BBjOOn+A21R6uKV13CQnYjpGTs9bjKR2hWeQ6MDYKIMdG2EU3mwwUT3JughFDblpLMf47P6u4DT4JeJ1HR2D/YW8qUayT/LhrZ9Z9RzwEYJHkr1TW0cjTGnQjt7LWA6tyUt6Jax8X2leie9EGShgJnS/GIc0Q2gPeix0dOQ3uG8/EMa+pr89QcgW7Of6w== 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=Q3mERMRs9qKs1IEPs9/uKimyM4ZJcjAnPZ3sl/PFKW0=; b=JSjbil9sBcOVoxvVHFfHBolkjEp7kb4c4X9NWIi1JcdM+oTArxnM+pRiAAMoEONw3TeAegpSLvSLzCM9VHoNuOXqXu8hVGhlQCpIvJOapNXXtJjR4K3LEp2Ce9qfFcQVXsuxzjfhv+V09nj7Hv0aXz1paqjubHKNRauN76JBpJti1peK444fadzf96mbioEqhe5aHS98hslk7wviJ62D9GoJ+v+HckQfGaUnx0JOnFKK0zAzNJCj4fB/ykoIy0w3dMErvO+wb8GsCOHadv+NKcxChBBWaybXlnJp04+ZeIQJXMk6lnmWJ9aNzmVdQ3/pEayhjXTvUPFf9SeRwBj2WA== 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=Q3mERMRs9qKs1IEPs9/uKimyM4ZJcjAnPZ3sl/PFKW0=; b=s8Mv8xowh9OkPsI7KE0b7kRrH+amvq3rcwR4+AYl4dWuYj8f2IxpjV4/KPbNUeVx/TW/guWELVWPZgrRPb4xShHjWbJCoqXFntA6ofh+I9tsur41+0FA5EnpfPZ95ET6pXEPgvOrH66P4DqI/hn884HXZxfv6SIS+v/s6YRipq5qiUHqrXhDKSkWkBq+pKTmr18BPI5XqrSdDgBHJYXK6qSgJuhyvVvmlazlnrHzDFlJMuZfPtnhq39xt6GBsUWZIYErONJF1T9+YBhF2R3ZKDj+HOkcwOfN5xSYWT4BHhE7Q3iKBXf1I2GFYdIONvgC3f0lr/ldpivuBLB/1k+0JA== Received: from DU7P191CA0011.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:54e::18) by AM9PR07MB7300.eurprd07.prod.outlook.com (2603:10a6:20b:2c3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.20; Mon, 21 Oct 2024 09:16:09 +0000 Received: from DB5PEPF00014B99.eurprd02.prod.outlook.com (2603:10a6:10:54e:cafe::bd) by DU7P191CA0011.outlook.office365.com (2603:10a6:10:54e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28 via Frontend Transport; Mon, 21 Oct 2024 09:16:09 +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 DB5PEPF00014B99.mail.protection.outlook.com (10.167.8.166) 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:16:09 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.65) 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 CD9491C008F; 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 05/10] event/dpaa: remove single event enqueue and dequeue Date: Mon, 21 Oct 2024 11:06:48 +0200 Message-ID: <20241021090653.864237-6-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: DB5PEPF00014B99:EE_|AM9PR07MB7300:EE_ X-MS-Office365-Filtering-Correlation-Id: a10b55cb-fa9f-4436-3ec2-08dcf1b10067 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|1800799024|376014|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: =?utf-8?B?NGtHS2RBcko1em9Sa3FJM1MxUGFGWnJvbFA3bXlnY0RCMXRXQnVKOTNEZytI?= =?utf-8?B?MXVuY3JYVms3ODhSTFMwSUhIN3ZaaGU3OTBHcGY5N3AzcUMxQXhYT0d5YUdH?= =?utf-8?B?UkFTck1QT3NWL3ZaRGY4UmEyRDlWL0N5U3FFeHp3cGorRzVtYXR6bGRVWDZX?= =?utf-8?B?MXlPWmVjK3pVTHNkVUE0L1hHcExYWEpzTDcrYXpBYVZ6VDN5UDN2RVJYbG5J?= =?utf-8?B?YnI5S0llRUkybjJEMTlkZkVPYml0VE9lVnM4U2ZlWi9Va2pCaTgyWlVpY2NL?= =?utf-8?B?VUhDd29vUmdkVmhsQ1NXSFJRUUQwT21Ud3did3B0dElnR0dtOWFWZlhsVDNB?= =?utf-8?B?Ui9iT3VKQy9md0VaQk1ZYksybmc1cUhiN0JFVG56TTZGbXNoNGkrYmFCVE5X?= =?utf-8?B?bS9mdWExM2ovc1VqY1BldGRkMlV0NHhJTkpqNE9GNUtGS09FbUtpOHpRdGpF?= =?utf-8?B?bWtIRXJNS3ByVDNBcHI1OWkwdnMySDc2TG9CNF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QzVjVxbDVOWFUxUGJmSGN2SmNrU0I4WGxhbnBJSWZzL0Q3eGNZ?= =?utf-8?B?WWRFOTNlTnZzdDNtZklybUpFRjlDc01FTDFBbTVvSjJib3kyb2J4RkFSOS9G?= =?utf-8?B?TFJ6WEljaTdKU0tQUDFrWG9pUjJHaVBiR3JFenRMV1BzR3JJZzRFQ3B1NTJq?= =?utf-8?B?dlBWWmVXR3ZFMCt1TjNVU2Q3aGMxclZWblJYNXBtS2xjN3h6Nnd4akc4TzZ5?= =?utf-8?B?d3pwSU1JVEZGVE5QOXJoN2w5Ky9LeS9Fcyt1dHpieGREZ3ppNHp5NXQyRDRr?= =?utf-8?B?djdLWjJBdTVGRkNrRFlQakJVeTRxcU5namh5TTZweUFMNEIycThxY01kMno0?= =?utf-8?B?V3lsdnMreU5YeTZsRWNibDVzRHRRWkd0TU5XbjdSUjFGelRNQ21yb0h6M1gr?= =?utf-8?B?Z3ozRlhxc05YSWp2WVp1Zy9FbERMUXBhZDFXSTlJbWJoZmdZQkNzTXFpMjZS?= =?utf-8?B?M1FSK0V5WXFqVEJBa3ZvVGFLMmQxQ2cwSUZ1YTQ5ZllPL2c9PQ==?= 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)(7416014)(1800799024)(376014)(82310400026)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 09:16:09.7258 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a10b55cb-fa9f-4436-3ec2-08dcf1b10067 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: DB5PEPF00014B99.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR07MB7300 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 --- 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