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 AFE6545B42; Tue, 15 Oct 2024 10:59:05 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D1E540659; Tue, 15 Oct 2024 10:58:56 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2060.outbound.protection.outlook.com [40.107.21.60]) by mails.dpdk.org (Postfix) with ESMTP id 8E9F0400D7 for ; Tue, 15 Oct 2024 10:58:52 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZYNjogq+JYLIfpP5i+dn/MQeZZ2VSpHXz7DZ9Qb7P5awuAvmb8HjwfMaFg0mxj4cdEBSOIPrgDRcg9QCBDeJh7gsCftDhmJkygtRp+qXvtx8chGDz0qqyz4p8DSbUJO4mCcR/LVpglHm6E7ybeUpwoagCxNAGBUYz2LnLh5QpTSaZA4BGGsCwLIsMqNk91dkiQe6tdCdh62zlSUOveCNpf2GrPTzj98Sez3SaDg2F6PAZ0ANEUrumBxqjzpZaq4YD1YUTqWzgEy8c7DOKxysJvQ+jXxbSY/BbJOUEAlyJfm9biRhJhtWaegh5gjwuY0RkRG5n9BXPCnwDF8xmxg6lg== 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=hTDldo6zt5HoRsnMVvW4k3J/78iE9ba0b2iZF1qVirR0eZsbM1ZCbwd2qFUdllmVTqdaYMM8Ze+4s7s3Ig2oshxFXua7qKPng2XdWydYbupaCZq9Ua5fmeTGEihp+anHFXaAKCljMRsCsAHfI9slbQuG0BIfd8KyahO8Op8Sw8AZUbtPUMzNgL7Fr3K6S8/RuO1PmMrG23v26ixGiigJlrjvfC4loSg4nyVW58JflfjZ9Q5cdoBPJTdpy0ig6Gx/0ikEtCZ81N6GJxUajwucbS6vakkDdTFULOYjOXY1Xlpq/Vl5f/B8NKAU4tCxS0+mor5huhlseOCYGTVOTZj1aw== 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=EiOjoQ78JQHZsOHOmH24uDBo8Yp+tLUE7u8DEjnRRh49MwOK1jNgeGFG3oB4DRk5F0/+d6eO4t0lBfPRkaiwzaltfvQ+FKxC3ySJQ5/l24qt5D/zZu2Y6zbEzOn6evtBwtjHgf02HzQphIvNj6WP587EU72CJS3LFGMIXItcrtIj49++kTxE84v53u+wlOK/RGgwafHDfBzBbpNKGBjPJczifw3PaNmJd7kXEd2YntcdUgrfS5TGuuJmMq0EHl0/a3www+GeluM8k1WSdYgcJBtZClqXHcLFN7w+QWoioC8IL+CKUCpLS2ofySuIbl63GLo2Qe7fHeMvVwCvhWpBFg== Received: from DUZPR01CA0296.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b7::25) by AM9PR07MB7281.eurprd07.prod.outlook.com (2603:10a6:20b:2c4::8) 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 08:58:51 +0000 Received: from DB5PEPF00014B8B.eurprd02.prod.outlook.com (2603:10a6:10:4b7:cafe::e6) by DUZPR01CA0296.outlook.office365.com (2603:10a6:10:4b7::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17 via Frontend Transport; Tue, 15 Oct 2024 08:58:50 +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 DB5PEPF00014B8B.mail.protection.outlook.com (10.167.8.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17 via Frontend Transport; Tue, 15 Oct 2024 08:58:50 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.64) with Microsoft SMTP Server id 15.2.1544.11; Tue, 15 Oct 2024 10:58:49 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id E8D4E1C0070; Tue, 15 Oct 2024 10:58:48 +0200 (CEST) From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= To: Jerin Jacob CC: , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= , David Marchand , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Subject: [RFC 06/10] event/dpaa: remove single event enqueue and dequeue Date: Tue, 15 Oct 2024 10:49:39 +0200 Message-ID: <20241015084943.823983-7-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241015084943.823983-1-mattias.ronnblom@ericsson.com> References: <20241015084943.823983-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: DB5PEPF00014B8B:EE_|AM9PR07MB7281:EE_ X-MS-Office365-Filtering-Correlation-Id: 4bc7a2e7-1e9c-4bd4-e745-08dcecf796b0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|36860700013|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?B?UHRJQ0ZpU3ZCNzEzOEVoQnp3aTAyV2tURHB5Q2drbS84M0xrZ0ZGU2YvVkVw?= =?utf-8?B?NGxiUHprV1BrUFBzOVQ0OXFGK2dHQ2N2UmNXK3hNdDhheXV1QW9pUFV3MEJ6?= =?utf-8?B?Vkhjbm5KQmVjMGtZSUZPVVdpamJpa3JCZmRoRVpBYy8weUJKMTlSU2Z0UmV5?= =?utf-8?B?aWtXTFpoTHNKQWRIenJ1RlVvSmIxRmErLzlrZGF4akU5dkR2UFBiMitqTFpO?= =?utf-8?B?MEhoRlFDdUhkZWNlcVV5VVk4NHBSNFNuTFVEWE01OHlVWDEwZG5lamVUR2ZY?= =?utf-8?B?TWdtd1FsSXJqMjN0RmpKcDZJK3NtOURDMUNPWTBUMnBSSzlnQ3JBZ1BPYU5J?= =?utf-8?B?S1JnVU16dkdnYk5yR0YyVDZkdGNabXQrNUZJT2lGaUdvNEpXaEo4MWdHVTlO?= =?utf-8?B?bWcrRHdxYXE4MEt2eWF1dytCNXYybDB0VkcvcUxRLzI3ajV4RklWM25GRGsr?= =?utf-8?B?cDBML1o3U2FvWUUxQ3JkaERTOGN4UlhIUHJ2NUZLd0xQNEFpU3ZWMC91QmVI?= =?utf-8?B?SnpsQ1czaTlRd29EejJqR0tKR2pmUUZidS8yTEI3VEhJWFAyc0QyK3hNeXlK?= =?ut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hGZE13dXlqVlJl?= =?utf-8?B?R3NVUkdhZ0tseWR1dTdhUTZRT0FseTZNekxGSFAreE9va2NjTnJjcCtNdG52?= =?utf-8?B?ZEpRWFFoV0M3UUxXdkx0Y243bDBKOHhWUzhyM3c4U2xEaGxEMDgwcTJEYUJ2?= =?utf-8?B?M1hnUURoZWtRR0t4d0s0UHZmTE1vb1VEVTZTSmZkbW44WkkrRVpjYitBMUNO?= =?utf-8?B?eXZ2eGZ6bmIyQXlybmpIcGt3bWdpeUJCUXJWL1RuYkhkZncwdjR3a1BzY1d1?= =?utf-8?B?T3NXZng5U2IwZzI3MGRLQUQvR2V3bTQySVJMN3J6QUlHU0VESVdRaFo5SUtG?= =?utf-8?B?N0l4Y1JyMWtZTUNGVXJWZm9BNTF5TnNMZW5taThzOGs4Y0UzaVliR1ZlQmg3?= =?utf-8?Q?bW51MhRZmMMKS?= 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)(36860700013)(82310400026)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 08:58:50.8239 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4bc7a2e7-1e9c-4bd4-e745-08dcecf796b0 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: DB5PEPF00014B8B.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR07MB7281 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