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 D4BAD45497; Thu, 20 Jun 2024 09:34:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C01B0415D7; Thu, 20 Jun 2024 09:34:54 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2053.outbound.protection.outlook.com [40.107.20.53]) by mails.dpdk.org (Postfix) with ESMTP id BCD6840696 for ; Thu, 20 Jun 2024 09:34:53 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GZ+HpHx+CGPWxw8z8DDLIkNvTJ2FaIbZ7Cxi3DLaIInpxzwrSXokGo2JQnPs5euuBWF0EkGtpwzfQr8Yp2IyxwwSVoliyvQERih/vrQJPx0QOpeH5d1QBSYIlgudvPjUdISfk+G+9AoQ9hOfS7GyNtFoBzdFwdoV9YX2WOxHZuwQdYhf3kw+SucCkKMplVbdZ376KYopBLa1y2CcgXAv984mRFRBOPyrrpXZAwIaPnOZzGsWu6ShRibfhhFUvsFPm0t9c6cZi4xjCQ4qk0CR1u/ES8L2uGV4Q5iGxwMiXPmbDzy5ViafVyFKj1A2x3U2IkM7QytvE8Zui+iV2U+qTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=CvG548fa0WY1KN3rkIRO0k/RocIDBtt+CNr7eR7BYkU=; b=AYlKMKzoph7Q8IH4Bp0h/t5/XtUMDLMS/6GNObzYmddAzI/cvy23CpFL6YbkwVpcURorPNP85jZ2dor4cmlxiXOqd2Y8MCOr6D9NPDYNON2uya8bzlK0CDMoHBQ67SeWVW4Xho7CnFh3Xn2zsz/JkTDSrfRHKLGqDDBqWmO5lC40FmM/alhmx3vpDedvwyrmYA2dsYdJbkFeAbfGkkMfytrfYI0nRDzJv81vxWW42cpXSWnaoOT9RZMdL7vqdgHMYcY8IXT1VLUTUYmU6p7Q4clBAGpJKzSaN3o0MYY16gQ3UCRDRYJjZEBzJt+9QjEpFLzgsO3vBlMFp3oXjoEIJQ== 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=CvG548fa0WY1KN3rkIRO0k/RocIDBtt+CNr7eR7BYkU=; b=bWPF+zV3Z0h6tQrSqrUB+1QDVkScvje9AO53QjsrjCnEryExFvBeawajfTFzljF2BkuoeVW4GxjDyLcdVBgDL2i5ojZ0CFlf3ZRqQtbAQuFxo7gUzLlWAL9rdC0jeuTGFxq55s3WNy21752ev+B8UuRH8N76viBR1VYkLQtq1ZFonM6pD/v7XIPy34WtwX8AvHQs1eXklFN4I6owVQtImrBfy8KqWsFK+6b/T4UYHH2KNsLiA9YbH3Wpo/9IozuQZV47TOG8nUlDtVNSww7j2R1kP6Osui+GCvwitRxqxtvdJ8Bgwop/Zhn3n37NJLKTBBFt/cXVCczYnEvrK69V4A== Received: from DUZPR01CA0090.eurprd01.prod.exchangelabs.com (2603:10a6:10:46a::8) by AS8PR07MB8219.eurprd07.prod.outlook.com (2603:10a6:20b:376::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.18; Thu, 20 Jun 2024 07:34:52 +0000 Received: from DB1PEPF000509E5.eurprd03.prod.outlook.com (2603:10a6:10:46a:cafe::51) by DUZPR01CA0090.outlook.office365.com (2603:10a6:10:46a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.34 via Frontend Transport; Thu, 20 Jun 2024 07:34:52 +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 DB1PEPF000509E5.mail.protection.outlook.com (10.167.242.55) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Thu, 20 Jun 2024 07:34:52 +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; Thu, 20 Jun 2024 09:34:50 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 2F4811C006A; Thu, 20 Jun 2024 09:34:50 +0200 (CEST) From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= To: CC: , =?UTF-8?q?Morten=20Br=C3=B8rup?= , Stephen Hemminger , Abdullah Sevincer , Pavan Nikhilesh , David Hunt , "Vladimir Medvedkin" , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Subject: [PATCH v2 0/6] Optionally have rte_memcpy delegate to compiler memcpy Date: Thu, 20 Jun 2024 09:24:46 +0200 Message-ID: <20240620072452.420029-1-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240605064945.369310-1-mattias.ronnblom@ericsson.com> References: <20240605064945.369310-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: DB1PEPF000509E5:EE_|AS8PR07MB8219:EE_ X-MS-Office365-Filtering-Correlation-Id: f2c5e9a7-bd5f-4cc2-ce90-08dc90fb78ff X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|82310400023|376011|1800799021|36860700010; X-Microsoft-Antispam-Message-Info: =?utf-8?B?YWdoaXZCbDlucXU5UG5kTGZhWFFIMjhqZnFObTRrTFd6ZkwwaWMrZVFidWdX?= =?utf-8?B?bkJmeWgyS0dGT0ZmVEZVeVlMTm8vbWdrc2VhMFVLaEtrbjg2S05CSldySXJS?= =?utf-8?B?R0E3U21BbHZ0OGZuaTcrR3lVMmJLVndGTHNoRURGVUh3V3ZVQ2NuSE8vc3dq?= =?utf-8?B?Qk1LVmdpZm1rdkpuZXN3WEM0bExqSE9XckxQcEUrclRwUHRFS3d6RmlFOGdr?= =?utf-8?B?c1daM0F2bXhNQ2RhZXhYN1VaZ0VUU1k5RmQ3WkxrcTcyOUJtTjI5UmlLVmRD?= =?utf-8?B?MERzbHV0dUNSTGhFRjdTZi8wNFI2bFRkM1gyVktZT2dhdG55NHM1Sy9PYXBL?= =?utf-8?B?ekYxdndjczFGZTZ6U0dlcEI0cnNSczNhQ2tGMmlEUitYQ0FLeVNnektiR1N0?= =?utf-8?B?SEZQSXRnZFBXaE1kMTFhWHNIOFF3SzVDWUVreGtac1VjUGVqZ294ZnVXdDZY?= =?utf-8?B?UUhYVTFmbG53MEYyYU9MbksxUHRhaU4zcnlLR2kyNzVIQ1BndS94bFhUOVQr?= =?utf-8?B?alRKSlN2RTdYRTlmWFZHdDdyTitYVXp0cjhKK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Xk1aVIvOEdxVUFhbmVZSHZqV1RtdzVTZUlQ?= =?utf-8?B?SzNHci9PUDRJYVNwUk5oanBuRkJreXMrdHVDN25BSWFsTGZ3N0pVMk1SYm4r?= =?utf-8?B?dWhPMUNFUmNtckYxZ1dQM09laTZJaHNoQndoOEx1d0Zndy9UbTI0VzJuT1BD?= =?utf-8?B?SUlpaTZyV1VIa00zL1k5d2FRUVRDV3ArczdDMjNvOGtRc3Z1T0Raa1NqOFU3?= =?utf-8?B?OUhuWnlFQW9QamNRYjBMeVkvNFFwQ28xbUtGaGs0ajZSV0owMDJ3VmRvY2VO?= =?utf-8?B?R2JBZmdVY0ExdTZFWlJYL0MzaVljc0FadTdRV3NSckJHRkhoOW1BTEZJcmNv?= =?utf-8?B?S2E2UGI3Z0UxRVNhdTBGVkFzbVl5aXN5WkhDc1NVVTVuQUxkdGRGbFpnVjBX?= =?utf-8?B?bEtlaC9SajR4YlVIdkpFMnUrT0VzNUxtYnhPbUdPamtGV1E9PQ==?= 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:(13230037)(82310400023)(376011)(1800799021)(36860700010); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2024 07:34:52.0209 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f2c5e9a7-bd5f-4cc2-ce90-08dc90fb78ff 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: DB1PEPF000509E5.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB8219 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 This patch set make DPDK library, driver, and application code use the compiler/libc memcpy() by default when functions in are invoked. The various custom DPDK rte_memcpy() implementations may be retained by means of a build-time option. This patch set only make a difference on x86, PPC and ARM. Loongarch and RISCV already used compiler/libc memcpy(). This patch set includes a number of fixes in drivers and libraries which errornously relied on including other header files (e.g., ) required by its implementation. Mattias Rönnblom (6): net/fm10k: add missing intrinsic include event/dlb2: include headers for vector and memory copy APIs net/octeon_ep: properly include vector API header file distributor: properly include vector API header file fib: properly include vector API header file eal: provide option to use compiler memcpy instead of RTE config/meson.build | 1 + doc/guides/rel_notes/release_24_07.rst | 21 +++++++++ drivers/event/dlb2/dlb2.c | 2 + drivers/net/fm10k/fm10k_rxtx_vec.c | 1 + drivers/net/octeon_ep/otx_ep_ethdev.c | 2 + lib/distributor/rte_distributor.c | 1 + lib/eal/arm/include/rte_memcpy.h | 10 +++++ lib/eal/include/generic/rte_memcpy.h | 61 +++++++++++++++++++++++--- lib/eal/loongarch/include/rte_memcpy.h | 53 ++-------------------- lib/eal/ppc/include/rte_memcpy.h | 10 +++++ lib/eal/riscv/include/rte_memcpy.h | 53 ++-------------------- lib/eal/x86/include/meson.build | 1 + lib/eal/x86/include/rte_memcpy.h | 11 ++++- lib/fib/trie.c | 1 + meson_options.txt | 2 + 15 files changed, 124 insertions(+), 106 deletions(-) -- 2.34.1