From patchwork Thu Oct 17 06:38:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Mattias_R=C3=B6nnblom?= X-Patchwork-Id: 146143 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8E81F45B5A; Thu, 17 Oct 2024 08:48:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7EBD540650; Thu, 17 Oct 2024 08:48:02 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2051.outbound.protection.outlook.com [40.107.20.51]) by mails.dpdk.org (Postfix) with ESMTP id 02DA0402DB for ; Thu, 17 Oct 2024 08:47:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pICkSdhup8cRbfFGdn+iKMPkQZ4lw8JqcTNw/O6yJYQrfmfsWx0IwbmsDM7n36DjXuxn60nXZviBptxxQaV8qmPH2IiC+8i5fvTRMd4/vKNhDLMcpSQmxd/paJDM7JHExvIgTkSCtHrq4jOkkUFRRdu4R/xAq1skJ2XcMmuKR94rMyPmadbTM6bZb34d/zsSS6oHWR8ixPK7RDqVyIzp4iL3TejbdOzj1HZ0nIYDUyasE0huTtNu1SxnY5c3n0FX2r/Uu4kV10du7F5EulxV9hyf67luirmnl+4eeND0F1YJ6l38AUyiNnitQzOZuza67ZC1xGDe0aeZRgtLkMzwUw== 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=5CnLEsvi4mt7gkRFNlblY8G11Z4xyBUUaeoTCFYLkHA=; b=LG5pL+G6UpS+QVf7H56vwfLuYp/PKaVrG2RK7beX/PbUdBvGDWtpx7lqQpH0/Ny3tZsSRb3F3bLMqT+UQg9j7sGmfqNsebne1W+nP+u+tuE5pK5t4AKymzETsy4JpwSk5XfmqoOLDLwI2ozAOyxTPgCNa/eQHhRkFFOgYIboOITSNWpj9Ax3QMtos9of1Qnb9qHjLI5NjyYkiYApOImjPXBYmmNq1oxX9IEsSWMB31Fi6No/2DhUYmsQmtuYTKU+M9c0KCT1AQjlChZ1IN0G7kDULYTQTMOB6g1UCkLHl0n4YCDKYhbc6Ri4ohTRdQdWdWSx3jEUUsMvl2DttZjJ0Q== 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=5CnLEsvi4mt7gkRFNlblY8G11Z4xyBUUaeoTCFYLkHA=; b=J0hvkbP7GdErGwOd1L077hCFM5TLqp9lGOaL5Wx9ZUyr95//m/ONJiz3a3LkYndrDO+0pJ22Ab1Z9oapW/+ooAlVB2uws7ITPoFgfAO3cXA3LtSEUnpi5XUXEuTpKHFuU8AcAblgAAL8DZGu+u8BrOHEVIx+7xu/VoHgQjZeWFqsrOWbDTwlYTB1myFWpQ40u4lHBsqZzAPWJlmR+q+if3dJiExWIa5/32np+OdjXTXq+i3d20vyQ3JMECN6BVOj67LY5Fo7q7D12gEFadYFOdLwO7mh7fIlcugkYKJKdlHxsSgZvygYgfyQ1TWIIx0zO6Vv5EbjO4CNRIUOkR1gXg== Received: from DU7P250CA0003.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:54f::30) by AM7PR07MB6326.eurprd07.prod.outlook.com (2603:10a6:20b:132::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18; Thu, 17 Oct 2024 06:47:53 +0000 Received: from DB5PEPF00014B92.eurprd02.prod.outlook.com (2603:10a6:10:54f:cafe::e2) by DU7P250CA0003.outlook.office365.com (2603:10a6:10:54f::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.20 via Frontend Transport; Thu, 17 Oct 2024 06:47:53 +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 DB5PEPF00014B92.mail.protection.outlook.com (10.167.8.230) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17 via Frontend Transport; Thu, 17 Oct 2024 06:47:53 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.64) with Microsoft SMTP Server id 15.2.1544.11; Thu, 17 Oct 2024 08:47:52 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 18FA71C006D; Thu, 17 Oct 2024 08:47:52 +0200 (CEST) From: =?utf-8?q?Mattias_R=C3=B6nnblom?= To: Jerin Jacob CC: , =?utf-8?q?Mattias_R=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_R=C3=B6nnb?= =?utf-8?q?lom?= Subject: [RFC v3 09/10] event/skeleton: remove single event enqueue and dequeue Date: Thu, 17 Oct 2024 08:38:41 +0200 Message-ID: <20241017063842.848360-10-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241017063842.848360-1-mattias.ronnblom@ericsson.com> References: <20241015182535.825098-2-mattias.ronnblom@ericsson.com> <20241017063842.848360-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5PEPF00014B92:EE_|AM7PR07MB6326:EE_ X-MS-Office365-Filtering-Correlation-Id: 55652582-41ec-4bcc-82db-08dcee77a038 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|376014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?5gb2H50xoA2uT+VX5elRJs8sZ4q6jt2?= =?utf-8?q?7Svv+rGcao+gUCbMguBHUGMPZg+tiwRnS3F/tCTBDY6mCnwNo/jCn5lAld5DgaLJc?= =?utf-8?q?xW7UShxKIDXVuLjoAFIiqbbqCv4ghBliLa8SyVyU2EFekqhkUR98ayPOusXRGkslY?= =?utf-8?q?UB3HP8x8+YMzTNZQ9KJvhv7EPWxSynsJwYFoE9h+ifT8WlhCI7fRYSkoCQhmuBLFx?= =?utf-8?q?HWyaq4xBx4BR1M3AVqnayYvGkvXc5bEk5MjiZxF0gPBoJT2nyMO9+iXSswIbeRVbr?= =?utf-8?q?9UDIPQ8v7XTYzheef6+7yej2OYzGQjxx4lGD21bwp4+ntYzcBYOLLqj+TUO9fRYx8?= =?utf-8?q?xRH9dFNdO25os/Bxshlh+SAj50Cfw8K31mR4gQEb2hLh7boIR6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WU+ky2LlxTJhO?= =?utf-8?q?BTgXr4TXaZvGTqgbtpJ6LW81Z9CVr2JuiuSfR2UJ5P1CGkAwVdXJRUEwm20nW3Q0s?= =?utf-8?q?JQEKUmjmqb1elFHy3gYVuTmOHpUEsyp18Q=3D=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)(7416014)(376014)(36860700013)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2024 06:47:53.5563 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 55652582-41ec-4bcc-82db-08dcee77a038 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: DB5PEPF00014B92.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR07MB6326 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 --- RFC v2: * Remove unused functions. --- drivers/event/skeleton/skeleton_eventdev.c | 29 ---------------------- 1 file changed, 29 deletions(-) diff --git a/drivers/event/skeleton/skeleton_eventdev.c b/drivers/event/skeleton/skeleton_eventdev.c index 848b3be82c..73a1e4e008 100644 --- a/drivers/event/skeleton/skeleton_eventdev.c +++ b/drivers/event/skeleton/skeleton_eventdev.c @@ -25,18 +25,6 @@ #define EVENTDEV_NAME_SKELETON_PMD event_skeleton /**< Skeleton event device PMD name */ -static uint16_t -skeleton_eventdev_enqueue(void *port, const struct rte_event *ev) -{ - struct skeleton_port *sp = port; - - RTE_SET_USED(sp); - RTE_SET_USED(ev); - RTE_SET_USED(port); - - return 0; -} - static uint16_t skeleton_eventdev_enqueue_burst(void *port, const struct rte_event ev[], uint16_t nb_events) @@ -51,19 +39,6 @@ skeleton_eventdev_enqueue_burst(void *port, const struct rte_event ev[], return 0; } -static uint16_t -skeleton_eventdev_dequeue(void *port, struct rte_event *ev, - uint64_t timeout_ticks) -{ - struct skeleton_port *sp = port; - - RTE_SET_USED(sp); - RTE_SET_USED(ev); - RTE_SET_USED(timeout_ticks); - - return 0; -} - static uint16_t skeleton_eventdev_dequeue_burst(void *port, struct rte_event ev[], uint16_t nb_events, uint64_t timeout_ticks) @@ -350,9 +325,7 @@ skeleton_eventdev_init(struct rte_eventdev *eventdev) PMD_DRV_FUNC_TRACE(); eventdev->dev_ops = &skeleton_eventdev_ops; - eventdev->enqueue = skeleton_eventdev_enqueue; eventdev->enqueue_burst = skeleton_eventdev_enqueue_burst; - eventdev->dequeue = skeleton_eventdev_dequeue; eventdev->dequeue_burst = skeleton_eventdev_dequeue_burst; /* For secondary processes, the primary has done all the work */ @@ -440,9 +413,7 @@ skeleton_eventdev_create(const char *name, int socket_id, struct rte_vdev_device } eventdev->dev_ops = &skeleton_eventdev_ops; - eventdev->enqueue = skeleton_eventdev_enqueue; eventdev->enqueue_burst = skeleton_eventdev_enqueue_burst; - eventdev->dequeue = skeleton_eventdev_dequeue; eventdev->dequeue_burst = skeleton_eventdev_dequeue_burst; event_dev_probing_finish(eventdev);