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 6497345B90; Mon, 21 Oct 2024 11:01:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 50B5940670; Mon, 21 Oct 2024 11:01:02 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2083.outbound.protection.outlook.com [40.107.22.83]) by mails.dpdk.org (Postfix) with ESMTP id C79964065C for ; Mon, 21 Oct 2024 11:01:00 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FOnh3Gilq4exZT8aMktWg1EYnETxm8whL3Tv92hy7pPjkp6P9FvKeHQttGNY7/4/UUFPgYERiHWBQyhhjGUejGhui2ThwNmpB81lXIfigBDeg8Z7c9+FTkkDJBbk9Nbvfrj0rBLbLifavzPoQqwi+JGQ7kv5y3USoFZSDYPSQNsyRb2+F+6Iry3bWxT0rgzkJAuZ1XBNaQg0e3QUV1ACXisu5IOCdN32HM2lHdQh3nG+sVsP94jKTEt/xCxolD0Cm1Yeo/Y/bVgEKDphwCcLQw6P3cX7vIW4DndWzhihqDSBBtK2ReoxdGkwiLAoF/B1NBXDrGcdtnXaWSFre+RbsA== 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=wUh2PvdND3hDwpqFD3xIr+5NTUjAtcmuOBBF6iXuTF8=; b=GSUJU8KXBJYUp2gqpoFpCAEvAvPBDstvFhgOoEv7AkY9DeI1TSLBrEz6/q9KtccfAVGDbVkTakX8Gk/2ob99sroV7r5xIUYfXv91DNR+KnvRb42rcnBgtXLe28f4xdX/3168T/op/dEqfvAwPdnwzj5Ko1MIFt3sX87IErGVoa2BDhzoqExyidtbzPcLQrXuv3qhArPPrFzxfTc+OQ+qOs1/Wu5fus3hOme3IjA14ZIbA7psjYIUAcSyaZvHYS+PO5E/miP18UdgtLk7Jycr5nY3mPzYYMEnPuoj5qFbbtFQoPqkEuD/xgkQPuPzKbtX6oIShbOOJyrn5LbNLptrqA== 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=wUh2PvdND3hDwpqFD3xIr+5NTUjAtcmuOBBF6iXuTF8=; b=hDU/FTJDDTfgoDTHfFwYNAI4MwHGs72IhvbQHDM+tQvNDY58xYYS/r6L4D5pku8D8/OS+2e7szGr+XPG2XP0xxCgf356sqqvTJk8CVbGtrlSTMms93+laaiAs9xcTwseaWuIk/9SXO9u+3LQR5Ve9QJCJoVIjaKegq2Y3D/hsPcTHkvWUL6FE+G2ns42PK5qweXsgbRdyDDM0aHMUiAyNdeNl11P5BXDI7T65Pb99Kw32ZCVVwTzHG3D4MEEIG2zSDD8CjuB0ZFCtixq5LyxDYuCI/0VFRAYHCfFF0z7XmXZAHTohZwItytvcnJ6JI6zRFcy+nES0asQcKtxjAOUUQ== Received: from DUZPR01CA0337.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b8::10) by AS8PR07MB7687.eurprd07.prod.outlook.com (2603:10a6:20b:25d::18) 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:00:58 +0000 Received: from DU2PEPF00028D10.eurprd03.prod.outlook.com (2603:10a6:10:4b8:cafe::26) by DUZPR01CA0337.outlook.office365.com (2603:10a6:10:4b8::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.29 via Frontend Transport; Mon, 21 Oct 2024 09:00:58 +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 DU2PEPF00028D10.mail.protection.outlook.com (10.167.242.24) 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:00:58 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.67) 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 E09881C0088; 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 02/10] event/dlb2: remove single event enqueue and dequeue Date: Mon, 21 Oct 2024 10:51:07 +0200 Message-ID: <20241021085115.864114-3-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: DU2PEPF00028D10:EE_|AS8PR07MB7687:EE_ X-MS-Office365-Filtering-Correlation-Id: 5fd6002f-bd1c-4fca-2666-08dcf1aee15a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|7416014|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?B?R2xyLzdWL1JoYzg1RjhyVkFHbGZsZGJHL084YWs0NjlMMGQxTU12MnNPcEFq?= =?utf-8?B?Z3pmbmdja2VMZ09tTDZOUDMvYUtpZVE2Zno2eWMrSU5SWWhqeHdWa3krWGlk?= =?utf-8?B?MnBhMmJRU25EQkQ2bVJUOXlwRXp1RGkvTDN2bzVBRjhrQ2tkb2tHQ2Y1SUNE?= =?utf-8?B?NWdZcEttV0NPaGpmQVdKWmpLTjlOU1pGaWtEMEt1d1NNbWw0QW55VlVwN3A5?= =?utf-8?B?dmlCRDFZbzFPenNhcEtjMG5hcitrOWJRNGNWcm5ZdU1QMFhJSzh4VS81REVR?= =?utf-8?B?YkRYRWEyQ0F6SjZiRVNqd1JWVms2enFyWlFQeVFUREtWU0FuUTRvSmFoeS96?= =?utf-8?B?NmtxMi9MNDd0dENCbkRsd3g3VWxYNHhFNzhoUGpBbDZudTBlTFdCWjNFWnUw?= =?utf-8?B?dTUrS3F3NSt2c1NSRkNueHpvckl2VDdaMHN5KzNFdjRNeTdZVndJZHVPOEhu?= =?utf-8?B?RVRNU3FNSFd1MFV5UUpkN25xYUxkZndjRkh3SjR3MW8wa2prRWxIUzd4dmZC?= =?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0?= =?utf-8?B?SHI4MmZiWnBXSGtwQW00UnMrVFAzaFNUclAvSWpPTlZTOW1FakVGZSt2eDFQ?= =?utf-8?B?N2Y2V3RpZWRTL3BvZlU2WUhWN0hMOVhiS2sxU1FGOWs3RVlBclg2THR2UkZn?= =?utf-8?B?Y0J2ZnZDdVc3aEMvU2d0V2pONGVoWmpxTHZUbUpDSnY2ai9kQVMzeFdndXRM?= =?utf-8?B?TWhnTmZGT2JTQXZEcUZzdGtOaVJYdzVTRjN6aE05d1UxbWgvaCsySU1rei8z?= =?utf-8?B?R01wSDNrRVhHcHdZeHZkLzIxTTdKcWRhZ0k3QWxJQnF2TE5qNU8vQTFadDVa?= =?utf-8?B?aHQrQzFTN2I4YWFVMmZNQ0VhcWZucXFyQzZjanJpYkJoMVdVWHcvZE0zNGpF?= =?utf-8?B?YUZONmN0dnp4TWszYzdFbzdhVmc1UVBGRVFiOG5WV2lIamV2YW5KVDQzZVRL?= =?utf-8?B?SlZNNStKazE1aXVUZjlwcnhyL3hpd3ZzdWZjQURBczYxelE9PQ==?= 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)(376014)(7416014)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 09:00:58.6371 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5fd6002f-bd1c-4fca-2666-08dcf1aee15a 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: DU2PEPF00028D10.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7687 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 -- RFCv2: * Remove unused function. (Stephen Hemminger) --- drivers/event/dlb2/dlb2.c | 40 ++------------------------------------- 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index 09e4107824..934fcafcfe 100644 --- a/drivers/event/dlb2/dlb2.c +++ b/drivers/event/dlb2/dlb2.c @@ -1483,10 +1483,6 @@ dlb2_init_qe_mem(struct dlb2_port *qm_port, char *mz_name) return ret; } -static inline uint16_t -dlb2_event_enqueue_delayed(void *event_port, - const struct rte_event events[]); - static inline uint16_t dlb2_event_enqueue_burst_delayed(void *event_port, const struct rte_event events[], @@ -1662,7 +1658,6 @@ dlb2_hw_create_ldb_port(struct dlb2_eventdev *dlb2, * performance reasons. */ if (qm_port->token_pop_mode == DELAYED_POP) { - dlb2->event_dev->enqueue = dlb2_event_enqueue_delayed; dlb2->event_dev->enqueue_burst = dlb2_event_enqueue_burst_delayed; dlb2->event_dev->enqueue_new_burst = @@ -3304,20 +3299,6 @@ dlb2_event_enqueue_burst_delayed(void *event_port, return __dlb2_event_enqueue_burst(event_port, events, num, true); } -static inline uint16_t -dlb2_event_enqueue(void *event_port, - const struct rte_event events[]) -{ - return __dlb2_event_enqueue_burst(event_port, events, 1, false); -} - -static inline uint16_t -dlb2_event_enqueue_delayed(void *event_port, - const struct rte_event events[]) -{ - return __dlb2_event_enqueue_burst(event_port, events, 1, true); -} - static uint16_t dlb2_event_enqueue_new_burst(void *event_port, const struct rte_event events[], @@ -4312,12 +4293,6 @@ dlb2_event_dequeue_burst(void *event_port, struct rte_event *ev, uint16_t num, return cnt; } -static uint16_t -dlb2_event_dequeue(void *event_port, struct rte_event *ev, uint64_t wait) -{ - return dlb2_event_dequeue_burst(event_port, ev, 1, wait); -} - static uint16_t dlb2_event_dequeue_burst_sparse(void *event_port, struct rte_event *ev, uint16_t num, uint64_t wait) @@ -4375,13 +4350,6 @@ dlb2_event_dequeue_burst_sparse(void *event_port, struct rte_event *ev, return cnt; } -static uint16_t -dlb2_event_dequeue_sparse(void *event_port, struct rte_event *ev, - uint64_t wait) -{ - return dlb2_event_dequeue_burst_sparse(event_port, ev, 1, wait); -} - static void dlb2_flush_port(struct rte_eventdev *dev, int port_id) { @@ -4693,19 +4661,15 @@ dlb2_entry_points_init(struct rte_eventdev *dev) /* Expose PMD's eventdev interface */ dev->dev_ops = &dlb2_eventdev_entry_ops; - dev->enqueue = dlb2_event_enqueue; dev->enqueue_burst = dlb2_event_enqueue_burst; dev->enqueue_new_burst = dlb2_event_enqueue_new_burst; dev->enqueue_forward_burst = dlb2_event_enqueue_forward_burst; dlb2 = dev->data->dev_private; - if (dlb2->poll_mode == DLB2_CQ_POLL_MODE_SPARSE) { - dev->dequeue = dlb2_event_dequeue_sparse; + if (dlb2->poll_mode == DLB2_CQ_POLL_MODE_SPARSE) dev->dequeue_burst = dlb2_event_dequeue_burst_sparse; - } else { - dev->dequeue = dlb2_event_dequeue; + else dev->dequeue_burst = dlb2_event_dequeue_burst; - } } int -- 2.43.0