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 64A6245B90; Mon, 21 Oct 2024 11:10:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 54E7A4064C; Mon, 21 Oct 2024 11:10:27 +0200 (CEST) Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2069.outbound.protection.outlook.com [40.107.247.69]) by mails.dpdk.org (Postfix) with ESMTP id ECFB5402E6 for ; Mon, 21 Oct 2024 11:10:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XbOnBFI3EqKw2Vv0u4uqWoJQKFWQeQl5FCeMEvl+PLlOYT75WjvbdkmE8VBxKhBT4qS2QqZvmCkFcD29YrjLkRyrRJTJViwb0+ByyyJ/v/DdSYbcQAZko37qExKJ41ADOq+2XHWwZyAxY4xp7alTsj49ND0W44KvhQK6idJWGdP5v4c8OSQTw0KEg2ljN5p/N5nu+MdqfCVMUMYJPysdp3tP2aa/0cM/33GXDfzQMiYAQEatJRryNYLc3B5KDoemzPouMlPM79TMnVMgnQfEa3cndJLuhLEb2j31WEAVko29OtVLQcdrkFCazLDCDh8W8sTG/zjVPI7m7QzWBQkl6w== 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=2BoJqqotCOVYL73dQJVkBtCYy+faaKdte/wW78b2WE0=; b=Xu/Geh61GvfQbyv6v+hBlZbF2EMK44kotpHCLO8QZ5hvUAJ9FZl83iypeZFCBvfny+FSZOR/WHBgoOqeg3uXsuoM7/TA4sS6dKxz/KH7u+MqKXy37YYd8eUrVSSMKXSbXh4gq1QHino4hgUjm4NEAEqDnpgP3lKAmAYyq7gGNw59lnaACCVLoUhmpXeA/H3m0dYut2Bcg6xBDbke8NoQwAoG+tG0sUdwDVmHCxRIcmiXqafzOZtmmusPMSc5jNensZP3HXCdrlwgKtfCttMq6YB/7yjaYNXxQ34ldOelGNej4Eq8ixJ0t+u5nFRq6kBf/fEbykQwqjicE2wq3e64Kg== 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=2BoJqqotCOVYL73dQJVkBtCYy+faaKdte/wW78b2WE0=; b=ZV7qR0V/+1Bx71oSd98JBUL5M56sP1URV0r440NTAZtA+bsfpvL1i3KbWovlUBHTI7kB5qboVweOxwDaPDaZo2S/9WbHRtGC31gMO4NO7dCjwOYa6UfY8w8BRNoWJUx0AlR+mTma45FAL2vMYj/UK6ReFjqM23+pPn7hOaZLwWY6jb2uXDhEHUNNUaQ9QDg69zD/dvo2ds6IB6Pnvvo+WKyG7Fh9P4lprr36vXlEz5144BzffvZoi0lJIo72XkXGdgIPbJLSsW9sRIsJ3mujcW8MR+CgUVtPRxGnaCjeUgf33f/g6uKCG7p23aNgw+4t2rSDqA/8zUaxlKaVRVdJCA== Received: from MW4PR03CA0243.namprd03.prod.outlook.com (2603:10b6:303:b4::8) by AS8PR07MB7477.eurprd07.prod.outlook.com (2603:10a6:20b:28b::24) 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:10:19 +0000 Received: from AMS0EPF000001B6.eurprd05.prod.outlook.com (2603:10b6:303:b4:cafe::59) by MW4PR03CA0243.outlook.office365.com (2603:10b6:303:b4::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.29 via Frontend Transport; Mon, 21 Oct 2024 09:10:18 +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 AMS0EPF000001B6.mail.protection.outlook.com (10.167.16.170) 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:10:18 +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:10:14 +0200 Received: from breslau.. (unknown [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 0F6161C0079; Mon, 21 Oct 2024 11:00:22 +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 04/10] event/sw: remove single event enqueue and dequeue Date: Mon, 21 Oct 2024 10:51:09 +0200 Message-ID: <20241021085115.864114-5-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: AMS0EPF000001B6:EE_|AS8PR07MB7477:EE_ X-MS-Office365-Filtering-Correlation-Id: 5b718527-2602-40e6-75c4-08dcf1b02ec4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|36860700013|7416014|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?B?Um9LRWV1WlcxRmZEUTBOQU8vTGVQOUJHbXBtem1raHNmaGZtbHVZdEJCcnVH?= =?utf-8?B?cjREemVZOG1ZSWJxSnBtV0JwaGNBM0NNa0c1ZWxFa05haVM2b2JueDVPM0Qz?= =?utf-8?B?R0VsODhmS1ZDYWRoSVJEWDZPMkhzMlFnNVVDQ1hqaDRTaGNSbmZ6M0s3bDBB?= =?utf-8?B?YTBWSGlOVkVLRWUxdWhSeTdXa3VsNkgvY29XT3lGQlZZd2VVaCtYT3ZQWEd5?= =?utf-8?B?aE1EejJZK1c3YVRnY3ZnZk5UQ2lWSHAwd2h6TVkwL3dTQzdPWjlMRTM0c093?= =?utf-8?B?R1RqSmdMSHRRWUdSekNuRDNldEdYK0F1dU9mNy93UFNwUmdDQTA3dDZvUkw3?= =?utf-8?B?Vm93c1JReU9WbGswODBiS3pwVmRQRDQwRXJEVy9tbUI3L3YzVEZKdkhLbXZO?= =?utf-8?B?YnBGUG5CWVdwSWhHVnBSTHk4ald1L1doQ25NMHhGYUVEQ2lkUXZId3NQUE1N?= =?utf-8?B?N1VydERpd0g3WGd0cFZWbXhaRk1CNUYvNlkxSzNzOXc4U29OVXFoNE1xMzFj?= =?utf-8?B?RW83d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T3pq?= =?utf-8?B?OERhYXNoSmpTS3pwOG0wUWk4V25TUTNWWjg1QzVzalBqRUhHNmY2K3hNZWJP?= =?utf-8?B?djE4eVFUMG5JcVlWdUtpNXd1dGRSSkVvRVptSUt3b2NWTXIrTkorOXpGRkY2?= =?utf-8?B?N09xbEJTNCt3K20vNmhwVXY3RFVkY1RVMlBaamVGNlRzbi9IMSs5QVdzN0lz?= =?utf-8?B?czF0L0hCM2FzSVQ4V3FSVGE0R2FBVmt4MXB5RlBQSDcxOC8wN3ZxZ2VHL3JT?= =?utf-8?B?ekNwN1hYUWdOb3k5TzFPZXJucVBZMXV3SGQwNVQ3VmxIa2JwUHVqQ212d1o4?= =?utf-8?B?b01ac1NhWjIySHJTcFpLeE80dHdoZ2RnMjhLSVRZd2MyWmkyQW5DTnZQYW1x?= =?utf-8?B?SzQxRzVEdUVUK0JOVDJOWnpmK1NQYVJGU1ZpYkZaeHBFMm10K0pnOEUyWFdB?= =?utf-8?B?NVNmTDFUaW4zZVZEa29Dcnc0UTloSk9VSExCamwvODIwbGc9PQ==?= 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)(36860700013)(7416014)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 09:10:18.0464 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5b718527-2602-40e6-75c4-08dcf1b02ec4 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: AMS0EPF000001B6.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7477 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/sw/sw_evdev.c | 2 -- drivers/event/sw/sw_evdev.h | 2 -- drivers/event/sw/sw_evdev_worker.c | 12 ------------ 3 files changed, 16 deletions(-) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 7913bc547e..3ad82e94ac 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers/event/sw/sw_evdev.c @@ -1081,11 +1081,9 @@ sw_probe(struct rte_vdev_device *vdev) return -EFAULT; } dev->dev_ops = &evdev_sw_ops; - dev->enqueue = sw_event_enqueue; dev->enqueue_burst = sw_event_enqueue_burst; dev->enqueue_new_burst = sw_event_enqueue_burst; dev->enqueue_forward_burst = sw_event_enqueue_burst; - dev->dequeue = sw_event_dequeue; dev->dequeue_burst = sw_event_dequeue_burst; if (rte_eal_process_type() != RTE_PROC_PRIMARY) diff --git a/drivers/event/sw/sw_evdev.h b/drivers/event/sw/sw_evdev.h index c6e649c70a..f617c7d966 100644 --- a/drivers/event/sw/sw_evdev.h +++ b/drivers/event/sw/sw_evdev.h @@ -288,11 +288,9 @@ sw_pmd_priv_const(const struct rte_eventdev *eventdev) return eventdev->data->dev_private; } -uint16_t sw_event_enqueue(void *port, const struct rte_event *ev); uint16_t sw_event_enqueue_burst(void *port, const struct rte_event ev[], uint16_t num); -uint16_t sw_event_dequeue(void *port, struct rte_event *ev, uint64_t wait); uint16_t sw_event_dequeue_burst(void *port, struct rte_event *ev, uint16_t num, uint64_t wait); int32_t sw_event_schedule(struct rte_eventdev *dev); diff --git a/drivers/event/sw/sw_evdev_worker.c b/drivers/event/sw/sw_evdev_worker.c index 063b919c7e..4215726513 100644 --- a/drivers/event/sw/sw_evdev_worker.c +++ b/drivers/event/sw/sw_evdev_worker.c @@ -131,12 +131,6 @@ sw_event_enqueue_burst(void *port, const struct rte_event ev[], uint16_t num) return enq; } -uint16_t -sw_event_enqueue(void *port, const struct rte_event *ev) -{ - return sw_event_enqueue_burst(port, ev, 1); -} - uint16_t sw_event_dequeue_burst(void *port, struct rte_event *ev, uint16_t num, uint64_t wait) @@ -178,9 +172,3 @@ sw_event_dequeue_burst(void *port, struct rte_event *ev, uint16_t num, end: return ndeq; } - -uint16_t -sw_event_dequeue(void *port, struct rte_event *ev, uint64_t wait) -{ - return sw_event_dequeue_burst(port, ev, 1, wait); -} -- 2.43.0