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 7642045B5A; Thu, 17 Oct 2024 08:48:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E67614042E; Thu, 17 Oct 2024 08:48:00 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2044.outbound.protection.outlook.com [40.107.20.44]) by mails.dpdk.org (Postfix) with ESMTP id 3F6A3402DB for ; Thu, 17 Oct 2024 08:47:56 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Rl1TQkpRpRurbjsi/GczODRDGR18ZX2+vY6jwcIHpeynbIkEMQfxNvLVpfJAlDqrdrhZHftT8QRyBJqKWZI32U+A2UoEVpbMMP0pHc4dXDD5JmphpqtsUEfQ7pjNi6bUsgqWI2IzktrIWmwMCCHzfajkzyrbmjwWxGM/YbqzqRn2DsMwEpoUC/DEan3EvjNh7ryQWtviSPJogjeuHA+HXHnwBKvvDJAg+cwn4jDr3WQVvdD9XzluOfJEbK+zrEhRevcN29441JqfEnkh+v+EbE3WNIl7esaEKAQx1OZh6uDHzsFwwyPXvhJHXHxadSQH9a+UJk2MeQDEWIqtQlVlmA== 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=FYf2PR09KnPdOYKPdQhyhxh2aiFjAF0dgMdDUuREWvo=; b=mLbCQBEaO19mLumQdFGAfzkUj3XiLxvRJruJfgPpas8PdEuGYCLRYKvPE6Cus3ydS+IBcZtlEpDhIK3a/pIA/KCKYQFuN6Ih3kMSpJ60tDFNXw3RArGASxjcalbdj4PSPuRLGM8UoSCDaPiULyjS1SAqWonGET2Mm/fnXSySKVS9SLGXHBgpndVhtnvw28TmafGEMBKiLjZ2bFR1AJ9kvf/mdU3jCsJReu8eN9reKDsAiKAgRyKO5yu0WiCISbC0zf45C7s+1ft3F5TNJmUtZbHEqTwPIP3cg4fSUpj1hSujrfY+TyVOgzzGynhEQw/lViu3DxLF0LXYbq9OqZbXSA== 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=FYf2PR09KnPdOYKPdQhyhxh2aiFjAF0dgMdDUuREWvo=; b=EAuVal355OVXGeIUWScMEIR5Lx4ZciWTZlvH/TKqz9LK4tPHEnCJ7kRiAifVPIPoOeD/RvDs9pNWGafYdjYeGKOd0vkNZ6lhKBVL+uT/A6bWOG2uqyRgIpaeW6dQ8m0XR73CTtZLlyfyjz2bYQx9Vv+Yi2mRYWFE380eeyWNxMKu89JzJ87ozGowZjDAtw1HTpdBckp3j0h6+LcAPzZj2s1VFYzSCCMSxh290uQhZmHrlaYDh/tgI5ZQoeB+hngf4SA8kD+LyooOOAxUOIwJXeYjmlUNU0hdDMJEFgxjPci6Kzi8hO9mnCXJnQOzJMj+zTyWCcguqawvmEJTmzUfBg== Received: from AS8PR04CA0113.eurprd04.prod.outlook.com (2603:10a6:20b:31e::28) by DU4PR07MB10159.eurprd07.prod.outlook.com (2603:10a6:10:585::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.20; Thu, 17 Oct 2024 06:47:52 +0000 Received: from AMS0EPF000001B1.eurprd05.prod.outlook.com (2603:10a6:20b:31e:cafe::ac) by AS8PR04CA0113.outlook.office365.com (2603:10a6:20b:31e::28) 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:52 +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 AMS0EPF000001B1.mail.protection.outlook.com (10.167.16.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Thu, 17 Oct 2024 06:47:52 +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; 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 868DE1C006D; 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 01/10] event/dsw: remove single event enqueue and dequeue Date: Thu, 17 Oct 2024 08:38:33 +0200 Message-ID: <20241017063842.848360-2-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: AMS0EPF000001B1:EE_|DU4PR07MB10159:EE_ X-MS-Office365-Filtering-Correlation-Id: 6f455159-9a5c-40a1-767a-08dcee779f4c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|7416014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?B?cHNsYmhXQmxQTlBrcnBjZW1HMVhLakliUUtEbnNFN1BvenJKK3RvTk5SamlS?= =?utf-8?B?VFVNdFg2aGlBQTZOUytiWnNuT0hJVFBuOSt4YUEvWU5xemRud1pwRVEvNU5L?= =?utf-8?B?cXdKMFJsKzkwTVIyZFQ3WGJ3ck1mQS8wVDlzVzVQM210T3FMdWR4WDR2em8y?= =?utf-8?B?ZTlHbHNGb2Y1NFBFMytwMmJwM3NKTit5dnE0dUhhb2tjd0ZHZXptSHBKaFhM?= =?utf-8?B?bUJIRUZ3dEF1Rm9qNm1QQ3NJbDB1UnZGK3NyNS9admRGalI2ckNPU0dBT2s0?= =?utf-8?B?NCtjOVhNTWZMWHE3NFJMZEwvVVRMenhLSHo4djF3WVJBZFRuU3p4NEVGU1Z0?= =?utf-8?B?dCtVeXB5Y3ovN3N4U01henVpdHB0aTNvcmlzZC9OODhRWVR6a0JrMlN2Q2ZW?= =?utf-8?B?SWtxRVZEc3h1RGVPS0pvRjNsaXFMdFFPcEtiaTA2YTM2ZEpCeHY2VXU5bXJT?= =?utf-8?B?M3ZXVjk4aFhCaURyVmdOclZUSGZwbUhLUDljMDJMb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YwL1ZUOGhFaFhKTXZrallYSkFWcS9r?= =?utf-8?B?Rjh3dkQwL3c1YTJIaHM3T2hhTVJ5M0xxMEx0Qzc3WHdnM08xUnFRL254REQ5?= =?utf-8?B?NGtOOXBEUVBkVTBnRUhUajBWSkFQVEZYZVVXbDRFSXZhYVp5SCtWalNyUDhQ?= =?utf-8?B?UndoNUdJQzNMVTEzU3B5WWFWZUQ4cis2U2dCL3FrZ2h4NmRSQlRMNTUwVTVV?= =?utf-8?B?cEhlZ2R0aHprSm1RdVZZU3JuK2lwR2lxM005a1R5OGlzU3hrMElyditoWUJU?= =?utf-8?B?QUNFSndLRXdmK3piU21FR0Z3NVZYTHJDcUE1b3JuRkF5cmxVR3EyTmVnR2h4?= =?utf-8?B?TjBlV3dlWi8xcUtPcDU4V1hCS3o4T3JUZ1lxaEpBOGpMM05tVlN4NEJhb3NE?= =?utf-8?B?YUFYOC9jRmo4aDQyb1BhNmtkb3RZQnhVVDZNM1B4T09NWkhydy9uU3QzUmJu?= =?utf-8?B?N0NrYXBwNGo3SUF5S1k3N3FBYXpiSDJ6aGtoSWs1bTZrOUE9PQ==?= 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)(1800799024)(376014)(7416014)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2024 06:47:52.0406 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6f455159-9a5c-40a1-767a-08dcee779f4c 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: AMS0EPF000001B1.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR07MB10159 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/dsw/dsw_evdev.c | 2 -- drivers/event/dsw/dsw_evdev.h | 2 -- drivers/event/dsw/dsw_event.c | 12 ------------ 3 files changed, 16 deletions(-) diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c index 1df3121b21..e819412639 100644 --- a/drivers/event/dsw/dsw_evdev.c +++ b/drivers/event/dsw/dsw_evdev.c @@ -453,11 +453,9 @@ dsw_probe(struct rte_vdev_device *vdev) return -EFAULT; dev->dev_ops = &dsw_evdev_ops; - dev->enqueue = dsw_event_enqueue; dev->enqueue_burst = dsw_event_enqueue_burst; dev->enqueue_new_burst = dsw_event_enqueue_new_burst; dev->enqueue_forward_burst = dsw_event_enqueue_forward_burst; - dev->dequeue = dsw_event_dequeue; dev->dequeue_burst = dsw_event_dequeue_burst; dev->maintain = dsw_event_maintain; diff --git a/drivers/event/dsw/dsw_evdev.h b/drivers/event/dsw/dsw_evdev.h index e05cee0e6a..ce52498435 100644 --- a/drivers/event/dsw/dsw_evdev.h +++ b/drivers/event/dsw/dsw_evdev.h @@ -270,7 +270,6 @@ struct __rte_aligned(4) dsw_ctl_msg { struct dsw_queue_flow qfs[DSW_MAX_FLOWS_PER_MIGRATION]; }; -uint16_t dsw_event_enqueue(void *port, const struct rte_event *event); uint16_t dsw_event_enqueue_burst(void *port, const struct rte_event events[], uint16_t events_len); @@ -281,7 +280,6 @@ uint16_t dsw_event_enqueue_forward_burst(void *port, const struct rte_event events[], uint16_t events_len); -uint16_t dsw_event_dequeue(void *port, struct rte_event *ev, uint64_t wait); uint16_t dsw_event_dequeue_burst(void *port, struct rte_event *events, uint16_t num, uint64_t wait); void dsw_event_maintain(void *port, int op); diff --git a/drivers/event/dsw/dsw_event.c b/drivers/event/dsw/dsw_event.c index 6eeeb6da93..e68fb19890 100644 --- a/drivers/event/dsw/dsw_event.c +++ b/drivers/event/dsw/dsw_event.c @@ -1323,12 +1323,6 @@ dsw_port_flush_out_buffers(struct dsw_evdev *dsw, struct dsw_port *source_port) dsw_port_transmit_buffered(dsw, source_port, dest_port_id); } -uint16_t -dsw_event_enqueue(void *port, const struct rte_event *ev) -{ - return dsw_event_enqueue_burst(port, ev, unlikely(ev == NULL) ? 0 : 1); -} - static __rte_always_inline uint16_t dsw_event_enqueue_burst_generic(struct dsw_port *source_port, const struct rte_event events[], @@ -1462,12 +1456,6 @@ dsw_event_enqueue_forward_burst(void *port, const struct rte_event events[], events_len, 0); } -uint16_t -dsw_event_dequeue(void *port, struct rte_event *events, uint64_t wait) -{ - return dsw_event_dequeue_burst(port, events, 1, wait); -} - static void dsw_port_record_seen_events(struct dsw_port *port, struct rte_event *events, uint16_t num) -- 2.43.0