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 692EF45B42; Tue, 15 Oct 2024 10:59:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C640140A6E; Tue, 15 Oct 2024 10:59:03 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2065.outbound.protection.outlook.com [40.107.21.65]) by mails.dpdk.org (Postfix) with ESMTP id 0B6CF402CD for ; Tue, 15 Oct 2024 10:58:53 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=J4iU77IhAJ4SnB2LsVquwU/hXnZbb6s6tKoVBwO/Ud2EG6SO/89hPXPWjWoj5rgQd+kUOg6PzD5zmCDjygAi7T45gQiinBpq1Hf7vUAP8FYV52VUEPwNxscjYXTmo/b227J7fhiB83BynFXYC8euSJL+vTOeunpluAFSeXwwFhVZC9aK5AUhBbV7exHcJo0xMVk9bBSh0aOcTcW3e53DSvfiScwTHGYm048BD7G9DbQ/+VLFL04dm2h14ugjIpIM4vFC+QT0mWIoXJTOEE7NNDSm4qa9/FJhbVwdSbUtMb9iUfY9GVtrMlA/jBti2U4IXyKb69gi6pkS359IG0Agpw== 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=+GAKEFsIiEesxvlA2qNbaM3WCHKqxBDyNCBJHbkZIlU=; b=tKnvzlNGpUdOhORPLRQIGBcjqEaLotBYa9OJGHbTqkrQSrf6qir/bYGHBCSIia/AI15m6ad3zgNampGiSETniqzSJ/eUvbFkXEMhJk1yNKrjhy52K7N3MqGvueH/h7i7tJpJ55ZsTc7ItE5gfZilvv+Z/mzCUsiIslY0ilkjVFaI7ysTTo0RN3H9z1J8kstHi7fIfNJBrs+M23a3ccGc2JwQpDVO9Ktf9W2AGe3b7Pq4ElChk/qz/KTHoX0MzHXz7iWe4dBAnNVbM2/vYDvSfdx3Uws50+lnhANeW/akdRM7PnzrQMSsbnOBoAUxtR4Bu7g4VKCT4G+9kr59pmhkZw== 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=+GAKEFsIiEesxvlA2qNbaM3WCHKqxBDyNCBJHbkZIlU=; b=ChwF5h0+QUtzli8KE/7klnIkLLNCtFMpPtS+Nglqgvrbr5qncrTDO3TpeXKCOuH0fGxenudRgoxykB8rFSaCrB61sPon+ooFN1F44Z1GzWDv7RAGXWv5uQt1c9skvOKxJ376xr7Da/yC9dAMmC8XSc20OuD0hbto07fv7RlXZfQZMSShhFBp07N5r9uAAZQR6f5WPA4X6Z0u8EZfM9iEEbsghM24aGrnyEpF7CMpb3W8CXE81f1fSZZOB4UD3/LX9HL7oYDQk7qG5o646Ew0Euj8rvVXao6DSq+OEjo0mJ2YQPlJo55iuGjpL0O69xmQMiVVaCKCkUKoY1JzG3tRyw== Received: from AM0PR02CA0009.eurprd02.prod.outlook.com (2603:10a6:208:3e::22) by AM8PR07MB7540.eurprd07.prod.outlook.com (2603:10a6:20b:241::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 08:58:50 +0000 Received: from AMS0EPF000001AA.eurprd05.prod.outlook.com (2603:10a6:208:3e:cafe::8) by AM0PR02CA0009.outlook.office365.com (2603:10a6:208:3e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26 via Frontend Transport; Tue, 15 Oct 2024 08:58:50 +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 AMS0EPF000001AA.mail.protection.outlook.com (10.167.16.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Tue, 15 Oct 2024 08:58:50 +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; Tue, 15 Oct 2024 10:58:48 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id CE9A91C006B; Tue, 15 Oct 2024 10:58:48 +0200 (CEST) From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= To: Jerin Jacob CC: , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= , David Marchand , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Subject: [RFC 04/10] event/octeontx: remove single event enqueue and dequeue Date: Tue, 15 Oct 2024 10:49:37 +0200 Message-ID: <20241015084943.823983-5-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241015084943.823983-1-mattias.ronnblom@ericsson.com> References: <20241015084943.823983-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: AMS0EPF000001AA:EE_|AM8PR07MB7540:EE_ X-MS-Office365-Filtering-Correlation-Id: 92d86f06-9170-4c9b-aed9-08dcecf7964d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?B?MnlBcXRVbUloQkdVNEs4ZTh0Yng3cVJlWVpqNjB4TlZKM1JEaDlRdU1GL2dw?= =?utf-8?B?bW1SU1hjVXlUbmk4MXZOTkNXb2VvV2kxY1lMN3RxZ2Jtc2V5RG9KVCt4a3ZY?= =?utf-8?B?eVhZb3dZeFViZWs5dDMyeFVlWWxZRTBzcVlvcUl4b3hwKzdpTVpqSThvbWlS?= =?utf-8?B?dm5oS0RZNVJjV0lpYVVrTDFrMzBlYVVsaHppRmdnaVJmMTExSGx2WTZsMW8v?= =?utf-8?B?U08xWkI3YUZXdTVrNWZDV3d6cldIOXNsWjZCNXlBVHdody9vSFRDR1VQaGpX?= =?utf-8?B?cVpidTcxdi9XWVlKdGJCM3NPVDlocXQ4Q3VwU3FiNjUwU25RN2t6NmhxanFv?= =?utf-8?B?WmNtOU9ZWU1MdnlIQjVjYlBVUG5HTXNiams4N0JvU05ZMzlKbXVNMzRsdkRP?= =?utf-8?B?NnJlR2JJbGgvUGphdUFsWnVxcGV1WXB2SWM3VG9ma055M2pVeS9ua2VRbEZW?= =?utf-8?B?K1dGcUorUmNFYkVGa1NLN3Fkc1pIU01tKzB1eTQxaGRjdGtCSzc3QkVaM1lW?= =?utf-8?B?K3ZCNmVUaXdyMDRBUTgxUEdqNUlzb1FER3E2R0hWaFBuNDlQVzQvelB2RDFa?= =?utf-8?B?bG1mbVFZSytTbnhzSmh4dDU0Wm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VFh1NmV5ZW5rNDdmZDEwOHBubE1kNkRtWmt0dzJxVEJvUmVvejJv?= =?utf-8?B?V0pPTkN2NkVQUmtLU0wrRWFjTnZadHVFcmYrL1F4N3MxTW8zUDBiRnZPaVQv?= =?utf-8?B?ZVZicVJUVW1OaUJzaWJRVHBqWVNOcGw0MDgvbG01cCtqYklTbEE1ekF1eURp?= =?utf-8?B?R0Ryc2tQdmNseFVEbWRzNi9kU1pER2lPWkFHQ2RmTmtGNGdxUXB1ZFFNaE1N?= =?utf-8?B?bkc5Vkp0b0tlVzhYcWp5UWJBaGZxNEtaa1IrU3lRTmk5SlRXTW50MTlxeEhl?= =?utf-8?Q?llwVs/wfU9v4b7OBozig3t4Hrfmf8JUxDzM4I=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)(36860700013)(82310400026)(376014)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 08:58:50.2049 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 92d86f06-9170-4c9b-aed9-08dcecf7964d 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: AMS0EPF000001AA.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR07MB7540 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/octeontx/ssovf_evdev.h | 1 - drivers/event/octeontx/ssovf_worker.c | 40 +++------------------------ 2 files changed, 4 insertions(+), 37 deletions(-) diff --git a/drivers/event/octeontx/ssovf_evdev.h b/drivers/event/octeontx/ssovf_evdev.h index 1997626438..0f81115a37 100644 --- a/drivers/event/octeontx/ssovf_evdev.h +++ b/drivers/event/octeontx/ssovf_evdev.h @@ -172,7 +172,6 @@ ssovf_pmd_priv(const struct rte_eventdev *eventdev) extern int otx_logtype_ssovf; #define RTE_LOGTYPE_OTX_SSOVF otx_logtype_ssovf -uint16_t ssows_enq(void *port, const struct rte_event *ev); uint16_t ssows_enq_burst(void *port, const struct rte_event ev[], uint16_t nb_events); uint16_t ssows_enq_new_burst(void *port, diff --git a/drivers/event/octeontx/ssovf_worker.c b/drivers/event/octeontx/ssovf_worker.c index 36454939ea..89b5dc056c 100644 --- a/drivers/event/octeontx/ssovf_worker.c +++ b/drivers/event/octeontx/ssovf_worker.c @@ -148,12 +148,14 @@ ssows_deq_timeout_burst_ ##name(void *port, struct rte_event ev[], \ SSO_RX_ADPTR_ENQ_FASTPATH_FUNC #undef R -__rte_always_inline uint16_t __rte_hot -ssows_enq(void *port, const struct rte_event *ev) +uint16_t __rte_hot +ssows_enq_burst(void *port, const struct rte_event ev[], uint16_t nb_events) { struct ssows *ws = port; uint16_t ret = 1; + RTE_SET_USED(nb_events); + switch (ev->op) { case RTE_EVENT_OP_NEW: rte_smp_wmb(); @@ -171,13 +173,6 @@ ssows_enq(void *port, const struct rte_event *ev) return ret; } -uint16_t __rte_hot -ssows_enq_burst(void *port, const struct rte_event ev[], uint16_t nb_events) -{ - RTE_SET_USED(nb_events); - return ssows_enq(port, ev); -} - uint16_t __rte_hot ssows_enq_new_burst(void *port, const struct rte_event ev[], uint16_t nb_events) { @@ -336,7 +331,6 @@ ssovf_fastpath_fns_set(struct rte_eventdev *dev) { struct ssovf_evdev *edev = ssovf_pmd_priv(dev); - dev->enqueue = ssows_enq; dev->enqueue_burst = ssows_enq_burst; dev->enqueue_new_burst = ssows_enq_new_burst; dev->enqueue_forward_burst = ssows_enq_fwd_burst; @@ -360,19 +354,6 @@ ssovf_fastpath_fns_set(struct rte_eventdev *dev) dev->txa_enqueue_same_dest = dev->txa_enqueue; /* Assigning dequeue func pointers */ - const event_dequeue_t ssow_deq[2][2][2] = { -#define R(name, f2, f1, f0, flags) \ - [f2][f1][f0] = ssows_deq_ ##name, - -SSO_RX_ADPTR_ENQ_FASTPATH_FUNC -#undef R - }; - - dev->dequeue = ssow_deq - [!!(edev->rx_offload_flags & OCCTX_RX_VLAN_FLTR_F)] - [!!(edev->rx_offload_flags & OCCTX_RX_OFFLOAD_CSUM_F)] - [!!(edev->rx_offload_flags & OCCTX_RX_MULTI_SEG_F)]; - const event_dequeue_burst_t ssow_deq_burst[2][2][2] = { #define R(name, f2, f1, f0, flags) \ [f2][f1][f0] = ssows_deq_burst_ ##name, @@ -387,19 +368,6 @@ SSO_RX_ADPTR_ENQ_FASTPATH_FUNC [!!(edev->rx_offload_flags & OCCTX_RX_MULTI_SEG_F)]; if (edev->is_timeout_deq) { - const event_dequeue_t ssow_deq_timeout[2][2][2] = { -#define R(name, f2, f1, f0, flags) \ - [f2][f1][f0] = ssows_deq_timeout_ ##name, - -SSO_RX_ADPTR_ENQ_FASTPATH_FUNC -#undef R - }; - - dev->dequeue = ssow_deq_timeout - [!!(edev->rx_offload_flags & OCCTX_RX_VLAN_FLTR_F)] - [!!(edev->rx_offload_flags & OCCTX_RX_OFFLOAD_CSUM_F)] - [!!(edev->rx_offload_flags & OCCTX_RX_MULTI_SEG_F)]; - const event_dequeue_burst_t ssow_deq_timeout_burst[2][2][2] = { #define R(name, f2, f1, f0, flags) \ [f2][f1][f0] = ssows_deq_timeout_burst_ ##name, -- 2.43.0