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 EAA3C45B42; Tue, 15 Oct 2024 10:59:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6699340678; Tue, 15 Oct 2024 10:58:59 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2055.outbound.protection.outlook.com [40.107.20.55]) by mails.dpdk.org (Postfix) with ESMTP id CB0744027C 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=XUDt2i72xKIgR7LM+go/wEtE5LV+kG5Rep+4jQ3eeKRZGHqEFZ81DI2ilcp5WeIBQXWDyqCTe6qSG2TRwSux919V6o9lDrH1COk//3Ox+ysb2gEMDr7UAGYRyLg0U8jnO+VmfsniQdjJ3y5xSc/6zcrDNSV9Vq+lW9qF0Tr6y4DFzCDfBb43nzRaMLTnChiFrqyvewD2mniKirSiJokSqaSVS2bIaSIQVAjw/7umgJFiq/rPTcNMCoz1zkTHGOKhUoebjNZCD1P3TZmvnUwW2EEr/cohYZfXvIxW89axpa1M3IArMBrmv73DF5GoI5tHG2XylHp5O6ZNC/ScXXPq7Q== 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=xMM3QLg6mmg/GV1JNKnCr9dgZs9LI9lacFdvqrKcJk0=; b=Gp6QUE2FIjybko5IbvGNTfqKCvaDf05ZZIGe4rTJ52SqThX88ptpAsdWwvfjtWnYCD7tebbnRUErW0j9Ytg3uapVh6N07cxGiAgHEG5sPlrIbLDGMG8qKUnY8D5aBgb/+ScShV+C0TyII5R8mrT3kwmo0H/8bx6162TnJDsHPi/ms7vy652RDGdxkXgowBlBtd2tcxQDz/ZOAYxTbdhjiw7HgBfu1v5uqWn5BM22fRfHuuLC6kv+CfLOSQz4h3pcwQZx8FKzl5bAGmjVmh/I6Hr02e+KJ3mKC4YLQXN07sc8zU+owm3NMAvh+eiWEniOa6rocIQzGpPmdYRP8swJlA== 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=xMM3QLg6mmg/GV1JNKnCr9dgZs9LI9lacFdvqrKcJk0=; b=CRvjU6PonB55ilgcT/IZ9GqkaeGFFGMLlAdB+drFp2OrXLcHcvnP/jMzmVijG2hK9s6u5CjloU85rViLVdhF6Cei+g7dF5a+0/GAL9LhJ6W9xKjWkRMb2XyZsYbCiKFFcQtmyJVGPSKaoJIIOxgAkwqFzQdZka4ALjCPljpFMhw4m7J4pcQXV1F93EIUFmQs6SMBTzqFF1ezDdj0Q/xyoxYDNn28kM8wFbv0KibBvfqQke+4Adfo/uf8qbK6b5PFLc6sGZqyzGgSG424JI0inWaJecrQIzZ66cDiNlMVaDBsEJ0ItTHwKoH63pPZN24mPzQVCN4uwOJOT4mf0Qonvg== Received: from DUZPR01CA0328.eurprd01.prod.exchangelabs.com (2603:10a6:10:4ba::13) by PAXPR07MB7904.eurprd07.prod.outlook.com (2603:10a6:102:13e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Tue, 15 Oct 2024 08:58:50 +0000 Received: from DB1PEPF000509FD.eurprd03.prod.outlook.com (2603:10a6:10:4ba:cafe::ca) by DUZPR01CA0328.outlook.office365.com (2603:10a6:10:4ba::13) 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 DB1PEPF000509FD.mail.protection.outlook.com (10.167.242.39) 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:49 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.61) with Microsoft SMTP Server id 15.2.1544.11; Tue, 15 Oct 2024 10:58:48 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id DC1221C006D; 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 05/10] event/sw: remove single event enqueue and dequeue Date: Tue, 15 Oct 2024 10:49:38 +0200 Message-ID: <20241015084943.823983-6-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: DB1PEPF000509FD:EE_|PAXPR07MB7904:EE_ X-MS-Office365-Filtering-Correlation-Id: 4b1fb5fd-5e35-4456-6d80-08dcecf795d2 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?TXBvQ3gwWVZMZVVqNjhKN2N6Znlpblk5TkNjZE1Ia1Y4QjF1VUJyQUd2cGZR?= =?utf-8?B?OXFmSG91WVhYbHRXZ1RockNRYnc5RXNDODRSSW1qTzJXMEF0a0JoRnhoY2pG?= =?utf-8?B?a0VjVlpXMFd5dlRrRldYVmZWQ1RqNzlYM1NFbTJGWkVWeWlaRWZLZnBjL2xU?= =?utf-8?B?dG9JcnVvbVFBbVlRTWtvazBPSFg2WGJ2d1dnMkZoYzVrK3R1R1cwejJ1UmdM?= =?utf-8?B?QWVjbzhldEc2ZWsvRDdRZ1J6cElPNkZrTFAyTEJTVE9KczF2Q056TkpHTFBz?= =?utf-8?B?aENBUzR4NU00VWd4eVVDTDdNZExSbmpNVCtjOGRmYmdvKzhndFF0UVMyTGhO?= =?utf-8?B?a1lHWmF2blV3VVpVZXlJL3V3Yk1Ja0duV3Q1R3QwSU1zYTlCM05sdzBsS0RQ?= =?utf-8?B?cW9KQXRVNUxLem5EUUZtZWM1REZrYjhmd2hVdVBPWU92NHBpUm4yY3VLd1RG?= =?utf-8?B?RXFvNkx0KzBzV0RpSUtvK3YzSU1ZMG5qQ1FFTkNsUVRsdTRSNVU3UFkvK3JL?= =?utf-8?B?d0tWdG1zVDRxMVRmWk8zKzN6TENCb3c0a3Q5Q0FUbTNoNjZWcmsxZFM3S2hV?= =?utf-8?B?dDhRZD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6ODhsc3VE?= =?utf-8?B?K2VocHBwb1RzdTVGSTc0YStzK3dZMFRub2tYNmh5azB1VENaT3VpaWZ6T0xn?= =?utf-8?B?QUhEU25PNnA3aVhwT1VCT2ZSZGhnN25OQ0IzV20zVEgva0RSYjgrODIyK3VV?= =?utf-8?B?YVFRcHdzNlQ3MFJETTA5WWpORDFleXRQYWErZGxQSWhpVDVRSTJkYjhYSDBh?= =?utf-8?B?L0ZuektmazBCNjJISkJ2SktyVG5XUzA5aGI1UmtaZXZYd090cGtwcHQ4dUtW?= =?utf-8?B?cVFJSmdNanlTR2FrWkFUNHAvVzh5b1hhVDR3MmY2VEh1aGl6Q3hQK1ZmL1FF?= =?utf-8?Q?xjS8mNerDX1S80SG9IUz69ivCrLaGeCM6FEqk=3D?= 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:49.3659 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4b1fb5fd-5e35-4456-6d80-08dcecf795d2 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: DB1PEPF000509FD.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR07MB7904 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/sw/sw_evdev.c | 2 -- drivers/event/sw/sw_evdev.h | 2 -- drivers/event/sw/sw_evdev_worker.c | 12 ------------ 3 files changed, 16 deletions(-) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 7913bc547e..3ad82e94ac 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers/event/sw/sw_evdev.c @@ -1081,11 +1081,9 @@ sw_probe(struct rte_vdev_device *vdev) return -EFAULT; } dev->dev_ops = &evdev_sw_ops; - dev->enqueue = sw_event_enqueue; dev->enqueue_burst = sw_event_enqueue_burst; dev->enqueue_new_burst = sw_event_enqueue_burst; dev->enqueue_forward_burst = sw_event_enqueue_burst; - dev->dequeue = sw_event_dequeue; dev->dequeue_burst = sw_event_dequeue_burst; if (rte_eal_process_type() != RTE_PROC_PRIMARY) diff --git a/drivers/event/sw/sw_evdev.h b/drivers/event/sw/sw_evdev.h index c6e649c70a..f617c7d966 100644 --- a/drivers/event/sw/sw_evdev.h +++ b/drivers/event/sw/sw_evdev.h @@ -288,11 +288,9 @@ sw_pmd_priv_const(const struct rte_eventdev *eventdev) return eventdev->data->dev_private; } -uint16_t sw_event_enqueue(void *port, const struct rte_event *ev); uint16_t sw_event_enqueue_burst(void *port, const struct rte_event ev[], uint16_t num); -uint16_t sw_event_dequeue(void *port, struct rte_event *ev, uint64_t wait); uint16_t sw_event_dequeue_burst(void *port, struct rte_event *ev, uint16_t num, uint64_t wait); int32_t sw_event_schedule(struct rte_eventdev *dev); diff --git a/drivers/event/sw/sw_evdev_worker.c b/drivers/event/sw/sw_evdev_worker.c index 063b919c7e..4215726513 100644 --- a/drivers/event/sw/sw_evdev_worker.c +++ b/drivers/event/sw/sw_evdev_worker.c @@ -131,12 +131,6 @@ sw_event_enqueue_burst(void *port, const struct rte_event ev[], uint16_t num) return enq; } -uint16_t -sw_event_enqueue(void *port, const struct rte_event *ev) -{ - return sw_event_enqueue_burst(port, ev, 1); -} - uint16_t sw_event_dequeue_burst(void *port, struct rte_event *ev, uint16_t num, uint64_t wait) @@ -178,9 +172,3 @@ sw_event_dequeue_burst(void *port, struct rte_event *ev, uint16_t num, end: return ndeq; } - -uint16_t -sw_event_dequeue(void *port, struct rte_event *ev, uint64_t wait) -{ - return sw_event_dequeue_burst(port, ev, 1, wait); -} -- 2.43.0