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 5DE5A45A78; Tue, 15 Oct 2024 20:34:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E1C1A40270; Tue, 15 Oct 2024 20:34:44 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2088.outbound.protection.outlook.com [40.107.22.88]) by mails.dpdk.org (Postfix) with ESMTP id 7F13F400D7 for ; Tue, 15 Oct 2024 20:34:43 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IlRSu0m2HCCwRRrmNSxEI7SWgSc6Z7KdPcOWj9o0oFVeFzYee1HBICDZNqk+4kUCWzaC0qXL4SQrj+LyZkbcjomdYFnHN352LwjUd2ErrUe5d8STuBwXMA9fH3zJNBcf4QniAQ4PVf9qhQTeTjE7JZqJ6f3TqOibvVRmFrfrIzaxx84MzHAsSxlrI6GYn09LzHZG2b3wZAFMkxP4dbPh4Jg63P2RCtMOnTtTqVgEcDmvKxaV/5Bx964d4LuEbCVEvV2DmvHalhm9aDlzht+s3DNzhpPE8MVZsrS5GSPTmCde361uPN99aoq4YgaXIEk8A/V70CbvpMFGUwe+1C2Oug== 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=gYyday7TOEeMLpbpiwkNkMenQdF0e2Xeqi/69CaK18D/Na10NZAJ7Bu6WnLbsN6rZGqAV0MqG9mGFA5gtZkit8ASoE/1/bWv/u/ZYkWcCTeSNohIANvLC9qJelVF/pj+fyUnQ6NYAmi8NrTXdb5C9d2/dNxWRt8E52lG9d19hWiaPPqxruq+9N4VDqeoUt7gSxypUMvZnD9Un7tJH/mqCWV3aJUT/GC8/aC38DCfxNdxoxmo1GRj/hEYSdSO+lwpbvH8a6jkRIc3Vw4/Sm+swrESX9HWIWcDCGOWlUuyd7bFYFX5N7mZy0F+3gHjq+nOFKCN9VUJuIr/BYL1omVNcQ== 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=rC9oB/XoyNaenXUoXmWTKlqdi0NZjeh8PqOzWNZ9d3OqGx3PgJiqfqMYjAlP9Soxeax8SkKigu2OjpKHTslLNKKnWWP+HjViJJ77Q9cT3RtcwT8TKtcMXV16RNevpEe32tc6P/juXJjfwG14tSt3s0JfY90n3BaMziWDPdDoHSBtZQzpRbSFB9DanVo+IdyWnqymLLYgy5CN7co8Iv0y6iRkiWyOaecuJiAioFsE20nLEeLHilpFMaZ9IdhVYjFtSLI76QePb2KD4gO913wXL4D9S1ABVlbCyPotASEezPFPXcAJerzYwk0zaaSKsqrkbfLpAhNMcqDpWdarWO/D4A== Received: from AM0PR08CA0002.eurprd08.prod.outlook.com (2603:10a6:208:d2::15) by AS4PR07MB8608.eurprd07.prod.outlook.com (2603:10a6:20b:4ff::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17; Tue, 15 Oct 2024 18:34:42 +0000 Received: from AMS0EPF000001A3.eurprd05.prod.outlook.com (2603:10a6:208:d2:cafe::eb) by AM0PR08CA0002.outlook.office365.com (2603:10a6:208:d2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17 via Frontend Transport; Tue, 15 Oct 2024 18:34:41 +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 AMS0EPF000001A3.mail.protection.outlook.com (10.167.16.228) 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 18:34:41 +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; Tue, 15 Oct 2024 20:34:41 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 00F1F1C006B; Tue, 15 Oct 2024 20:34:41 +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 v2 04/10] event/octeontx: remove single event enqueue and dequeue Date: Tue, 15 Oct 2024 20:25:29 +0200 Message-ID: <20241015182535.825098-5-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241015182535.825098-1-mattias.ronnblom@ericsson.com> References: <20241015084943.823983-2-mattias.ronnblom@ericsson.com> <20241015182535.825098-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: AMS0EPF000001A3:EE_|AS4PR07MB8608:EE_ X-MS-Office365-Filtering-Correlation-Id: a781cf57-94be-4ed3-2f7b-08dced480879 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?VGwyellYNWh0dUVMQjZtOWgwZHJxd1lxQUMycjhma0MxM0ErNVNYbzlYNXpU?= =?utf-8?B?NisxTTc4bVMzR0ZDVWZCd0hYZk9oVmF1U0VkcnBXKy9DZVdUZDRCYTkyRHBV?= =?utf-8?B?VGNKcHRJcGJCZVBnN0FiSFRVZjQ3US9nKzdhbFRhUThKTHBHblZaTUY1ZStS?= =?utf-8?B?Ylg3bElJVlNaTUxuc1EzWjNKdFlsL094S2cyZ25mTGtPSkI1RVRFQWJFN1F2?= =?utf-8?B?TXpIN2YxN0lIV2VEc2VxWGJOZmt5Q0J4bjFud2V4ci9xeFVlRVovMGUrRG1w?= =?utf-8?B?cS9BU3pIOGIrbVhjdDFxTWZ2MUNCZnZUcTVPOUw2TnRiS2FpWnExZGNwa1pt?= =?utf-8?B?UFJXeUEzb0JtUW82L0hEdnhqSjFmUHJ4ZDB0cVRDMXQ2eXk0alQ1VlFiZmRW?= =?utf-8?B?RmVlendQY082dGdBL3IwbHVXUWRtNnEyUXpjb0lIMWhKUDNyQ2ZxYVVKTUNK?= =?utf-8?B?NFVmMXJnTlJIYjZkaHdNNGlGWDlnTlpRYldZW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kTEpDMUJON096dGhLcWc3TFE3S3Y2Y2krWVEy?= =?utf-8?B?QVl3ZW94amtYRGUwQmdhVGF4bXNuSEhEdWtSU3dpVngxUllrNXdQcmVwVi9J?= =?utf-8?B?eTlRTDdjbjZZSlhseEVyaVRzZWtLcEM3K3dRL0U1R1VlUmdSWDJJY3ZNRXN4?= =?utf-8?B?ZUY3MFR6Qi8yZHU0L3Y0TUFob21WZElObjhLK0FlclVXOHIremZOSWdGMDhL?= =?utf-8?B?MDFYR0lrTEhIV2FxZkhmeTVOWm8wd3FOb2xxVU9wSWFTQUtSZ29mdXdicDVL?= =?utf-8?B?OFFXVjQyWVhZQks2cXo0aDQyd2g4RmxnNmIrUk10NWRJc0F2cTJZUDRDdlds?= =?utf-8?B?RnlVMi9uYTQzMUhoTCtheEd2TXZibFRqRUpFblo1SHJQZlV0SFRFVitGQklV?= =?utf-8?Q?KrQ1+OsvLiA0w+e2/FnE1WZr5D0VCD8nHjs7U=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)(1800799024)(376014)(36860700013)(7416014)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 18:34:41.4887 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a781cf57-94be-4ed3-2f7b-08dced480879 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: AMS0EPF000001A3.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR07MB8608 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