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 1E5B445B90; Mon, 21 Oct 2024 11:16:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0A2F040685; Mon, 21 Oct 2024 11:16:44 +0200 (CEST) Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2051.outbound.protection.outlook.com [40.107.103.51]) by mails.dpdk.org (Postfix) with ESMTP id 1C93840B8C for ; Mon, 21 Oct 2024 11:16:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BW45CoN9n97IiJHhFkRzHLr28NRv3F7Op3YJOwlYWZdc5z0tXkNZUK6zW+UWhI5KeRpZTcHjXtTCAq0BWwtJANMeTv0mRxCpQV066TK3HBS5vzFFxgfg9zG/SkmIwabCYmYxzuX3b1LXURiMO3sO7ilVmRoelKHXZRqUf55kkmq1GjP7kvGhv+UIAj4fcWyDvHCagWmruXYNsW9Ahdb3fWDIEXl47nkcbR/pjdiAKAbBY8dPBoTdpEdLCYi9tTj1Kl47/hNi9TiybOThdQ/68Komjrmeu7JfSCbIkjQsbAm/34AVX9TUUfVlK+kzRpFo9aOPeiqUJ7yw63AnHqm3ag== 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=iDAHVg3y0KniW3IiuMb8GC0rs7MQPSMxxy2ZhYF57wLW/2cQp6ROLak7kKUI8k8z5BnHzP+su+fxouyb084ppToWaaFmZdAmqUGhjwU0FMeseGP3/i3UNKDRlZs88kgrpo4VKlEnMt1F2utUMv0MV+MGGAO7db8ZnhXEVRAYNEdsMGfsk98vXfsbzNQCDBHhKnaxmo/f5Zv/TkBMH5hQ5jBZpr2J0yAKk1dH0caU+cbXwxpGKOovJstCN7RGyqPVqhbBMulwNs5ao++xKviMobAlNAIZ7e4D4hYUhu72Wtu8XWU9rKDqu4eErH2QeW/g4jG9Ln0xDIbr/1kharTihg== 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=BBYsb1ym1o8gv/GTAM1buxnFWImaqlnW+/8UunZGyzW54bKzvFxFCAXbh+XUT01TSjjCXfaCZA17jbcYTrinOzEND1Zxfz5HYlbFX8iqYGAsUYi0qgvc7dTWnoO22b7mPez8vBkPm0//nM3+FtrXP6uJSOlcLX5Uxj1kkRoQwM5CeMs+/mVSfyFYGNrTnIBj+pg1fN78YtUw+YcdoW0Zz5Udle5TtP55KDPT4ehK0w5aS7xWrjo7NwjpbEV1JlfqchcR4wJiKHF/wzqVpQbl2XANMdi/RFap1ys8wJoLR0D9TA6Bc+AvgjPgCV7DhcBxb4uNwzEpVh4kv/my3f+g8A== Received: from AS4P189CA0010.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5d7::14) by AS4PR07MB9610.eurprd07.prod.outlook.com (2603:10a6:20b:4f6::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.26; Mon, 21 Oct 2024 09:16:20 +0000 Received: from AM3PEPF00009B9C.eurprd04.prod.outlook.com (2603:10a6:20b:5d7:cafe::6a) by AS4P189CA0010.outlook.office365.com (2603:10a6:20b:5d7::14) 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:16:19 +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 AM3PEPF00009B9C.mail.protection.outlook.com (10.167.16.21) 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:16:19 +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:15:55 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id AA9D41C0098; Mon, 21 Oct 2024 11:15:55 +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 11:06:46 +0200 Message-ID: <20241021090653.864237-4-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241021090653.864237-1-mattias.ronnblom@ericsson.com> References: <20241017063842.848360-1-mattias.ronnblom@ericsson.com> <20241021090653.864237-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: AM3PEPF00009B9C:EE_|AS4PR07MB9610:EE_ X-MS-Office365-Filtering-Correlation-Id: 657164cd-156e-4ddf-2c05-08dcf1b10672 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|7416014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?B?T2R6dXh0NGdnMnJsNU5YQmVUVnl2UnhPdmRrN0hyME1wYW9GUXp3a3hnQ3ZK?= =?utf-8?B?T0xockJFZUpWRElNWC9ONVIwaCtsb3NmRnpDZVhzWGJxV01FUFVJZ0VVbjJ5?= =?utf-8?B?bWdXV0ZseDl2TXZWbXc1dFd1V2pUNkYyaElMaW4yNUE5MjlvMDVlTmpFY0xW?= =?utf-8?B?ejh4RGVUanVzL3poRldkNTFPQU1pem1pc3JJemxTRGlUN2FnTzZjdkVPRlJY?= =?utf-8?B?aDVpdHdFd1NORU1YcUVidjVISTVkd2tKanhjTlNJUU5Ub1J2eEsrOVVJa0R0?= =?utf-8?B?R0pqUEsrOHBGaUNwM2xlc3M0MDhBelRBd2VzQzc2SlBtdjVxUEMrSFo0d28y?= =?utf-8?B?NFpZdkh5U3FQbkd0cnpvN09KSUd5cW1WTTZMZGhxWVdvUm5vNlh5N0pLdE1k?= =?utf-8?B?dnZZK1hoeGJaZHdWRER5T3dpUm1vdFFmbXJRNDRKNmVCcW1HL1BIVFMvWHBx?= =?utf-8?B?T0VuT3l5UElGckVOcUFzWVR3SmdFZ2F5djl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xOWlNamJvYmU1UTZxczFrQ2l0ekJTYzVzMHlMMWgz?= =?utf-8?B?akNEOVRsVDd6UkNrZlEreERTcXFKWk5mdE52YmNzY3pyU1M1dFlIL3U3cjV4?= =?utf-8?B?Ui84WGpLSDMwdGVpRTJMUW0wL3Z6eHZ6VkpZclQyTEtWdlVlZi8xQWFvazJG?= =?utf-8?B?RVpJb1RRRlE5UFUxNVRUN1pBanRsWnk2ekNmaUljZi94aENWd1JISDlTQTdv?= =?utf-8?B?RkZuQk9jVW5CY3Y2MGF0T2RzVWZsT2dBQnFLeHBQNEhqMUxVSXE2bENDa240?= =?utf-8?B?eHlGS2U1TE9JWFpYZWRwYk9DMXI1enJHQjZqUmZuT21xWHN5UjRnQ29lakdW?= =?utf-8?B?UnNzUkNEcDRDSjUydW9TTlFLWCs2MFlGWHRWV01CM29XR1N5ejNqZTdOenBt?= =?utf-8?B?Y3JDekt0ZjJxRkNSbVJZVk9VV29xNFZNL1Noa0h6aTJDZ1E0WDNtQ3pZZFVl?= =?utf-8?B?OTNBYW1WaVRDRVFhTkIxWEZpcE5XTittNTczREdpWDFyQkE9PQ==?= 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)(36860700013)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 09:16:19.8950 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 657164cd-156e-4ddf-2c05-08dcf1b10672 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: AM3PEPF00009B9C.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR07MB9610 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