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 B747E45B90; Mon, 21 Oct 2024 11:16:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 11A1840A7A; Mon, 21 Oct 2024 11:16:14 +0200 (CEST) Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2040.outbound.protection.outlook.com [40.107.241.40]) by mails.dpdk.org (Postfix) with ESMTP id 1C0D040685 for ; Mon, 21 Oct 2024 11:16:12 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Md8Mtg8Pr/s0B7DryYu2Au0a4yvwugm5KZAOhs1G12dXmar7cyYu6TvitV/be0na81AI1EC9nyuK+PqZXMrCmGTT0f262sjg+zJi7rbvQoOePLpntplTSs2/a01p0VD07BEi0F7WH3t3Ph1wTPNlQwa6Yf2mSX27IePRVhBMFMviwH6UnlXJt/wp06X5Tc4+OaHPPCSGEye/oss0EQQQrKiYRee2Kb3KFOfGKS6YIxbEfp9CFAHp47aOD9So0LMCPmumsLYP2bBi6elF19jHiFT/nauUqf50hhgjH/H/S8ZRPgqTR7chBM3eu4R1C8l3dEDU1miSMntjKkpFD7cAeg== 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=I8W0ZXBb5F5W8CnCCAvAPcEsEtDYJfuX8fhSWKgIIfwDX/0r4daWYt3Qqu7ataZGj0Hy0mI8BJbVInbq1m7gdFyqxBvawHWDm4W3D2C2uldIerKyvoDN8Df3Gcv20p6726JAtfxMUFW2kUyBnefIxKBs5llpFmSYV76jqsSbQVQIaXdiY7yu5LHVF81c6qwHwCQ+i/fHPD9upiQwvYjIWJXkoIX+GyXsmj6EJBnFo02GLM9WjVL5EuiGvpskDBldOU6HWnWH40PWgqL6nPbiYOwvx7zajU0ff+0WeJx0L7fDAGhLoayaZn48LojM4uTzOitZ11Ay6Gru5GVjhWXThQ== 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=cOPtYF05Uq3r1ThmlxewZO0L3n0ZOgQY4S3msvM3Ks5IkplW+tBmedwxw0GZKFzNbFWFYdBYbBhYMdqmOG+UqSgSI/m42rmRKeyHFNp0g35AjTEVBJi4OtEU6/x/Si67YWjOCT44MNr5cZ8C62Gmc2UIKBdj5XdLSvTgo16jIuScWGx3Z80vrgxA5d8yup5cv+Xie0Gjbuqfd+BnbzOa3tLNr9YLQLX4WpLdYZ/L9IxXgRK4XJxLem1JPGpSzn9Oe1KNppvgHFzOGPcbuct4dXEMCVn3aeKKLdAn6YSypLn2qYNP7+/PVUezd3KJ1BKDt9wP6V46w14+0jPy1KN06g== Received: from DU7P191CA0007.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:54e::32) by PA4PR07MB7406.eurprd07.prod.outlook.com (2603:10a6:102:c8::16) 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:16:09 +0000 Received: from DB5PEPF00014B99.eurprd02.prod.outlook.com (2603:10a6:10:54e:cafe::12) by DU7P191CA0007.outlook.office365.com (2603:10a6:10:54e::32) 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:16:09 +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 DB5PEPF00014B99.mail.protection.outlook.com (10.167.8.166) 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:16:09 +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; Mon, 21 Oct 2024 11:15:55 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id BC1411C009A; Mon, 21 Oct 2024 11:15:55 +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 04/10] event/sw: remove single event enqueue and dequeue Date: Mon, 21 Oct 2024 11:06:47 +0200 Message-ID: <20241021090653.864237-5-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241021090653.864237-1-mattias.ronnblom@ericsson.com> References: <20241017063842.848360-1-mattias.ronnblom@ericsson.com> <20241021090653.864237-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: DB5PEPF00014B99:EE_|PA4PR07MB7406:EE_ X-MS-Office365-Filtering-Correlation-Id: 8152a8a8-cfde-48bf-69e5-08dcf1b10011 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|82310400026|36860700013|7416014|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?YlpybytaVVVyYjhzTnlhZGVteW5jWWVwaHBUWi9IVU1HaG5oRWtFdEJ1Uk5v?= =?utf-8?B?bUphZkwwSVJiRUhIK0poWW5pRFVjN0Q1UEtCT1JvdGc0dUZvNkwxdEc4eVVT?= =?utf-8?B?YVpQdzFwd3JEVmFNdlpvOHk5THlMS2NPK20rZDlDU3Jnamp2WE9GbmlWWGtC?= =?utf-8?B?Ukh3ZndkQlU3STRQdDN2NkpucHpRTmNScTZpRmtGalVzV2lhSGd6Y3FGWnBw?= =?utf-8?B?b0dGSGFSdWpacDBIWTVqOGtwL2xxR05YVWtBeWNHNDlZOHZxd1lHZkNydXN3?= =?utf-8?B?TFR1MXkrNmxIb2RVZ3VvZU5RTXN4Z2d1Mll0M1dCd3AzWnNPRGduU1JORzd0?= =?utf-8?B?aW9ydXBuN01JTGhseElxckU5Q3o0ZE9UbHdVYnlFRGdkMVFFWmNad2tqeitt?= =?utf-8?B?WUgxdVFISWg2REJLZE4xeEozRjZPUEhTMVloTDBHU3RkVVhLa1dLcFRIQkpx?= =?utf-8?B?WXRpaWJsTjAxQlluSTNUQ1QwUnRtRm5RUWhnUTd6RHlTT1N5RS9rT0hSUmtD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mNTh2R1ljMkExRHNKdTJJeFBx?= =?utf-8?B?N2s1R2VzTkkvVTk1MVdGMXIyb3QrMjNVc0JpRXNnNmIwL0YxTGxpdUJEYUNH?= =?utf-8?B?TkoyUjFiK3hrblVwenJxdm9sRmJmaTgrU25YQTRvOXBFQ2R0ZmJ4ZHlobmdI?= =?utf-8?B?aFlaTjBqT2diMXh3L1U2MDNGeVJHczdwY2hBaFdMZEZIcUIycEgvdzQ3YjRO?= =?utf-8?B?NzRVU3U1ajhETTlCem93bGZtVUxSTnR4RGFCQURHaEszQmt4MTRUQW1Gak9x?= =?utf-8?B?Uml1VEdEREQzQ1FleHN6NiszYXVvZDd1Z0c3NWFjZW51TUNTSDJaNmpBNFQy?= =?utf-8?B?NHpCTVh5a01iVXcyWFExWTBZZ2Y4QWN3b3d2TlRNUE9Xc3BHV1pQb0dxdk8r?= =?utf-8?B?N2F5QzlRR3NMODFJQThvRWduK0xNaWg0ckZ3d3huVzVveWhYRFFPZFBCRFp6?= =?utf-8?B?dEUrWTVGWFpDY2tPeGhyMk5wWkxYclJXL2pBNE0rdEtTWnc9PQ==?= 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)(82310400026)(36860700013)(7416014)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 09:16:09.1633 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8152a8a8-cfde-48bf-69e5-08dcf1b10011 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: DB5PEPF00014B99.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR07MB7406 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