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 754F945B90; Mon, 21 Oct 2024 11:10:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 555394026B; Mon, 21 Oct 2024 11:10:21 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2081.outbound.protection.outlook.com [40.107.22.81]) by mails.dpdk.org (Postfix) with ESMTP id 7351F4021F for ; Mon, 21 Oct 2024 11:10:20 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ptYe3KA1GYyM91NYP5DqgnJYYeojC6kPaSi0R6u6l3+kGVBKEDzYwhk4y5wJEGaK1XyfSAQXJOLRDl5R5mtWUJe85ncq9IhORsq1AukD7BNG8sc2Px/65wfFJnLoYmYw2+vWshnt360CHwKb30vM3mUwc1c7nVDhX9ldQOz/cNaEcwWZ/BPrB/Z8on217ji+0e9u6cLrigDcweX7wzBwf5sUiIkF2yYvlkO4r10Pd6FkWp0Evn8eGsLYQUoDEdtrQ5TewzSMoB5dLYuY8am+O00VOdOxMWty6snoNICwlVobPSTCQoGdfl+uyuNuhyTdGgYC4fkg4vPUMSxqySqeiA== 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=ip/XPZYHmtz8mypca4t+p3g4HmUwziDmOdSD/R9pe9J9oPIj+zBzsWm1rNBDlS/yldxGIcKuKcKDoS/b7EHw/jrMc6OsahhpDdMTQc+GtQSThsfeU4jcKGFWUDvYzhtUqiQbOx8qYcCEwfIu5DU3kYi8cfU2naMha3/3r1FCY0moDBEYPYPDDPEPz1wTuU3V0udJ2CY6cQTcipOb8bZY2cNlB7ftE1O686KkcteSxU6VGQyOGub4U7XyDPMabGs9jMvIN6uaOgNXoBYMRdHewayn8CMqNBPG82zK1SIl1U9NTm9UkKvyLKWCYiAWSi8oJECWId+KpXyB2OwjVfrkbw== 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=OidMSrhmoNk+BfND+CP1vE3iL7GBbsWjJX2GMM63IJPtC2tC6QGgPRGKCZsOMY3VvdK4wR4Rm5SReZseOGRuFif8WsaUu8TMmfvOaRFtakrUGqMOGtEU/5xQ1xQlQVVZxQXA/ABjjmSYJZguHmeFOVhaPEtdY5FqPivkYQytfbvu/OMajJQkOaPaQqsWVFDqirJcwdee30s2HYBn8oq4DsS1/4UjaYVuA5aHqIU0LZHkYEFvKk/tpfgHh4pNEteftXAp31bulhwEg4vtw3s8BYrUgW/nqvh24UQko6kxm6CtF8cpxkJMPXZHEIBWpGzV8AyrzHmkUnwiV0R7dbJaqw== Received: from DUZPR01CA0037.eurprd01.prod.exchangelabs.com (2603:10a6:10:468::15) by VI1PR0701MB6734.eurprd07.prod.outlook.com (2603:10a6:800:197::8) 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:10:16 +0000 Received: from DU2PEPF00028D02.eurprd03.prod.outlook.com (2603:10a6:10:468:cafe::32) by DUZPR01CA0037.outlook.office365.com (2603:10a6:10:468::15) 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:10:16 +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 DU2PEPF00028D02.mail.protection.outlook.com (10.167.242.186) 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:10:16 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.66) with Microsoft SMTP Server id 15.2.1544.11; Mon, 21 Oct 2024 11:10:14 +0200 Received: from breslau.. (unknown [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 1FB871C008E; Mon, 21 Oct 2024 11:00:22 +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 10:51:10 +0200 Message-ID: <20241021085115.864114-6-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241021085115.864114-1-mattias.ronnblom@ericsson.com> References: <20241017063842.848360-1-mattias.ronnblom@ericsson.com> <20241021085115.864114-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: DU2PEPF00028D02:EE_|VI1PR0701MB6734:EE_ X-MS-Office365-Filtering-Correlation-Id: 263833c4-06ae-4e86-1083-08dcf1b02d9c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|1800799024|36860700013|7416014|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?WS9ZN3JzaWtYSWlQVTJNZWxqRlNFWG1CM3c3M2gxcWxZKzB3TXY0dkpWL0x5?= =?utf-8?B?bURTRDNrSExzdk1heEJMQ00rYm1UdG9VYVdHbkhLR2crNVJ5eEdRVFRkcTVx?= =?utf-8?B?THBWSmJsZFhhVndMZ1lqSUFCc05JWXF4eVIwOXZWME9GVDdDVndRYW16Ni9i?= =?utf-8?B?Z1ZUOTFRcERzRjd1MHlZREs1MTNsSjB5Ny9BcEtTdXQwdXR0R2Vvb3VmcUIz?= =?utf-8?B?cWlCR25QTm1WU2JacG9tbkg1bG5jUXJBaFRzdTJJdVRiRVVmdEkxbE9BTGds?= =?utf-8?B?MDd6b2tQN2crVDlYckx5RGJDWXdOZ3cwMXFES1JZeEp2WjBRWEpEd2ZleG8y?= =?utf-8?B?WllEdFlUcnUwVU1OQkpFeVU1UFBlSmdMYk1wVy9hYytZa0M1OFRGK0VWNng1?= =?utf-8?B?ZFIrTVZjeS9scDlJS0l1dmpmRUpQaUxKQU81dUROanYyQVhOdmtRNmI3S1hF?= =?utf-8?B?VEhMODc4WVJlY1hLSlUxd3JDcVg3WVplVUFZK1dTeGd1WG5JRXJJaUo2MXBx?= =?utf-8?B?d0Rl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= =?utf-8?B?TjZVZmttNWFJYU5TZTZwb1Vqb0ZuZjcraFpzdUc4T0phdHlEQ0tGdU5SWEFh?= =?utf-8?B?aGZFZ1JtUVdLdFhhNmZLZ3RRdHdhSGlwSUJuc0FmR2x4YXRrUHdTb0F3VkIv?= =?utf-8?B?dS9WQjdqVW9ibzdtSTNXbEJJemVMS2NvcmJNUHhNbllnSUVRVWpSWm1VNmJk?= =?utf-8?B?Q0tmaU9jY3hUUXVuT0hkTVg1UkZub3d3cmJHTUpFYisxTkFnSXl4TEVlUG9x?= =?utf-8?B?eGluQmg2Z1RaK0Y4Vk9lbms1eGVBcDk0WUk5eU4xYnVBYW5ndktwUU53WkZu?= =?utf-8?B?dWVjd1k5UC8vWlFYVGRpa0lrMFozcWxTMkF0MHJrNnA0NnZVd0JFZmRPQ1B0?= =?utf-8?B?d2E4Q0I0OE9uT3o5Ry9tTTZ4WmZWSUZsMmdzZ1JqUGRiTXlzMjdCQVNCUVpB?= =?utf-8?B?QWJBa3N5N2pFdG1QVGltalBQaGFBQ3R6clFSTjYvaGJDRHc9PQ==?= 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)(7416014)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 09:10:16.0727 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 263833c4-06ae-4e86-1083-08dcf1b02d9c 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: DU2PEPF00028D02.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0701MB6734 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