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 1B8D245B90; Mon, 21 Oct 2024 11:25:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DCF9640676; Mon, 21 Oct 2024 11:25:24 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2086.outbound.protection.outlook.com [40.107.22.86]) by mails.dpdk.org (Postfix) with ESMTP id 272F840666 for ; Mon, 21 Oct 2024 11:25:20 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qc/qA/o/YS2q6M6TnSvfiyU0gqRROLXIHFBZLTRUEMbxDhzmmliT/C30MZP/zvbZ5+qskiYsNfu5LxjhH4rJuSwjP2KPmgbz93nO7FsQT2R2QvPFf3dVXIHMp1djldZmDUlfV5a/m0txLxoU10spfkuOrz0IV81Gz0hCo2cBLIdtpyDi1efNWms9rMjNtgsU5nXgP8u6E/2CcoGvePQcNCyI6bLw7rc+ZArJltaezhuxySIRgFZsqgQzruNQOD+E7ajPLQGvG/3MI6aW1EEGy+lDk75qDtSpXaFX4B4/S9QUk7ydUNKpo0R1OlZWP31E0ZuvVvfOTjISh+8LeNxv7A== 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=FtHREIRfjKT4RlCd1c0bTBWWdPSGXmr1Oxd9qd1Ku0WxBRhpI7eH8PzFlWh+Hrs53kdxO3vLh0F8gQ6o0XhmsZjCy6qSNV4oK7m0FTAvsKv0pUCQKpGCJxOgDQ0bsOa4Uz681/z2uFcz2+EuX3EZg5dLjRyYSogPZtcOiaB7AoLHINj5d+ff445dmOnlcgxkAAXR2Ey+3Hpt+OWVosUKHtNGG+5zEkfuBYiBqMReTiVsd5dttiC9YKrxbW4cFHqyXwKHeTKolKRSMsGUMV+o6RqhSPNviw1krpRAvBwTnT0kwOnt0zxMRpuycQkH/a2zNqYV2mEM5t3eL7E9DhczLA== 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=pOoPTN6SWz5Gc5dzhzf9NDPXVB1Jpqpr4JI5/2KXCjEOeffuHnNmE4VThOHBPDngxebGF+nhwF0Ilt1ZUkOVu6OyTXF/Kdewj3NhiwJu2n4iP0DrZTebEShOXEb3RW+4ACvlyGwab7fH9dtaiWY/jvVGEC/TknNMasrCjb6pglKCjFc5iulYAp6mM8PJlpCsw/zyd7YleLSVUpwt17XNx7/Le/FLDPWDifoKkj1kOZqbrlH2xQpR2vU4+dheG3s3/qKsxw5eiERp2WiBMQXaPMM52DxQYInJHpOyrZBcE69xsqTnbBwwiN39tcIsxFX5uMn5NqtucAwv6EWJXwO11g== Received: from AM4PR07CA0022.eurprd07.prod.outlook.com (2603:10a6:205:1::35) by DU2PR07MB8319.eurprd07.prod.outlook.com (2603:10a6:10:27c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 21 Oct 2024 09:25:15 +0000 Received: from AMS0EPF00000190.eurprd05.prod.outlook.com (2603:10a6:205:1:cafe::59) by AM4PR07CA0022.outlook.office365.com (2603:10a6:205:1::35) 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:25:15 +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 AMS0EPF00000190.mail.protection.outlook.com (10.167.16.213) 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:25:14 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.60) with Microsoft SMTP Server id 15.2.1544.11; Mon, 21 Oct 2024 11:25:14 +0200 Received: from breslau.. (unknown [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id CFFD31C0081; Mon, 21 Oct 2024 11:00:21 +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 10:51:06 +0200 Message-ID: <20241021085115.864114-2-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241021085115.864114-1-mattias.ronnblom@ericsson.com> References: <20241017063842.848360-1-mattias.ronnblom@ericsson.com> <20241021085115.864114-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: AMS0EPF00000190:EE_|DU2PR07MB8319:EE_ X-MS-Office365-Filtering-Correlation-Id: 3bfa79db-a582-4355-ade7-08dcf1b2454d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|1800799024|36860700013|7416014|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?a3lHWHdYY2kzRGliN2RjeWZvNDhtQlBHMTBkVXYxN3k2QXZ3LzNvanFJc0tn?= =?utf-8?B?OVlueTV5RWxYV1Vyc1k3aXZYOVBmUnY1eENPOFViNVdEL1lNbklPSWpONXhE?= =?utf-8?B?eHJZcVg0eVdFQVB3UVdINzlBRXpRY0pLNGcrdmpRbFhNTHM1VWZ1bHlZQkpq?= =?utf-8?B?N1BYNzN5d0JEZGdxSlZEbHR2Y0pwVGdtRHV2QVBPODM0WmxOeXdFTm1GVWI2?= =?utf-8?B?Mjk5N3ZZZ0JmeS9WckJKWEtkNmY5clBLbGhCUjRITE5FaTNleWRRYzRENy9M?= =?utf-8?B?Zm96eVNLRVJDQUlhM2FTQjBFVlRtUzdOMnFHUElFbm45OXpVT3ZXY3F1Q1Jk?= =?utf-8?B?Q2puSVFtRkR3Nlk1c1pTWjhNbDdVQ2Q0SXBUUTdIbVE5TDMzU0Z0NFlsWVN6?= =?utf-8?B?ZWYxSXBTZGs0bjFRUUcrRFcrY2cyRG9OV3lMWmh1bkhQVWJlZWdlNjVjaTlq?= =?utf-8?B?WTVpaU5YNTc0TjFKSWh0bFlpdnNLT2lzTWNtUFRwRHZHNGVtcjQ4eDB4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NS0IzeDlkc3NsZ1hK?= =?utf-8?B?ckZGZ3QwU0hBME5aRTZRaHJQcVptK2VKYUMwUVpLc2N6N25RMDUyZy9Walpt?= =?utf-8?B?ZXE0WjlQTk13VmtCOWZuWnZnNEl2U0ZuN21BQnRIZklDQTd0VmY3NjZxWmUx?= =?utf-8?B?QU9XNEF5b1FwMXRSRCtYRS9pL1k1c2RlN2EvMitsM0cva2cxQWwxWGViaC9Y?= =?utf-8?B?ZGswOUZjL0ZzS3lPT2w2WEI2UWdpU3ArQTg1c3FQaFdoL0E4ZlRveGdUaVFh?= =?utf-8?B?cjJRelg5dVYzQ2I4UnA3bVl5UEFvSlNmb0JnVzl0Z2hoUkNheVJTOFI1eUdQ?= =?utf-8?B?K2ZqeWFjZG5qNUcxUFZFVzFBUjBHNDhIa0NXdUdack8ySVVDc3pueTZlSnVz?= =?utf-8?B?K0I1bkU2UmJsbnRJNDA5Z29GRjFxZStGeHFYekhNZEpHbERBTlRwMStUdGFv?= =?utf-8?B?YmFZOGU5Mml0dUUrdkVWeVRMY21Edmgva3hqL1VFZk85dWc9PQ==?= 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)(82310400026)(1800799024)(36860700013)(7416014)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 09:25:14.8334 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3bfa79db-a582-4355-ade7-08dcf1b2454d 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: AMS0EPF00000190.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR07MB8319 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