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 D38A645B5A; Thu, 17 Oct 2024 08:48:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1BC4240687; Thu, 17 Oct 2024 08:48:08 +0200 (CEST) Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2046.outbound.protection.outlook.com [40.107.249.46]) by mails.dpdk.org (Postfix) with ESMTP id D4BDF402DB for ; Thu, 17 Oct 2024 08:47:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xngJq5keWeF/L94JC35VK1sG05cABG+tsFVeoBeBmZK2VVxMPNfOGnPEVE3ou+902x/qRicANY5ZF2D4j2/9cUfAiX5WDudiVOVLGk3fs97Wx9fapkxDvQClwmq//7A3Q01V/CHNUMMulrmcduLM+phuf7gfj9rOSqXBpCHmCfXzRuoFvfxCXXWeX/WPB1h6u2YSLexyhJQ8UF7u+CneN+8lhT5YmWHSq2xAXF9EBCjGfHGwmOW/cMI5VRV3OJJg3hN29ApygTzL/fsf1cvZBPu8QllkjvqiwOs/DiQWjZNDeE30auQIkhlKwVAUUQ7dyvLcle+Tsi224ENbcaAmmQ== 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=2BoJqqotCOVYL73dQJVkBtCYy+faaKdte/wW78b2WE0=; b=CYrtdBFQtUDF4+fKry6AJfVfUZIEeKaHfwXwqM4i+qVwn6xqwKl1oOYR1o2zhOt7mtf9sT2MCgVnu8yhDfQOeWE5+/KXpw8tchnfGwLTArJkSvoWfuPiYwo/FDaQKV4jLOvZeN6TFV0CeHE0bvOk0nQ+o7XsN33NltBoGAIENnCENlXSv454kGXVAHl2EDIaPGn5jNCr/tTH8WKCHDgh/vpX6yWT3mKw4Aqiv5TY8ArDFwQ1vVl/gTSuGhemBin9zsMy+m0z7K6yUS//8ROkYm+P1E2Iyq2QiHx297vMALVVWfF094yGxI8/nmfCb0De4CZFlEYs8t2dg7CFbRfPPg== 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=2BoJqqotCOVYL73dQJVkBtCYy+faaKdte/wW78b2WE0=; b=j7v8ZptuAIQ/dXs1p98uXrwTOJIlGQVyLdnQlFBTzOQQace9rVH6SxRyNcI0VhT1Cf10MK+RruGHcitb7UQQ9kP6Xj/eKH4/HG6B/OYWzLSO60xYuo+asnQaPWq5ONFZWxg3jGfNUIO8UjdkLTqfz9ZbaGLkBIfSXVHaDephlEKuP+FPqgEVSOpqhYiY5iD5Fg8fBtWCtId34tFuBcwOLApuODhhxlffrxazvQzhStJIYu/SUbzAVWB7+Hi75gH2S57p5jlg24FxbguMDlsZg8ldgev1FNC5EhKUwuGCYqlDUl3xiCA6VHm8IOFo5Jl4hSRJauVzxR/PkQgRinEw2w== Received: from DU6P191CA0002.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:540::19) by VI1PR07MB6461.eurprd07.prod.outlook.com (2603:10a6:800:13c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18; Thu, 17 Oct 2024 06:47:53 +0000 Received: from DU2PEPF00028CFC.eurprd03.prod.outlook.com (2603:10a6:10:540:cafe::38) by DU6P191CA0002.outlook.office365.com (2603:10a6:10:540::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.19 via Frontend Transport; Thu, 17 Oct 2024 06:47:53 +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 DU2PEPF00028CFC.mail.protection.outlook.com (10.167.242.180) 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.65) 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 B90A41C006B; 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 04/10] event/sw: remove single event enqueue and dequeue Date: Thu, 17 Oct 2024 08:38:36 +0200 Message-ID: <20241017063842.848360-5-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: DU2PEPF00028CFC:EE_|VI1PR07MB6461:EE_ X-MS-Office365-Filtering-Correlation-Id: c91d8fe1-ac2e-45ef-6529-08dcee779f79 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|7416014|36860700013|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?B?anZNNHFEcnhGZnpoeTh5a1U1N2tZTW1SSUxoNTlaTEVyZVVUNTZvTnhpZjE1?= =?utf-8?B?QmxyZkVjT1NVL3JndGw0dXBUR1VvSHY4Z1IzQkdwUXFjdW5wVEZWRThhOWRH?= =?utf-8?B?WWNjaGpVVCtPVzhRcFRqVlVOdjVZaHNNWmlVTnNMZWI2THUvdENQbitIUGhT?= =?utf-8?B?bXRvb2VnU0h5VXhmNUZVRzZ3YnNXckxoNlZsRTRwRTFnRExPTWovQ1hUNFF4?= =?utf-8?B?QVdOeDRpbjZOQWRmOTduN2JrZExwblJjNWxpNVgvL1J1SjQ2RllZTzE3NVNj?= =?utf-8?B?WFVPNWw0cFhVck5Jams5M29qMVA2d0VsR01tSzJrSzR4TE5SYUtXZnkxL2F3?= =?utf-8?B?NGY5RERHZ0NXc2UyUHBZWkV5RFB1c1BJenIyZDUvN0tUd2llVkFTLzczVzVl?= =?utf-8?B?UUlSRmtPN2JnWmxLN3Q3aGlXTFFLaUpmTWhCOHRySGw2eVdCNkt3MXRHVE9h?= =?utf-8?B?d1VBUTZWV0kyc3kyV2MxdE9ieTM4YmlBUitvRW5lenZUV0xnNXZQTXJMM1l0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3aGRvTkwyYWJH?= =?utf-8?B?Si82Z0ZyRmloaEZsM0kyek5Pbk4vZWd1cWs3RFB2UG5ycVErZTc3cWlJTjRt?= =?utf-8?B?RFRablBndlpnYmdvQU9WaXhFKzF4NGJpUDRrQXhVeEJ2bmwyVXFDdkpvZWF0?= =?utf-8?B?Zm9qclRZdmxIclRMOUNBYmZYdjBrVjY3Y2h3NGxpWHN2L3FwK0FuRTJ0M3B1?= =?utf-8?B?b1lCSVdMd0c2azBPemtJRlM0VnNlQlJobHBsTlZsRlhHQW9lSHU4Q3pWZm1r?= =?utf-8?B?a1p4T2VBN3VvWDZKVHBHb3hFVXVKSEhtZlV0NjZ0VUNTcTVobmVHZ0g1U2tT?= =?utf-8?B?eDhtK3lUR0F4ejc2TzNrUXpEQmVpbndDWkRPRXl2TUUyK3RGUHVIS0xyalVh?= =?utf-8?B?a0dZZ1hSd3Qyay92Nk5KcEdrNSs0YTV4VmJSbVhUZ1ZGdHE0b1M1azFUb2pC?= =?utf-8?B?eWVpVElTMEpTMGxpRU0zbDltaEhkYTQ4NmIyMGNnb0cybEE9PQ==?= 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)(36860700013)(376014)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2024 06:47:52.3194 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c91d8fe1-ac2e-45ef-6529-08dcee779f79 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: DU2PEPF00028CFC.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB6461 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/sw/sw_evdev.c | 2 -- drivers/event/sw/sw_evdev.h | 2 -- drivers/event/sw/sw_evdev_worker.c | 12 ------------ 3 files changed, 16 deletions(-) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 7913bc547e..3ad82e94ac 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers/event/sw/sw_evdev.c @@ -1081,11 +1081,9 @@ sw_probe(struct rte_vdev_device *vdev) return -EFAULT; } dev->dev_ops = &evdev_sw_ops; - dev->enqueue = sw_event_enqueue; dev->enqueue_burst = sw_event_enqueue_burst; dev->enqueue_new_burst = sw_event_enqueue_burst; dev->enqueue_forward_burst = sw_event_enqueue_burst; - dev->dequeue = sw_event_dequeue; dev->dequeue_burst = sw_event_dequeue_burst; if (rte_eal_process_type() != RTE_PROC_PRIMARY) diff --git a/drivers/event/sw/sw_evdev.h b/drivers/event/sw/sw_evdev.h index c6e649c70a..f617c7d966 100644 --- a/drivers/event/sw/sw_evdev.h +++ b/drivers/event/sw/sw_evdev.h @@ -288,11 +288,9 @@ sw_pmd_priv_const(const struct rte_eventdev *eventdev) return eventdev->data->dev_private; } -uint16_t sw_event_enqueue(void *port, const struct rte_event *ev); uint16_t sw_event_enqueue_burst(void *port, const struct rte_event ev[], uint16_t num); -uint16_t sw_event_dequeue(void *port, struct rte_event *ev, uint64_t wait); uint16_t sw_event_dequeue_burst(void *port, struct rte_event *ev, uint16_t num, uint64_t wait); int32_t sw_event_schedule(struct rte_eventdev *dev); diff --git a/drivers/event/sw/sw_evdev_worker.c b/drivers/event/sw/sw_evdev_worker.c index 063b919c7e..4215726513 100644 --- a/drivers/event/sw/sw_evdev_worker.c +++ b/drivers/event/sw/sw_evdev_worker.c @@ -131,12 +131,6 @@ sw_event_enqueue_burst(void *port, const struct rte_event ev[], uint16_t num) return enq; } -uint16_t -sw_event_enqueue(void *port, const struct rte_event *ev) -{ - return sw_event_enqueue_burst(port, ev, 1); -} - uint16_t sw_event_dequeue_burst(void *port, struct rte_event *ev, uint16_t num, uint64_t wait) @@ -178,9 +172,3 @@ sw_event_dequeue_burst(void *port, struct rte_event *ev, uint16_t num, end: return ndeq; } - -uint16_t -sw_event_dequeue(void *port, struct rte_event *ev, uint64_t wait) -{ - return sw_event_dequeue_burst(port, ev, 1, wait); -} -- 2.43.0