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 67E5545B90; Mon, 21 Oct 2024 11:14:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E43F54026B; Mon, 21 Oct 2024 11:14:39 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2059.outbound.protection.outlook.com [40.107.104.59]) by mails.dpdk.org (Postfix) with ESMTP id 09E304021F for ; Mon, 21 Oct 2024 11:14:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=noo1+1qulr9D5P54k0II6Hwfebq++TPM+CZ20jZi7IVrr/QJF7WujHxKZdKMwU7/od8S2bs3sLFdeXD9Cg17BR2vXil/mTY4GwFS9iBklbYgouFmYYiRCRoYXaTFiVr6smAofRLj7YtfgkRWQB1f3QKrh8c6VcQ/23wvxsOL1Dqzm12qayI7tf1kEiMW7MDMXfV5ciEeRkArXkn7udZgqPAXv8JWjkxQfcS51+wunausGLy5BmSMK+0kNieOmOgIqr3u5FiKz8lPri2tn3E5HAmzAb7ohTxJCf8JrsNEd9IMy6Nk9goYbW2ZpOmFYI+5qfCRi1gjJJWHo8MndOZdHQ== 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=FYf2PR09KnPdOYKPdQhyhxh2aiFjAF0dgMdDUuREWvo=; b=LFNpron7howgHp8hKkCLhawxoc2baLJQCupqwYZjguPSNfujYqQB89qIq7rlYHQiU/vOSH4NCIjP69yURqGY04tyM+gKtEUIStORwSY16pswnRAhsEwIHhes3vq5WZ0z6l4cxl5d2MJPI9ze3RsOxLVdUQNiY7R+xOxZbcPW1iXT5mmpXAjv49Kearc39PYo3ld/ULmAWYoQBhK8VkgA9hA5ntDuwkS2TrOyPTwTdgGMZ2CRud4Uok9+oKiaNX0Zq1bA4RUS49Yw48qv6d5qdaCmoRQqC5/vG0watjp/7uAc2p9VwpTW1Refv8iJj8f880DuHyVVSer9zn8vcjiQiQ== 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=FYf2PR09KnPdOYKPdQhyhxh2aiFjAF0dgMdDUuREWvo=; b=Mqd57zE3T0kABqXMYlCWf6doWaggw3jZ2/SNMwyFShhu2cOfac4bWeIMcNfHEmAygLr6H5fmm+Ac+VaCJ9nqjDmOp2e02XWHxUHWOUzU+oDoM/mkSsrJ36CALOyuyhHACGYEEoEMwtqwRRyfbBCc9xou4FfNS97Qzjmcl1FU1gGj7ymOl5Tehs1RN0IariNR9a0ednzrOTlwlLkxxAt8hEn4TNTgZT5/Xt8SnuLLs+if/dr3XFYHo0fBccdeDVyFLfcPy2ttAG7RkSyH85sMPvVw+0sFZett6TYEyiPSBWFn767BE9Mf4TGPNG7/eJUq7l7eJ+Xi3PazmET7uWRAGg== Received: from DU2PR04CA0193.eurprd04.prod.outlook.com (2603:10a6:10:28d::18) by PR3PR07MB6859.eurprd07.prod.outlook.com (2603:10a6:102:70::11) 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:14:36 +0000 Received: from DB1PEPF00039233.eurprd03.prod.outlook.com (2603:10a6:10:28d:cafe::20) by DU2PR04CA0193.outlook.office365.com (2603:10a6:10:28d::18) 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:14:36 +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 DB1PEPF00039233.mail.protection.outlook.com (10.167.8.106) 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:14:36 +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:14:35 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id A0DD21C0094; Mon, 21 Oct 2024 11:14:35 +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 01/10] event/dsw: remove single event enqueue and dequeue Date: Mon, 21 Oct 2024 11:05:33 +0200 Message-ID: <20241021090533.864190-1-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241017063842.848360-1-mattias.ronnblom@ericsson.com> References: <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: DB1PEPF00039233:EE_|PR3PR07MB6859:EE_ X-MS-Office365-Filtering-Correlation-Id: a3b2937b-689e-4cf4-30b8-08dcf1b0c8b9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|7416014|1800799024|36860700013|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?bHpyQU9VSk9GSmxqV0lKTzZENmJkWmxuQTJPSXdUVUdqaGxaVTYxUWpKUDVj?= =?utf-8?B?dDA0RUc5bnNTcno0ZUt6UFdtaHo0enZ6dGhkWE96SmVob0lXd0FyWkFld2o1?= =?utf-8?B?djFKbVJOM0JIc094UW9HVDBBWW0zcHYwVjNCRDBIUm9qdkRFVXlaS3Bybmsx?= =?utf-8?B?L0diUmxmbUJsNWp1bnJZWXZHUkRwRzViaDlLTWFndDFraE1pa1R3enBVMnc3?= =?utf-8?B?akY0L0ZqbHhwR1RINWdCdHpFenFBS1daZDlLWWZRNzFyeUdpejBaZzhSbnhG?= =?utf-8?B?TTM5SVR6T0VlRWxmNWdkQXlhUGZ5S05pN0lpUWxpZGhFNkdLZ2FYeHVNSmJZ?= =?utf-8?B?RTJjSTdzQm5pOEdGd2RZZ2drMmUwanZudnNSM1lmTGJoOHQyaTcrVkxzTk1x?= =?utf-8?B?dC9WUWN1ZDQ4dEpOOCt4N0piekRLZkhkRmx3bUhNbXdHWTltYmFidGFvZnpG?= =?utf-8?B?UHl1bytJWUdWMlkxSzB2dWhlMjlMUkhBcjFZZEZSSDlUZXR1TmZUazZVS0J1?= =?utf-8?B?WWx5eHlWb05Ka1l5NElDQlFQZFlV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1ZTWVyS3kxTEZMZVkxVG5RYisxMHRzbkVtdHByMXJaaDcwYStSWC9nYjlG?= =?utf-8?B?QnNuL1hLcFhlWW5YcVdPRFBKRWZ3VjRCbkRSaTg2Z2tSc0lVV3ZIZkpkK0pX?= =?utf-8?B?RTVnTTE1cDdPaHFIcmR0UXIrVUtzcmRqWnp3RE5mQytNUE50UEZqeUxkMUdz?= =?utf-8?B?ZVN1cjBkWkZlMGJKU2NWWFFrd0g3Zmw4RVROeFVpdFR2R1ZYWEduc2NRcWxE?= =?utf-8?B?SmpZVEViUFB2clJOYTBpblZ0UUNHL1Z5djY0U0czeUt4cGZQWmw1S2c4QmJj?= =?utf-8?B?TURwY0cvZk9yQytzWUFrTUlCeVdBL1B1VVlLNEFVOU1LWi9pMDdsUDV5eHZ6?= =?utf-8?B?VmpqRFRrdDdaSWxoUmwxa2xScUJ5Ym92TVFYc2pBZ0U2ZXBzc293WWpWaEU4?= =?utf-8?B?VlF3bVl2SnZiZGZLb1orVTNSa3N5UjZ4SUJzb3VXRUNLdlE9PQ==?= 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)(82310400026)(7416014)(1800799024)(36860700013)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 09:14:36.3260 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a3b2937b-689e-4cf4-30b8-08dcf1b0c8b9 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: DB1PEPF00039233.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR07MB6859 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/dsw/dsw_evdev.c | 2 -- drivers/event/dsw/dsw_evdev.h | 2 -- drivers/event/dsw/dsw_event.c | 12 ------------ 3 files changed, 16 deletions(-) diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c index 1df3121b21..e819412639 100644 --- a/drivers/event/dsw/dsw_evdev.c +++ b/drivers/event/dsw/dsw_evdev.c @@ -453,11 +453,9 @@ dsw_probe(struct rte_vdev_device *vdev) return -EFAULT; dev->dev_ops = &dsw_evdev_ops; - dev->enqueue = dsw_event_enqueue; dev->enqueue_burst = dsw_event_enqueue_burst; dev->enqueue_new_burst = dsw_event_enqueue_new_burst; dev->enqueue_forward_burst = dsw_event_enqueue_forward_burst; - dev->dequeue = dsw_event_dequeue; dev->dequeue_burst = dsw_event_dequeue_burst; dev->maintain = dsw_event_maintain; diff --git a/drivers/event/dsw/dsw_evdev.h b/drivers/event/dsw/dsw_evdev.h index e05cee0e6a..ce52498435 100644 --- a/drivers/event/dsw/dsw_evdev.h +++ b/drivers/event/dsw/dsw_evdev.h @@ -270,7 +270,6 @@ struct __rte_aligned(4) dsw_ctl_msg { struct dsw_queue_flow qfs[DSW_MAX_FLOWS_PER_MIGRATION]; }; -uint16_t dsw_event_enqueue(void *port, const struct rte_event *event); uint16_t dsw_event_enqueue_burst(void *port, const struct rte_event events[], uint16_t events_len); @@ -281,7 +280,6 @@ uint16_t dsw_event_enqueue_forward_burst(void *port, const struct rte_event events[], uint16_t events_len); -uint16_t dsw_event_dequeue(void *port, struct rte_event *ev, uint64_t wait); uint16_t dsw_event_dequeue_burst(void *port, struct rte_event *events, uint16_t num, uint64_t wait); void dsw_event_maintain(void *port, int op); diff --git a/drivers/event/dsw/dsw_event.c b/drivers/event/dsw/dsw_event.c index 6eeeb6da93..e68fb19890 100644 --- a/drivers/event/dsw/dsw_event.c +++ b/drivers/event/dsw/dsw_event.c @@ -1323,12 +1323,6 @@ dsw_port_flush_out_buffers(struct dsw_evdev *dsw, struct dsw_port *source_port) dsw_port_transmit_buffered(dsw, source_port, dest_port_id); } -uint16_t -dsw_event_enqueue(void *port, const struct rte_event *ev) -{ - return dsw_event_enqueue_burst(port, ev, unlikely(ev == NULL) ? 0 : 1); -} - static __rte_always_inline uint16_t dsw_event_enqueue_burst_generic(struct dsw_port *source_port, const struct rte_event events[], @@ -1462,12 +1456,6 @@ dsw_event_enqueue_forward_burst(void *port, const struct rte_event events[], events_len, 0); } -uint16_t -dsw_event_dequeue(void *port, struct rte_event *events, uint64_t wait) -{ - return dsw_event_dequeue_burst(port, events, 1, wait); -} - static void dsw_port_record_seen_events(struct dsw_port *port, struct rte_event *events, uint16_t num) -- 2.43.0