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 057E445B42; Tue, 15 Oct 2024 10:59:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AAB9A4068E; Tue, 15 Oct 2024 10:59:00 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2046.outbound.protection.outlook.com [40.107.22.46]) by mails.dpdk.org (Postfix) with ESMTP id D50A8400D7 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=GglRfl0T93GYUVFzCDJEQK25doxSS4yYUdVHQ4BrCMsnkgoctoSk4zgR8bk2YdVJ+Vl0B3vJo6fRVTZDBpZ3lcRsIsD05tSN9/Mspv0FOAR92nEBhvHMPLPnDLnnGcxFqjD5/+dMCu/5Wd+LUEFu1RtT68tA/b4mmoGueUNSKQWp8qBrprBruRGWpfizi1/8Vbs48KpuO1cSD4E8V+7FcSjiQ/FoS2VRnZxgdV8KCuaDHGwHgtATxEsPZ66ZhfrCWRgH/TO3vfE+OdTb0S8Fz8pc8OKabuTStEDMKZV/MipKKWaFSRbw8PGs6vkrx+F84CmjxTjtyKfMJNKBHiNu6g== 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=NXgZ0rfRJWcMVRTAfDemdAPmOwKBjPA5zMN+6Ec+OnM=; b=XfWenrDbe3E++JFte9kiU2UNt0RfDzMAwrtxUt0V8MgMfTBPc2YDyX/vBkNA6dyE0+jsYTuk2+2y/8qqEwwKeZ9sBLYMnj0ewQJsMbgqV1VGRZnpEtThPtfhasYP8WDFt3cYn98NPfsZuEV8D1+0NoB3cL/KbttKJQlnd8d/OLh48Sy4ksjGUFiab5SI/Kqujr0wju92HrGg8+AbDd1zL5gHW7u52nceRk7rNmIYyyyxoJACsWhdjmfLTRbyNQ/qkL8dWuKtmJaFiM0XV7wl9jcL7aNaJt3Mm/5qJcZjUGHWWb2J8G8xPzkKdRaDlw+ZfH2ffZtmmTA4YetVhaL60g== 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=NXgZ0rfRJWcMVRTAfDemdAPmOwKBjPA5zMN+6Ec+OnM=; b=J+h5Tj9BpqnNit1yqg2iougPLs935WYWtRkmU8WUCH1WCYgOf29q9eHzEsZxvlrulLnq5Rycq5/pakxTgfFGIss7LsNE6vwqyCi4V/sMsjkQkO2f6aI5EVJZkfLu9RrFoFLLcRMSWvH76VBVvd7Vjh5pDtdSyf5LJHvuBTGEc/MQEYdu8Id+rE9ezNL0TNTsc3Ih2XLBRuW51oClbvJI+Jg+LyvkQnawLp6Qu5i28dfVo0JDz1NXH+Y/pN7W+bxZrpFJUC4hOf7/jqVg3F7ka4H+rAo56PGCNDKQeI5hj4rTCCs6x+LHDbyja5Ozhk7UouR3x1+srSXiHEtvIbLB3A== Received: from AS8P251CA0002.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:2f2::15) by PAXPR07MB8371.eurprd07.prod.outlook.com (2603:10a6:102:229::18) 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:49 +0000 Received: from AMS0EPF000001AC.eurprd05.prod.outlook.com (2603:10a6:20b:2f2:cafe::ac) by AS8P251CA0002.outlook.office365.com (2603:10a6:20b:2f2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27 via Frontend Transport; Tue, 15 Oct 2024 08:58:49 +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 AMS0EPF000001AC.mail.protection.outlook.com (10.167.16.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 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.65) 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 A3E1D1C006D; 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 01/10] event/dsw: remove single event enqueue and dequeue Date: Tue, 15 Oct 2024 10:49:34 +0200 Message-ID: <20241015084943.823983-2-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: AMS0EPF000001AC:EE_|PAXPR07MB8371:EE_ X-MS-Office365-Filtering-Correlation-Id: 9c45f01b-febf-4fca-9cb1-08dcecf795a7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?B?b3VDcnZJMUNPaHk4di9qV3BGMTcxcVU1cU43bFV5R1VMZHF5N2pHSU9KME4z?= =?utf-8?B?cnBka2pidnhuL2trd3huVzVGZWdzLytMbzlzWDRLTW4ySFB0S1JzTkZqUWFG?= =?utf-8?B?cEV2czRvTmxCcEcybUNLalFHN25OSVJxdTlHVllubnNTUEIzaGZJdEFvYjJy?= =?utf-8?B?a01GY3lYaWxHbExteWZ0Qk9mUVllRzk0UHJMNmN4bDdkdjJjOEw5L0FFVjRx?= =?utf-8?B?MWNrU3JrZjY0bzRUTzNQcEFvZVdMTlVNWnJwVjZTUjkvaGZ3blhPQlgrTnF3?= =?utf-8?B?MlFMK2djaCs5NDRFMnArUkVCcml6YndtTXdOQVhPd2YreGRKbCtRbmkrUE5x?= =?utf-8?B?bERkT2dhVU9RUVlrUHE2dDlvbC95V3p2YWdMeEo4OGIydWRoNnJsQ0pUSGFP?= =?utf-8?B?N3hjNkI3TlhGVW9sMFYzbTBQcEowZXExa09kSjlmM3hlakdjbmxvbzM2ZlQ5?= =?utf-8?B?dUhCZG5QSjhoVlR0Q3lYL21jUDNXYnVvYVRtdGsxL3p2M3JjcG00M290K3FK?= =?utf-8?B?UjBOTnIzT3QvWXRreFl5SnR5emszbStMaU5sRWpOM1dLMXAvT1huVW5vcDBj?= =?utf-8?B?NlZPbT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1hL?= =?utf-8?B?Vzcwc0w0Zm9rSDRjd05ESEV3cTJpdXBMbzMrSHBBZGJWdTVVNU5GTk1RMFZJ?= =?utf-8?B?WVVRNXQ3b29kLzdobndTUGk0elp1dDJ3RThtQTlIUFpZZkphNlNxdzE1ZW1u?= =?utf-8?B?Vy9TK2FBbEVzN2NtVkV5dzltdjdpcUFkc0hhb3Iwb092T3dCMUF1OE1rQjFs?= =?utf-8?B?MGN1Q1NXUjRHblZtRjNuaUR0NHV0S0xCZ0orZnRBV2tuTTdwRFBQVFc2V29t?= =?utf-8?B?b2hsTFJvd1JxMUFjSWhIbXlSZkVIOUlGd2M2UTlmamYrT3lNQzJreEpyRkxj?= =?utf-8?B?STVVNGtrM1F2U1grZzRrck5xbmZoR3k1RjZJOXpXOWJkRjdoVUJTdVFUSU56?= =?utf-8?Q?Ix80KFfUoU8ba?= 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)(1800799024)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 08:58:49.1009 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9c45f01b-febf-4fca-9cb1-08dcecf795a7 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: AMS0EPF000001AC.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR07MB8371 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/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