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 ECF1B45B5A; Thu, 17 Oct 2024 08:48:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3AA51402E2; Thu, 17 Oct 2024 08:47:59 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2066.outbound.protection.outlook.com [40.107.21.66]) by mails.dpdk.org (Postfix) with ESMTP id D828940264 for ; Thu, 17 Oct 2024 08:47:55 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tyMMEl9V82FQfm8l4ls3h3K78pyMq6yNsP4MYQtBJ4iCwMOtB9yDmCZiFSF4eCPVEwRcvcREIePqZYXFTzn1fs8Z7f9x7K5XrYkn6a6gPYm2qfqH1d92uU+cINbH70LbC4cOaYmnDr+OynyRWmo/HqXrKlq6gVMp8MYnYm8bG9FabO1jI2B7+6TslSmWpAlKwmHCp27l8hLgMyEFLpPuYV0E/y0j6Go3+s7VdkMOt8yfr0mIo8zBrVpVt3ZLsZSvgGxpUw5TIJeBHMBO10N1RhYg5Z2H23YTZMKQUS1lBAb9fINXXJE8yZswwBndqsotd6cIXcqMGc8R+r+W5hCkFQ== 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=jgeEKAW6XPQbZfNf4B6F7VfotXpP4L9aeWEnY6y02WrTc2hdMSM4R0wZt56QAzahs2ZqfrcrUMlqG9R1DXU8Z1etuefGjJWAJ3Gs7RyFUsEi0nuY5clTu3DyYwM3eAXCNeVXCb1BPAqioeKa9m0epQn1BHzs+xCCH0qVWa+b+ukB1GFOxr+SuQtsXgFjEAQfPmztFSJFnT2VVUU2KR74ehJMGsdMMMdKgBWPx9m6ddLbXztr1ARjxMRzVxw+nYvRBl/5jk7c14cU5nULA8ox0SbfGAb1ABqh+Ok8ymNkZzCmzvXgJCTI0RePPOfRq1o1OoMZ/UEHRQfmjfm5yTKI9Q== 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=MGvxRK+OX1nMEs+1rGQVNazjKWL1OmtYK5Lgl5aiTNQYsJb3vdwAnzl4hUw5WjP8wsuYU46Fnq3u60+NzX0IlQwyBNW07H3/u6VbVGevIBMywuTT5vzkH6juAojEAhJWf09FhHPzR0c8IblFfJNeYc/YAEyC46sg6k7V1wQW4JRMo0+6Dda0bU9AFhylwhNnadfVSCt+nwYnm7LES5Pt3RJHImtRVQfsBiqlWcDZ+Q9qVtokdJY8w+BNwnfI7FTIgplCjW9Ekw40sBbtaNjetsGWtr1V4y0zI0655v47uqAiZV7y1SijaXk+CmWVHkVqB549E3mOGjXijDDaotzQ3w== Received: from DU7P250CA0001.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:54f::23) by AS8PR07MB8220.eurprd07.prod.outlook.com (2603:10a6:20b:377::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17; Thu, 17 Oct 2024 06:47:52 +0000 Received: from DB5PEPF00014B92.eurprd02.prod.outlook.com (2603:10a6:10:54f:cafe::2c) by DU7P250CA0001.outlook.office365.com (2603:10a6:10:54f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18 via Frontend Transport; Thu, 17 Oct 2024 06:47:52 +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:52 +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:51 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id A88091C0073; Thu, 17 Oct 2024 08:47:51 +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 v3 03/10] event/octeontx: remove single event enqueue and dequeue Date: Thu, 17 Oct 2024 08:38:35 +0200 Message-ID: <20241017063842.848360-4-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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5PEPF00014B92:EE_|AS8PR07MB8220:EE_ X-MS-Office365-Filtering-Correlation-Id: bbbad694-4f92-48ae-26a2-08dcee779fba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|36860700013|7416014|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?B?RStjV0FISmtnMDVhZHNXdXgvTnVTR3dZMHpBSENrc3FjMkc3M0ZVN3NnOG9s?= =?utf-8?B?elBTMjd1dWdpbWZpNkZtZTI1Q2Y5cCtaMUVvVjhWWXlQR1d5NXVMR2g1L3l2?= =?utf-8?B?QVF5ZnhGVnQrU0FqRDBhbFJSWEN0RFJlbDZnQWpEbEl4S1BXRHlKR1JXL2NN?= =?utf-8?B?aFJWa0l4dGNJOTdHNmdoaDZ2TTI3YUhZREhJNkYxM2FYREk3V2FvRFlFVlBC?= =?utf-8?B?TWJJMHc3aThOVmplWWlMZXBMRGhXeDBuZTBCSE5ZMmdsYmkyV2JOaHFyelpx?= =?utf-8?B?aVV2V2lreC9xNnYvaitVcm90Nlo2UXBqSkZyYnB0bExRVlM4Q1lSNkVDTC9u?= =?utf-8?B?OVJmVW9iS3V2ZGdqL0Z1NDhSZGhaY2lURkdnMXBSSWFMRWVGNzBUUUdvdzFx?= =?utf-8?B?a3YrQ1FMTW1DTmVORWlxVHpHY1ZDUWFDMHhwVVVBdVk3YmpoWFNlNUFqblFK?= =?utf-8?B?VDY5VlBKUlg4a3IwREIyai9NcitxTlVnL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1CVUxxMG5oVUM4djB6NTFYM3NuTTFSMlVQa3ZwSi9kYWRQNjc0UEVS?= =?utf-8?B?bnNIVnVZaWVoUVpXa1BYWVVqd2J3anhXRVBybk1UZjhDM29yQ3pyWGJ5eUJH?= =?utf-8?B?THZ6ajVYWVptckpCWkxIYXI5SFF2UlZ2TEpkZjF2cGpGb2hqYzI2NyswaWE4?= =?utf-8?B?ZHpPUEdTSlpicytvM3RjNllDN2FHVDJOY29xaFlHdUdpdDdRalQ3VDlBYVF4?= =?utf-8?B?ZStUbVJQckZFWDJKM3FvSEo5Ykt2TkJVTjJwUFljV3ZrL3RyMXIyaDYvckJG?= =?utf-8?B?KzFCV216S0kyZDhQbS8zdURvWllTNDBMRXRJRkxOR21YY0pWUTNWbTZQRVEv?= =?utf-8?B?NjlpN0xWSUQ3cnVUckFGc0hHTGY1NmlEMEZRWjFySzg4d09oNVBxK1g4SGth?= =?utf-8?B?L1Q4UVo2VUtnZ2tvbUk3TGR2Mmx2UE1PWTRXWDQrRmsvb2NHamJOZERwK1B4?= =?utf-8?B?WkcyTzVPaEhrUk9EVC9ORnlrUzVZYVdiYXdYQmJvMjJTV0E9PQ==?= 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)(1800799024)(376014)(36860700013)(7416014)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2024 06:47:52.7282 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bbbad694-4f92-48ae-26a2-08dcee779fba 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: AS8PR07MB8220 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