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 7090345A78; Tue, 15 Oct 2024 20:35:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D71044068E; Tue, 15 Oct 2024 20:34:57 +0200 (CEST) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2068.outbound.protection.outlook.com [40.107.105.68]) by mails.dpdk.org (Postfix) with ESMTP id 60B3D4042E for ; Tue, 15 Oct 2024 20:34:46 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pZ2JAIhsQGR0D2kgk/u5dqyhjZFwe6dRXJABMeeDOhbTVJt8phu5qzVSsR6Jz1U5C4pkxT4beWyaTnB49qHcYI55KdvWX0hgx+2FKKSDeoKLIQZ1CKeXIHpHmN03aDhTYpp3Smi/Mwmv/+uUn1+7cpJ45sM15/qVwsyq/Sryl+UerwUHK+Xw1cwM/BB/uzXqJZJjce3t2YP0g0Wll39eBOqQiNEDJFvy1ndMOpOVms1qXSM1YwTK/fuNO+l+BRpTSwCr3kkR3Y0SRECBhdBvzfPtouItt0j5LVknHaBOgQKU3jok7hHZQA9L16uyizPXh8AaTV9NSUiCXmSU4PzIhw== 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=xMM3QLg6mmg/GV1JNKnCr9dgZs9LI9lacFdvqrKcJk0=; b=FYIN7+jHopJZT4V++2uj5eG27ZS3ubo6RSBKfkz6HsSvmAgpnyMcKGDEvztl4KfogbDkohQEA6PFExHf4tUJkG/neVut+HPz8MQTJpi0An/RXD+5GXm0Pl4pUvdgniP/FfsAy5Hp3l36DO2BzMt7pxxu3zPUXPywfwOFBwu8OibkUpN+eKvWILDFnb8HCZHRV6iqCBKRTJ3evoHJ0i+aZ/+OpLBcyUkMZzC8MORs7hxZ11PPTcka/hEHvTzW7dRkdu1BvlIbKhLCygc4y+H3w7gGbRQoC3Brst0yYd+C1YSzS1i5NZAngj/JAnV3VMq79c0oJVqRO24rcPkiqbcZbA== 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=xMM3QLg6mmg/GV1JNKnCr9dgZs9LI9lacFdvqrKcJk0=; b=TSK2yK3Mm6qjypGBPIRpwh22WU1e0BLsDcXlmTPEyQU2TkrnjCVRGmHxN9Uc6FKLu3GhtnW7UfZcHOBwAx0wOhLeOQoG58wNVlmoE7LO8faJDdQ5F6WiB3vhMWbWHRhHHD0If8dKQOgOUXSZQAGT2F4zFpz1xhkdHsjgV1yUamT91336uRCzkeYGyd6rGLa/4iYMrtfknAhxbaV6IH8D4LuO5+Cw+ItEmDcGbYRE+H+v8ek1c5BowQ44hn/aE6waXX9+oS3cYiD+rCeyA95CQw0sZ3t6f22nOL0pCmaGD94hD4qRCICAlN53/dxsimlhY7AQSQlcj9S+rhX5JxjK3A== Received: from DB3PR06CA0004.eurprd06.prod.outlook.com (2603:10a6:8:1::17) by DU0PR07MB8764.eurprd07.prod.outlook.com (2603:10a6:10:310::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 18:34:42 +0000 Received: from DB5PEPF00014B95.eurprd02.prod.outlook.com (2603:10a6:8:1:cafe::fc) by DB3PR06CA0004.outlook.office365.com (2603:10a6:8:1::17) 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:41 +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 DB5PEPF00014B95.mail.protection.outlook.com (10.167.8.233) 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:41 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.67) with Microsoft SMTP Server id 15.2.1544.11; Tue, 15 Oct 2024 20:34:41 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 1220B1C006D; Tue, 15 Oct 2024 20:34:41 +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 05/10] event/sw: remove single event enqueue and dequeue Date: Tue, 15 Oct 2024 20:25:30 +0200 Message-ID: <20241015182535.825098-6-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: DB5PEPF00014B95:EE_|DU0PR07MB8764:EE_ X-MS-Office365-Filtering-Correlation-Id: 5a7f3b23-a36b-47fe-dcac-08dced4808ae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|7416014|82310400026|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?B?SWdOT0ZjM043YVhHS1pqMTk4azdoY3BhS1BNNkxpTHFXTWdtSC85RVhsSGI3?= =?utf-8?B?Ti90N20vcnFSMFVDbEVqQy85ai81aHdHdXdPVnE2dUUzY2FDUlhmWVFRQWNJ?= =?utf-8?B?RmI4dzdGaXdmUm9TSXJ6LzA2aXF1TVNpMUp1MnlQenpYcGFNSHhzV2VaaUc0?= =?utf-8?B?eHIxdlRzdzlNNGc3OSszR3hPNzJ4VWtZT0JRKy9RNFRRVmlVR2VvSk92QUU5?= =?utf-8?B?VCtOZHJkSzJrc0F0QWUzWjF5V1RqL0NBTTRZMUMxN3IwTVdJVDJKZXRTYjND?= =?utf-8?B?OVo0dUhzZUxsa3dTcm53aVdJSEo0RU1zODBUblMrN0ZtOStZcmhFV0pxa2ZH?= =?utf-8?B?YW1EVlBZQVdtQk5MQTZQWS9uQlhFY0FwOWxNbjZJTk9BWDBtLzc5b2JwQkFv?= =?utf-8?B?S3dabkJHeHVPRjB3Z0gwdDM5WG1oYjBoQlYwTHdNUURaYityK1JyRkpodEV4?= =?utf-8?B?RlpGMm1ZLytUUmo0RHZmaXNBTjlpR0ppdmlQUjdCOVRxS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OUc0SCtmRVExTi9UN3Uxd0RkZTE0VllCRkppclNRdVhL?= =?utf-8?B?N3NrZXlHeGZ4cVlPNkN5bWNjNm9JTGw4TlFyelVrZjJUV1lSTW5jTU5OYmpO?= =?utf-8?B?SC9EK0hsTTZ5Mm9XVVl6c2RzWDRZdmxYUmRWWTJ2Sm83cFNDRFhnYkw5SFhL?= =?utf-8?B?L1RxU0k1L2RyWGVWcE9mOGMvUXdUeGh3Sm1RWUM1Tm8waGEzdkNTL0tUamZo?= =?utf-8?B?UU5QQXNQNVhxVjY4dU9TdW5oQWRqSlI0VUx0VFlkVFNaYlM1aUNQTW5HS2dt?= =?utf-8?B?RWJPdUZ5NXB3TDBLY3QvaDIrMW8rZEYwQWYrT1NrRDIwb3dZME5pZWxZa2py?= =?utf-8?B?NDNNdmdQMXhRK2gwRjNzUmJsNzlyaHBYQjg1NDF0OHpaaTlMZVB6M0FhRW9K?= =?utf-8?Q?MJsAaYaE+iFjplG658I/rZnTd4dY+hLVRsESY=3D?= 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)(36860700013)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 18:34:41.8092 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5a7f3b23-a36b-47fe-dcac-08dced4808ae 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: DB5PEPF00014B95.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR07MB8764 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/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