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 7D96F45A78; Tue, 15 Oct 2024 20:35:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A38C340652; Tue, 15 Oct 2024 20:34:51 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2043.outbound.protection.outlook.com [40.107.20.43]) by mails.dpdk.org (Postfix) with ESMTP id C174440144 for ; Tue, 15 Oct 2024 20:34:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gn9MKiQ+ae0I4SladXDj7rcRY1hosD+99hTKzaeo+jdXsF3pHtruqf5Pd5w4ptBc0BM/rktQxVUftvLpKEz6oId+V7x5Q16GaFWqx5VEBmTi9uer56VG5jJF0AqhboxRooSwmfrTDs9Kiy9dWLqi5Kl3LJ3GtHiyaqsPWCDJWtJEl430oXkudvwHVqKRPmHZMSyzVk0kjVjDwyP4k+0IWTH4QkgQMPcy/mpeA7yDo/WxT2ujCjioMlfvQ44puZt0a5wj/D5brkiZxHtrXEGToYFUJi5HdglsolJq1uTZgbF5izKOcdvqr6mWita8nzPzLKOvSRSYLoVi7A+tlfwndw== 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=upvZkP+pxZ+QWVj+1jNXdM+XsxND3oNxIMVfv6eN3Ig=; b=jSUa7bx7IT2pnBXuQ0Q9kEzJFxJwQkZ4pqLm+uQV/RSWDyd+LAAX2YwysiqffLDQri1qDQk19B/QvtMglcbZNAUHfGmu73Y9EUT70pi/RmfjzqVUIkaZlFxzksHyEI8RTCbOgxyvbPUfk5YR+xSmfIZeRAq3F7BSstN+CcOo2vbvLeZ+RFrfkRJ0p63Vfq9jUCsUmuxEm/r2rqZizZ2j4fMIk6CEEH+97Uh/uiIo7I1t5QsIO0d0xWXb9SwVob2XqUX3Ml9z7UDUQRQwyCpxjk6T6/i0hmnBfaX2GIrRTHJdYMxViBHgUgSPx5oPClTErpbIR6adINHV6T6NrLZs4w== 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=upvZkP+pxZ+QWVj+1jNXdM+XsxND3oNxIMVfv6eN3Ig=; b=f0EmRfTqvmZO4ihZG6+Z31IBZNOBx6zMYNApKlet2pJiLY9BIWv/jhNjLogaPaItJ1F3tHAy9vJ1DDqw5UFFhpmOUpNI5eQ5O0fOWQc1qBQAlvkuAFUb0re59zvuuBSkYrVua6F7Wlg7EmrVHnum6Q0gFnqw0ZvGA11ASfLBjckEhns6Qfdg21b20SNsQXpI6tSPaa9F62s/hCImnS8x9foMn3y8x20hAoZ68AIrE98jNg7AWlqdKQWoJcREq8y0YPkPtVGSDW1CXc87WtdvLwIElAW6sv2+TsQBMV7f8gRLWp/y9pOoszmyx/eSsasvYuX83/kHD7aogwiqbFrlhw== Received: from AM7PR03CA0007.eurprd03.prod.outlook.com (2603:10a6:20b:130::17) by DU2PR07MB8253.eurprd07.prod.outlook.com (2603:10a6:10:276::7) 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:43 +0000 Received: from AM2PEPF0001C70F.eurprd05.prod.outlook.com (2603:10a6:20b:130:cafe::f4) by AM7PR03CA0007.outlook.office365.com (2603:10a6:20b:130::17) 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:43 +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 AM2PEPF0001C70F.mail.protection.outlook.com (10.167.16.203) 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:43 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.63) with Microsoft SMTP Server id 15.2.1544.11; Tue, 15 Oct 2024 20:34:40 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id D0BBF1C0070; Tue, 15 Oct 2024 20:34:40 +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 02/10] event/dlb2: remove single event enqueue and dequeue Date: Tue, 15 Oct 2024 20:25:27 +0200 Message-ID: <20241015182535.825098-3-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: AM2PEPF0001C70F:EE_|DU2PR07MB8253:EE_ X-MS-Office365-Filtering-Correlation-Id: 54d1492e-4109-4c28-8115-08dced480961 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|1800799024|7416014|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?B?K3ExOU1LMUVCbmJqVFJaMjJOU3JhZEltOFcrNWJiMWJxUDVpN3ZHS0oxVmJ0?= =?utf-8?B?QlN6R0ZUbEk5OUZCeTFUZE5VenkvZTZnNXhPWVFWZWQ5WC9WT0dZRVV3MTFL?= =?utf-8?B?WHNhSFZpRGJMQjZDUVFpUjVhbkdiQ2ZJSXpsRUU1MmtiTHBCVFhaMWRJZStH?= =?utf-8?B?V2xnRFFZNFp0dGVKaWxBQVBORnVJT0tXZUtvbFU4KzZSNEdUNWQ2bGRtcXJz?= =?utf-8?B?RWtVanlhcWRXU1pGNzU5Mm1BZG5xaUhhQ3ZxRm9lU1lFNlJLZWJPdzAweDBj?= =?utf-8?B?Z1hLZWhlK2w5dnJNS1V2KzhnUFQ3Y3UwdmVDZUdLeTM4TldJbTV4OFVuaXU1?= =?utf-8?B?bCt2WERiVUdpQzVxbGpDNVREaEorcGRPTUZvTnhCRFp3UGFFUjZySUd0YUE3?= =?utf-8?B?WEJoNmptZE9qYXdRMGtHUFJJNkZhbzRGb2VqZUFBd0hqMG1mcEtIL0pTdEJH?= =?utf-8?B?WmEwOWF3VFhIaTQyQ3lkZFV6WU5vS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WmhuTW5SSHEzM3BtbEd3bTNJVk5YUzgvbUdGMklhQ2t4cUZnWER4Vmtp?= =?utf-8?B?eC9Db1pmUlhRNm43TWowb3NkVXZvS0RGMml1N1ZYVEtCeUdSQUVSN2NtVVNu?= =?utf-8?B?TGJVR2lHL0Z4RHNTVWdNMUljYkF1YXIvS0cvMkZEUXNsamxIcU1mTndqSytB?= =?utf-8?B?ZW14aVorZGNRVmd0OUwyNTJtMjBtV0lOWUVyWUZESnF3N0hvaldyNSsyalBn?= =?utf-8?B?WDJlOTFtUFlmYjlHU0hiNWpJTUJVSS9TVjhuVWZiQmZIUzM5S1pubGk2U2lP?= =?utf-8?B?aENRbGQrUDlyWFZRZklDUERDcms1NGpiZHBJYkpaeUZNKzhLaTVjSkFSWm1z?= =?utf-8?B?ZSt4RnUxMWZvNXM3VVYzQmxWU0laZnRXaVlPYkh3c0tPUWZta0hNUEdtSkw5?= =?utf-8?B?TUVLSUhqSnpPRjFGbEY4V2tTaHdsK1FnYWpJSTh0K1pKMmdqTUxoajNHVFRk?= =?utf-8?Q?HY50NgT5d6pol?= 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)(1800799024)(7416014)(376014)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 18:34:43.0112 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 54d1492e-4109-4c28-8115-08dced480961 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: AM2PEPF0001C70F.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR07MB8253 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 -- 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