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 4738C45B90; Mon, 21 Oct 2024 11:16:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3925040DDC; Mon, 21 Oct 2024 11:16:45 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2073.outbound.protection.outlook.com [40.107.20.73]) by mails.dpdk.org (Postfix) with ESMTP id 769024066E for ; Mon, 21 Oct 2024 11:16:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Qo9GHm4XgZg3XSEDlmJaoaKZtkopyZQgEbJwfWlMNyEj2UOajh0Y28ANovCKkwTvpkGi0bZwy9vPoqMAdifYJzRVfAUWETniLXArYUyYaRMX8N9xDdRWqCJsLm+Ifop71dDEOmaROZxAGfHKP5yj9dIUwwlTB9FrQJdbKOsd3fhq1XBexHykjyqSbpQ/9mxCODRRRnE1xLBHyA3RKy4oso6VPe/nsWADdjAYsZTmOmA30/ErtvLqkzSg9Xqag8jXMZ3ZuEWf4jhNKisEVKPFJYteYayBlqq5e3Uk6xAne+x0UTAZp2s6QFdXJC3W7KbyX82GIPHoC4XQnTlzfe17tg== 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=i3RzroCv1PXy9Iw2njJiTCxDAQkoa1a86E5Chk1iA09UAX8SL7W6kPHFePvZb6Eq0e4ur+Ifg3OFmBdNE74lOstRoT/X+s0o+dkNdGY/PH9/zMTkUSwfK+NSWrhTHNIBLhCTzWeRCH8/ZHpYEI5KV36bwQZOnGLx0yugJm65KStvWY2Gj+FDxtOo4JjNdLa1knnV5Y5UoK5d127/rXBV1+9/M1E3tGoMD+GrYdnsosuK58z3ajGFHA1GWmugMjLe9WNz8pVpd5UTgAqTR6/y7WwiqpXCNLkuKG/tUS+99smfpE0B8rmeBNUXFZyNFQH9U3y2p1u7XC6UQ4kQU10ATA== 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=Dmk4TxchEzNcsCfnBOWWkzOPKRZo9hY36Gw5k/iEVaPZ8sA0GPl04H1mHEm2Mw5j7luEZg76W1Qp4ackH0qaY+5mXC/HrNIgXEBggUHjJLrqzPBpuoqO+obc/zSGBU8oRXQctUetOtFHI/4N+mTkjt8Gb2/gv2+ohE+erm3v/2kGCdV4PO0lQ26apZfF34dt/a+QQ4XUFDKLciqqvk0oTO8nSNzRMIXoGpp9gDb4MRikR9ox8KrAEwAKEZ1gUlqxNcaoyrEnWDzJU3D4VJ5nnAEImOuQJ1usbJH/WqLh88Ctuo1IuTiq4rF5C4bMLPWzu//BXiaYcRcrzkIiaakUOg== Received: from AS4P189CA0015.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5d7::19) by AS8PR07MB9398.eurprd07.prod.outlook.com (2603:10a6:20b:635::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.21; Mon, 21 Oct 2024 09:16:19 +0000 Received: from AM3PEPF00009B9C.eurprd04.prod.outlook.com (2603:10a6:20b:5d7:cafe::d3) by AS4P189CA0015.outlook.office365.com (2603:10a6:20b:5d7::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28 via Frontend Transport; Mon, 21 Oct 2024 09:16:19 +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 AM3PEPF00009B9C.mail.protection.outlook.com (10.167.16.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.14 via Frontend Transport; Mon, 21 Oct 2024 09:16:19 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.69) with Microsoft SMTP Server id 15.2.1544.11; Mon, 21 Oct 2024 11:15:55 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 88AEF1C008F; Mon, 21 Oct 2024 11:15:55 +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: [PATCH 01/10] event/dsw: remove single event enqueue and dequeue Date: Mon, 21 Oct 2024 11:06:44 +0200 Message-ID: <20241021090653.864237-2-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241021090653.864237-1-mattias.ronnblom@ericsson.com> References: <20241017063842.848360-1-mattias.ronnblom@ericsson.com> <20241021090653.864237-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: AM3PEPF00009B9C:EE_|AS8PR07MB9398:EE_ X-MS-Office365-Filtering-Correlation-Id: f301584a-f513-40fa-f352-08dcf1b10638 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?UXhuTUdrL0JjYUdLSnd0ZjUrSlUxSEhBRzNjaEkvRkhIaS9lY1BVWEpRYnVP?= =?utf-8?B?UFFBYlRvVWtDU2JkMFcyLzJudnRsMU8xaDFXU2lmVW9VUnZsUllESlVCSC9G?= =?utf-8?B?aFVMdlliNG1CRU1MVTdaYmt4bHFWa2RpYlJQR2gwODEwZmluZHBkUHdXMnRV?= =?utf-8?B?dEpkWml1WXRBdWk3NGRMVGp2TXVCbHlrWk45WnlISm5oWGhybnhQYy9uOHI5?= =?utf-8?B?OFVXbEk2MlFoTnAzVkdLTVRnRTd2d28raStQMVdYKzU1QTJZaE9KaHNkUEUw?= =?utf-8?B?amt3NFJaUmhHcy9hSFNoUjFWeHFvQ0lvenpGL1hxTWxVek85UE1IWnZwdHdF?= =?utf-8?B?OXJ4QXMzbkVKb0VaaEZnQWZ4Y3ZDTE1uWlRhT0w2NGZzUG1tWjI2WkZjQUUy?= =?utf-8?B?R0lZdnlERjZERG9UcWJLdWI2TXRpdGhHNFcxdzJVcnZuMWpWSzRNQ01helM2?= =?utf-8?B?YjJLd0VheFB1ck5tVWJrcUdXMlZrbW1hR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VVZS3BzSCtURGZEK1dOaU5sT3dhOE1wMTBOek03WWtK?= =?utf-8?B?dnM0c0ROT1YyOUNPb1hrcWZuZXFjRm53dXhzWElkMG9DdHdNMSthZUxKTndh?= =?utf-8?B?WG0rZ0dUVUJ5NnVUdElKamJIZEtMbE1sQWRyZzlSUHN5L2hJeHEwWFA0WWxL?= =?utf-8?B?bklNdHJhdlJlRlJCeFIzYVlZOUR6SWV2dXBDaFMyRjMyRUNQN2lzNVZBSWhp?= =?utf-8?B?OXh4SnpQSXZBeUN2Z0dBTS9Mby9hUzJnbjdTeVYyZHViTFV3cVU2M3ZsQkVu?= =?utf-8?B?U2dlZlRPWmMyd29uUTh0YmJUalkxaXN3d2FWbFZ3ajdBc0lEdFZTZkJDTUs0?= =?utf-8?B?OWpxQXZDZTZuTi9tb0YrZjBwUzVaRVQycWNreXVWZWJoeXR3RWdydGlSemw2?= =?utf-8?B?dDU0aENwODliUHNCTUIwcmNSUHNPOVQ5NllCa1NBMUliSTkvVmRoZW5wTmJP?= =?utf-8?B?L2RuZ05pRXdNSGdlV1JjdUpJMnk4ampLa3c0UE1oUGFQZkE9PQ==?= 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: 21 Oct 2024 09:16:19.5200 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f301584a-f513-40fa-f352-08dcf1b10638 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: AM3PEPF00009B9C.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB9398 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