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 CF5C545B90; Mon, 21 Oct 2024 11:01:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D212C40A76; Mon, 21 Oct 2024 11:01:12 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2069.outbound.protection.outlook.com [40.107.20.69]) by mails.dpdk.org (Postfix) with ESMTP id C8A0B4067A for ; Mon, 21 Oct 2024 11:01:07 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pDwGNJRszkWQnQiTijYzZYwSmudzMU2FVRNi2Fj0C3pOzcL/DNqN9OvmujvWu/b01+8P+691jOQoAC3MY5fvLj+e1PPil9dk4APeXVN4rtaO9TE0lFE2qOsNkFTMa4NEaWVy0jsgdul8za3JUzzODYsRZOpaNH/ONOUU7J3Kxf6GBGdiqXdsMtpFJcNKdT+iXN3MSDAr4giqwUm+TejwlA1Hs4vbrxt2d3ICWQ+UC/h7WJufMAylxv6hCct0Ci/D8E+c9vLDGuUxHSSR6qR0Nw72fvpkUlVqIl29ffbzn5j35Uuh8zRzU+f3/kUHD2wyiIQLAdlyz92rVepRjXkCyw== 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=2OSHegGqrm5PWomK7wqERJvHhW0aIc+lLrUAWNjkwYo=; b=F1QFrvci/YVrbeecEVreiUq62Z5qfQet+SxDZc86lxUxmJakpceCidZhGA+/j0XX9FXe3XvvOe1A7L8jJbqH1hN6ZbpbTQJ47+ezZsfqerj1pLy9ddiY0ATddjf3qa2EuxGHabO+Dzl5CJWPP01v5zGSqh2V10mygh5/GfmVLgU3Nxs1MKIuS3LTwOaCdSAoqltC22Y9lklMXmDvoMN/C+u5yz7yVzKkN9DXt6va6/eNqz+10thdv15lTOys1eGr3IsQ+B9VYsw6pW28ipk9Vqhav6Pou8hx7JLGA5I2A9nWBvX2ZGClPf01CBd+B23dZwbsewSiXmaSG4TnH6kvYA== 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=2OSHegGqrm5PWomK7wqERJvHhW0aIc+lLrUAWNjkwYo=; b=cswq91IkIw8wej83lrJkzLfGznrL8XPvNjVMZaCsgCWX4wSZF/JM7Sz3V9pIYo+gI55csKWMOHU8XnLXFLxHwZC6xHSZouleAKr704BPmIfcBWgJACu5PQaz0xSi6puasp4btH8wItDYez+OKrXhvnxkwzZq1RgQSK9c2PgUKO1MvUTVVa3ZVVd03g3LbAn69zJefjvJIPqERi0Hb4Ukx1w2yWF+3C0NJCvwcWfTPbkor4q7Xs9Ufkc9k/xzkYCc8j5xTbAJi5qgAfNremqgUUqZPXHuDjoR4N5ojS+hHfPK4u+YfaWsEwGfkpIju4jrQFYHThguHlgis864b9eZ5Q== Received: from AS9PR05CA0333.eurprd05.prod.outlook.com (2603:10a6:20b:490::19) by PAWPR07MB9204.eurprd07.prod.outlook.com (2603:10a6:102:2e3::21) 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:01:06 +0000 Received: from AMS1EPF00000047.eurprd04.prod.outlook.com (2603:10a6:20b:490:cafe::6f) by AS9PR05CA0333.outlook.office365.com (2603:10a6:20b:490::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28 via Frontend Transport; Mon, 21 Oct 2024 09:01:06 +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 AMS1EPF00000047.mail.protection.outlook.com (10.167.16.135) 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:01:06 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.68) with Microsoft SMTP Server id 15.2.1544.11; Mon, 21 Oct 2024 11:00:22 +0200 Received: from breslau.. (unknown [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id F1EAC1C008A; 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 03/10] event/octeontx: remove single event enqueue and dequeue Date: Mon, 21 Oct 2024 10:51:08 +0200 Message-ID: <20241021085115.864114-4-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: AMS1EPF00000047:EE_|PAWPR07MB9204:EE_ X-MS-Office365-Filtering-Correlation-Id: d3b99a33-e829-447e-5bf4-08dcf1aee5bf 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?MGZxNEtveVl5bWRZRUhqVDB4TGVDWWZWTHVoNUpXVld4VjZ5RDM2eE5EM3Iv?= =?utf-8?B?V0VYYnhNUlBOU21rZ2RDSkVHanJndm83eUVwVkRkZjBRM2VaOFdZWHpoY21X?= =?utf-8?B?enpGZVRLUDFYeldtY1NGbDlwZXpUR2xFdnY5N0pOZVhZT2o2NGo1bVZCSldV?= =?utf-8?B?SFVrVTh6Y3NzbzlXNEx2MGdQbTVUT2haQm52dWdURjVlTnl6Z0V0VGdNTlp0?= =?utf-8?B?NjFoemY4a0pOK3JOSk9zNXBKQUYwTTMwZDgwVXZISGc2V1NSQVVJeGpHVGJP?= =?utf-8?B?bHlyUzF3MTllVFd4c0h6NG1LbkgwQ0RYVFBmV2RnRjVFalNzdlo2MTNIK0Fi?= =?utf-8?B?R2hUU1EwK1RxUXhNVUJ6MEZpWlBKTGREaXlOc3FaVm5SQnpyT2xNSUI2ZTBh?= =?utf-8?B?MGxsb1Z6TDh1RjR4S1NKVi9JUjNGaDhwQlM5Vlg3cU1kaWhXUVQxQU9wQnNX?= =?utf-8?B?ZmpFTjdUNkdmRlZtUVBKVmxabWNWdE5wQzF1c0VOT1k2bnE3U3o4anZVSGxD?= =?utf-8?B?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em9YZGdkQkllOU50ZjExTGNDSDl6czZlSGNkVGJxam9QZFYrTzhrSGQ2TVZ2?= =?utf-8?B?TGxUVkVaUDVQdlNLMTFmRmlKUmdGU1BGa3Z3NlViaTlrcG1NZ3h2YjI4dFZ4?= =?utf-8?B?NU82RW9HL1J4MitpeGNWYUxERzlvZDU2Rzd0TzdGR3RVSnE4WnFtQ0tNT29L?= =?utf-8?B?dVIwdmRiWkovQk5HOTZtOCtobS9uR2RUSGhkRjdFdkhRSkVyK3BsOWo1RVFB?= =?utf-8?B?ejZ2aHFwM2xSVWpxelFNN256OVJsTkRzM1JVcmJ1VHpRNTVpU08velRVZEo2?= =?utf-8?B?WmNXYVp1VG96QjdITWRFamdmSlIvUHZHV0V3aTdjYTc5UlVoN0lPSHdiNkd3?= =?utf-8?B?Vi8vNmtVR1BGTmhHZGlvOFZhbzY0WFU3OHlHWG5jdzZ2U3JYajlxdi9OUWNi?= =?utf-8?B?cHlpYmZiYnZhdUEvcGFXWU9CVys3L2RxSFhBTmoycmVWZHc9PQ==?= 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:01:06.0269 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d3b99a33-e829-447e-5bf4-08dcf1aee5bf 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: AMS1EPF00000047.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR07MB9204 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/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