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 BF1F845B5A; Thu, 17 Oct 2024 08:48:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2326A40669; Thu, 17 Oct 2024 08:48:04 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2080.outbound.protection.outlook.com [40.107.20.80]) by mails.dpdk.org (Postfix) with ESMTP id 53B7C402E2 for ; Thu, 17 Oct 2024 08:47:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hAFDSN19jtaFf0zmLJRGUoeaBwr0kVLq6kP2JFGcWOlrUpTRXvtllDeSbPCvPo82homDvEYfvr6bPV/HOO4KgIX6ajow4zqHKWGgPDH8LDaqUAWghcMDC8FcjQRLjyJlzk7O2Q+m26TsxG8vE5nNjX3bxgz3DFd+huyps7M28YhT6a/UAh4LAXkppT2tw4oIDwpDFqkIcLbq/9KZ+2iKJT5oIV7oRj8+rGsy0qtUSnNJvF6T7NihA6fBd2zD4K90faQLacb+/RhInTKkDW1iCGPe2Y/j70zodphRbzjYCVXi+n1PMavlKAp/6rsRUJgqvG5H35kXNlTN3uidGyLtrw== 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=m6yhQZybX3Ew+6G6NeQ6d5Ew4i9vkfSkzCceMRqbXtXPdVPWY4tI7HktlIa8RPCtvhBph6JXj60cSFW9uZpdidzqTfVv9jjPEHZZ6kaa0r9TODWN/NYZj/plZb2pXvsGK4Jo/rppky2pwFiV8ONLPKnBXAYROy05Yk9AkpfqeYo87yEVpFqQYLovT9voFSNs7LYdac9VFlAf8UqpHPayEJeQ1dcWGH0CFjMm1Jkx9M5JmjHXcLv0qgsR77NXFnG29dAjMt99OqJzVL/Fe5jrrwnvOzIbREd/MPITFkMPrEL+y+YJ6Wnk6pQEsxmMMD4ORHOlGXO9je2VaLAEuGdcuw== 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=IcjGYb1mJ/A3AWcwvBcKsrw470ZCbYwEOcgf6xMHEAMpHg/B3iLBSfOxK+1WN5HwoqL0w9WQdNR6MVvzrvv4P1UK9mbngzxegNuIkI+RPLnpPHXz1NcHFwtBaImW7IoSSxq2XejFaqTYzeO0r0Kny9SNwb5hm76wvzp76vKAgVZX6jTgvID7GDXet0rUSFDjSRaY50oV9z1+zmzMeUt0CjwfPriHNs/1O0LP92RSgvcNWmiNtVmKreLaH88/oP5eWqFUqIZQiIRxjNJCCujHHy0zGA4+lDGbss5q1LyR6cFP+h+D416A3hexiDNqSM01dsoKmnyQuU2yk/QMdAqj8Q== Received: from DU6P191CA0004.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:540::21) by DU2PR07MB9450.eurprd07.prod.outlook.com (2603:10a6:10:49c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Thu, 17 Oct 2024 06:47:53 +0000 Received: from DU2PEPF00028CFC.eurprd03.prod.outlook.com (2603:10a6:10:540:cafe::e1) by DU6P191CA0004.outlook.office365.com (2603:10a6:10:540::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.19 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 DU2PEPF00028CFC.mail.protection.outlook.com (10.167.242.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17 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.65) 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 C9BF41C006D; 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 05/10] event/dpaa: remove single event enqueue and dequeue Date: Thu, 17 Oct 2024 08:38:37 +0200 Message-ID: <20241017063842.848360-6-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: DU2PEPF00028CFC:EE_|DU2PR07MB9450:EE_ X-MS-Office365-Filtering-Correlation-Id: 15595093-391e-4899-bd89-08dcee77a054 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|7416014|82310400026|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: =?utf-8?B?VGVvc2oyQlg2NUVXUmxvc3F2eWovUm8ySXp1dXNuSXVJZy9qZGxHMll1YkhG?= =?utf-8?B?d0ROZ3dPOVpoWGlBcW5yaUhUTXpQYzlCS3JhMkNYbUtlZzh3NmNLcUdNZDgy?= =?utf-8?B?QVVDMWFGMUtEcUttWlFRN1dhejJBMS9YbHBvajFjeDI4R3RpemM3QU5sVFh0?= =?utf-8?B?d0NRbFRmVjRwZUNsam00aWRxSko4TjlyL1hVMmc4cHFjUVo5UnNEckY2c0ly?= =?utf-8?B?RVZSQzByd2RXbGNjUnJ4UEY1eVQ1Qk5oUGJwMzQwMWhXcE42SVUzei9sT3FT?= =?utf-8?B?eG90UGtSdTZxcVViUWJVeE5acGVNbUFZa2tmVWtRTXkyTHFRSjQwd29BcUhr?= =?utf-8?B?TkNweWowZDk5SWRQNzllWGV1bmRJOVVneTdoMHE5cTlxb1JXZXh4ektGZEl6?= =?utf-8?B?VVFHMm11eXdBclMxVWhGbWhBS3U2T09aZWtja29nR1l1YWZNVXFqQnRKNUZM?= =?utf-8?B?VDU4elNLTXZPREt5MGN4SkR1eHJQYnVhQWpSMUNOVjJ1ZXM5SVJ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FdYbHdMSTRMV0tjblZ4TGdu?= =?utf-8?B?aTNlWU1wNkhTTnZhdmJzRlFrMG56OFVFK01hdElGb3RTZGp2c3h2NFpuWWNU?= =?utf-8?B?UFBwdVk2dWtiTDF2VmlqOWE2VUxDbC94bzRtUncyR3QyQkoyMUl1dmh0Zm1p?= =?utf-8?B?UGovWS9IWk5XQlZrMVpIV0xQSzQvRDdYdDJaMU13NnRNT09BYitiL0I2ODhl?= =?utf-8?B?MUhPdHpENEFnY1RyNTlydGw4RG9OS01RNVpVUG1BdlR6UTJQNWNEYzhQS0tJ?= =?utf-8?B?K2hvelk5MTVNMDAyV2J5VGpYRmlhYW1VeUp5VTYxT0lKeVB4akZDVHQ4OVVY?= =?utf-8?B?TjMvRm9QVmpxYUYxNlNzbVBKa2Y2dTdCem43emVCeTIxSDh3NzdJamliOWVM?= =?utf-8?B?QSt2dUQyMnFhRWkxNkxlUUFKTFBTeU9EcEVjSDZPK3I1SHNOZjlFN1N5dGNt?= =?utf-8?B?emN1cUFxaWdBOTJ4RmVPcktEZ0pSSlg5d0JBN1F0NUpMTHc9PQ==?= 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)(376014)(7416014)(82310400026)(1800799024)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2024 06:47:53.7413 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 15595093-391e-4899-bd89-08dcee77a054 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: DU2PEPF00028CFC.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR07MB9450 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