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 2314B45A78; Tue, 15 Oct 2024 20:35:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C2164067B; Tue, 15 Oct 2024 20:34:55 +0200 (CEST) Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2044.outbound.protection.outlook.com [40.107.241.44]) by mails.dpdk.org (Postfix) with ESMTP id C0AF7402ED for ; Tue, 15 Oct 2024 20:34:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oo+hK1xHg549nv7ymZuAsj4RHz1IsV0BhbGNuhFyRbn6ARZ2K5skuSjHS+/GcX/LxGVERGoU8Pc5xPntQelObr4X76ziw3lF+qEEIP1WNf+jktacqyvYJmcS9pVCtgkuFAaPEsfHgt3dnxWUZpTL8gDOkaugUXYOXw3xfxpR1AOulNRbcCviiJ7Tk29sr/63XWdigaqcvvqEvbCGHLyaSnBy3xYv7VmDIXgYwR032pjwxPXdb0Pv5GnXkrebf1xkXtVwby/ItaRLxblpgwUOqKfcG8pwKJbDjjSt1yjxehyFfcIKt8KdAg7tStxq8fI8oLSBXaFeBLPlpDD4v8dukA== 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=C8nzMg1HPNAJA3Ca3Qe/KdgvKWFa5d/ogX6YBgEHMdCKWMbY3gUbbSSZPej9r8NZUjF/8wW7Awssw+9Aj6b9iVa0+/pGt/wfXsqtI7IU0+rsS2FkdSGQRPNudYFXO2IRjMwjfDlY/VHd2lxpsNKyWTX3U+Y7K0TPhWfapOzDndcqikrE43vTH+GM1hGU6PAyYvFa6BrOqQG0r++NN/GIZ6XWp/beMsTb9Le50GN/FUhKOn2wifFOSTYk+9xShbo/SrqkOpLlAUPwNNKD5GW8bu4vR+hshgswm9b73T79cZZOxpRHhuYQtzJm4lr4tBIVcF7ZfWyT/AiCJYcJsMUNNQ== 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=PMPfZyP7vkZGu+GVW1tYCaGU+sHwHLK+XUqqpTVTpenWFUQfVzTxSF5DSV8oL54kF7zQD2G3Y1TD37LcNqrHtVcs82Mz39TEta9DJ48JgrDhE8kktBhynBDp/h9AjIpSP5Y9WhDnFMj+JO1oGRYYO1UwXz+fVkPFFwOhbgqxfZl9DYa5CApCL/D3r0w/6nKwTDnBeW6nbQYUphKkNcJMcuzdnEqbXJR+IWmtujhK/etj2rRgiGQNpGpoxZ9KlXlJKoHL6iv3EzmJ1IZqEyUBcGu1K84JkmKkCH1+PproWbNEVZlaHaCJlRHJd7X2O8AyWiX0GKxkVYBmEjk2srdgCw== Received: from AM7PR03CA0023.eurprd03.prod.outlook.com (2603:10a6:20b:130::33) by AM7PR07MB6408.eurprd07.prod.outlook.com (2603:10a6:20b:138::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 18:34:42 +0000 Received: from AM2PEPF0001C70F.eurprd05.prod.outlook.com (2603:10a6:20b:130:cafe::ae) by AM7PR03CA0023.outlook.office365.com (2603:10a6:20b:130::33) 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 18:34:42 +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 AM2PEPF0001C70F.mail.protection.outlook.com (10.167.16.203) 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 18:34:41 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.63) with Microsoft SMTP Server id 15.2.1544.11; Tue, 15 Oct 2024 20:34:40 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id C0F661C006D; Tue, 15 Oct 2024 20:34:40 +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 v2 01/10] event/dsw: remove single event enqueue and dequeue Date: Tue, 15 Oct 2024 20:25:26 +0200 Message-ID: <20241015182535.825098-2-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241015182535.825098-1-mattias.ronnblom@ericsson.com> References: <20241015084943.823983-2-mattias.ronnblom@ericsson.com> <20241015182535.825098-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: AM2PEPF0001C70F:EE_|AM7PR07MB6408:EE_ X-MS-Office365-Filtering-Correlation-Id: 6169c28e-f397-4908-dba2-08dced480858 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?QkQ1bFozSkZQZXF0bWoxR0phMzBUUThpN1BOaEV0ODdRL1FpY1VIRWRMelZV?= =?utf-8?B?dDl1YUtFc3U5cUg0UkYyakZ1d1V0bnpSUDhMVkdjb3dBaDFMU05ZWitNSnQy?= =?utf-8?B?T2h0VUpvT2pxZk0wSjlnL3gwMHBtMGlwWDBJeC9vcnVwcEVmaEltcy8vaCtj?= =?utf-8?B?YTNKQm12MCtES0RqMWJnSE5oVENCZjV2MXloazFPZ3F3c0ZZcExsR1JvR2Nl?= =?utf-8?B?VUxZei9vTGpuRG8wT1BqdHdiMXFLVUhTaHBteE5yUTA3RlY5S3Vmc0p1TXd2?= =?utf-8?B?c2g5dXpGODFzKzh5Z2FNN0lWUWdZd3BCSkFGRWFheWdQQk80VUF2OW10MHBJ?= =?utf-8?B?TnFGOVhDWmYzTXlxbTJpZ3RXbFVUSTRWYWtlWkdHUXlBRzFKODkvWUIvMndv?= =?utf-8?B?VGVXYTA1aTNQUkFraDJOcXFGbE0vWkpweEdwN0RETXduZURGZlphZUIxdVRS?= =?utf-8?B?TXIvMk1iLzJUUkJRdXIrRjJhR2k2Wk5pTGpy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FNzL3JOb2M1NXl5blFOaG03QWp4aStWSXhhNHNSR2diSDZzVWRD?= =?utf-8?B?Q2s4QzIzUldqV2FIcDA2b2pjL3lmRXVzU0Z4cXJVaVBYS00wU2ZNaWpNUUVx?= =?utf-8?B?dmlYc3JncTM0KzQwT3RlbGNOWnRiZTBUK2dOYTBMMGY2SzVzK3BHT2IxOGhZ?= =?utf-8?B?WkhnUFNadHJxaSt5VTg5aVlFbVhteXNpQksxM2FHcGFISERKajIxNFZ2Z1lR?= =?utf-8?B?R2ZnQUlaVDMwL0lzWVlCYXNUS3dUZm93cE9VcTNhQzROQjF2WWxNSjBSNDJu?= =?utf-8?B?ZGtWc2FGRmpOR1QydkpGbmRmNHlTSXMvcTRBZm1UZ1BReDNJOHBsaE9MVWJt?= =?utf-8?B?bjRXZHFtY245cUdhNHBpOUZyMHlVT3VlckhkWEEvcmlOWWxvdWVmaXpzM2E1?= =?utf-8?B?UWxxR1EySStabThoZmRDdjFMZkV6blRSVEhmeWhWR2ljdXB4WmUyaEE5QVMy?= =?utf-8?Q?c0gOIFAhu1IEN?= 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: 15 Oct 2024 18:34:41.2768 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6169c28e-f397-4908-dba2-08dced480858 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: AM2PEPF0001C70F.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR07MB6408 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