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 83A09459D7; Fri, 20 Sep 2024 12:36:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 63B83427C9; Fri, 20 Sep 2024 12:36:39 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2042.outbound.protection.outlook.com [40.107.20.42]) by mails.dpdk.org (Postfix) with ESMTP id F031240275 for ; Fri, 20 Sep 2024 12:36:36 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=w/VUCbgy/xIVfewuDePUNutwcfWRUe9gb0et290qUsuxRrqOZjO7wGFz9uXQu+hkouotXqZ5IJXpj78Z71tVbj9Zgx/KfcU9ZP9bhM8MdTRF28Q1+9TrJsQ2sWPYUkTqBuFiuTWHn7xDPoTjEUZw3fcfRJMHuqVY38dM7FJNDafYr3jKRD3EjtRzOPCWksRp9KRUqnSHVowFwbGWRZT8jTODC2Rzt3glal5FOh69qPyxlAUPytOIkBD2MLvjhb9zFIYRV9rFMpwGfUI2o9X/09VjHgQtfQ76yU1JWO8YxJCQLTe2Oe63TwDQgPiG8e8tDcl8w4xPQ8fNFhcMPRO2FA== 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=nv1ktl07BSD2n4qElooYnVD92T7VTm1m+ZQ3o8V2eNw=; b=CpLYM7TeKnOfPF8UQmIJzJ2yiXYT9NLA3BwExJmIK0YyNkKm7XDX/hOZEsD2IZbjCxasmOKNu+Ws0dGA/LzMDudkiUxpyQwhd0vr5b5O2eYQcwB9GrAhjxsawlVKAbwNw0QKaxF6LUa1/5iVBNCHSccu/ofkeGG3VYCqg4UHkfWEXgZtFIlIvtabW+wcI980eJaAGQR2Cp2eHQtbF/u/4REtcpWwWEyVnvoVW0gwk/5Lw+P4/oreUGS5vQHycjfwVph/KyJK9HalDwYuV1XSc3PvWblKZiTkltobflpRnwa1OCJR62o5k3jza+83OJRhDi0x2rCNPhi7/rj9fveO2w== 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=nv1ktl07BSD2n4qElooYnVD92T7VTm1m+ZQ3o8V2eNw=; b=bP44Lv1yzeg5nwjZb2LBhdFBD5xTJVMD8DSK4y4JryBTefnW8SOAsIJeCA16HgIyR4d1C9PQGtUh3vMP74dXvnNTvYQk18ALpz6kW6dkxd84zmy8voOyoEzdECW5pAQuwv0ze2X6/k49YqT+Ag0MSX8z5ktOa+E3F+jK8ff1HYo67H9PSOU0btl8qi/3fiTMvGYf0QzquPEtEH3FUO+yWEaICHeKtrvPkghNm2n3h16ik6jA1Nlt6iiUXsqZyrLxw9LsCC6vvZClBv+ZR1Ad/rwHk5VDQBr0Vyf+4oQtYe4x5GBvmL/L8tf1I9qDZR72zG7EZTEVpu2uV6L9Al61rA== Received: from AS9PR01CA0009.eurprd01.prod.exchangelabs.com (2603:10a6:20b:540::17) by GV1PR07MB9071.eurprd07.prod.outlook.com (2603:10a6:150:8a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.16; Fri, 20 Sep 2024 10:36:33 +0000 Received: from AM2PEPF0001C70E.eurprd05.prod.outlook.com (2603:10a6:20b:540:cafe::36) by AS9PR01CA0009.outlook.office365.com (2603:10a6:20b:540::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.25 via Frontend Transport; Fri, 20 Sep 2024 10:36:33 +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 AM2PEPF0001C70E.mail.protection.outlook.com (10.167.16.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Fri, 20 Sep 2024 10:36:32 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.69) with Microsoft SMTP Server id 15.2.1544.11; Fri, 20 Sep 2024 12:36:32 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 536721C006B; Fri, 20 Sep 2024 12:36:32 +0200 (CEST) From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= To: CC: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= , =?UTF-8?q?Morten=20Br=C3=B8rup?= , "Stephen Hemminger" , David Marchand , Pavan Nikhilesh , Bruce Richardson , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Subject: [PATCH v6 0/7] Optionally have rte_memcpy delegate to compiler memcpy Date: Fri, 20 Sep 2024 12:27:09 +0200 Message-ID: <20240920102716.738940-1-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724075357.546248-2-mattias.ronnblom@ericsson.com> References: <20240724075357.546248-2-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: AM2PEPF0001C70E:EE_|GV1PR07MB9071:EE_ X-MS-Office365-Filtering-Correlation-Id: 778dfaca-79e1-41b4-620a-08dcd9601856 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|1800799024|36860700013|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?OHd5anN2emFyUUx5RU5LN2hTS3VLRDl0MUZ3Z2NGUXRoVmRsZ1d5RGhJWEUz?= =?utf-8?B?NDVBSDJTb1ZPbnhYOGlHbzRuWGRsQ3pmeFhMSXdiQXRZcng0akUyR2xWWHB0?= =?utf-8?B?cXJxcTFmeFpYRnZUSi80NDByRHlIc1luZDhOb1VIZUQwUUVLeXVVdzlkekZt?= =?utf-8?B?ZVJMUWxsTnFWaTc0aVY4ZktmcHdqenMvMUN2T3pXZ2twaUZET3BsMEFsVWNi?= =?utf-8?B?QVgveVk2TWo3Uy9VSlJNYVR6SWoyR2dUMWhVMDV5V21peHEwNDBIOGZFQ3lR?= =?utf-8?B?bHpVVm5KNUYrS1BoczU1OURQR2kzVEJIL3J2d0FYMnpISnhLMW5NcW16ZlNI?= =?utf-8?B?VmYzWmM4UHpLMFNDNkRVTjFNanpxU21zNC93TzJwdHVGYU0rRmM3TXd6Lzhp?= =?utf-8?B?OUZKNWY3RVhMaHlhTS9oQktHbVQ2MG5ESUlreWVOc0dEWXMrMmtFaHl3M3U4?= =?utf-8?B?QVZSc01neWxnMVpHRlNJd2ZoY1RWY1JmUWpxUWlSYk80VTR0MUhMQldwL1hl?= =?utf-8?B?VkdlWFkvMzZoR0JueWxkRlYzZ2orN3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TFRSGFVZ2hRYjJFYWVkbm5WVVhSREJyRXZ6R2F0TTU1K1UxR1ZK?= =?utf-8?B?MG94S0R5ci9WNzdGd1lJcDdqbGIyakFNNDBDS3Z2OHVOeDU5eDZvVnRUaFYz?= =?utf-8?B?a29pYWNiOWxMSkZWNlUzMElpb2FIcXNYMXJEUnpnZkV3WHZpWTM5TnVwK0pF?= =?utf-8?B?Nk11YWZQSmFQTDhITVpGRHVFdmFrdzgxdTR5bWRSRThZekJPRitXYmZYZldT?= =?utf-8?B?ai8vVVU5TUxQTS9JRHhvODJtRUNkdDlvK2ZzNHlOZy9Lc3RWdm81bVFwMFI2?= =?utf-8?B?aVpmMVBYVm4xU1p1VXBKd2FZd3Z5TzdJZVZlOG5RWWdnZVNYaXdoYWJKWHpy?= =?utf-8?B?MUNnWW12UW1FeGN4Z01UNGZBM2lWS1g2andOb09jQkJuWVBmemlqVTJzazA3?= =?utf-8?Q?caLd8PmF0bBoG?= 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)(1800799024)(36860700013)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2024 10:36:32.7544 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 778dfaca-79e1-41b4-620a-08dcd9601856 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: AM2PEPF0001C70E.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR07MB9071 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 optionally use the compiler/libc memcpy() when functions in are invoked. The new compiler memcpy-based rte_memcpy() implementations may be enabled 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 header files (i.e., ) required by its implementation. Mattias Rönnblom (7): event/dlb2: include headers for vector and memory copy APIs net/octeon_ep: add missing vector API header include distributor: add missing vector API header include fib: add missing vector API header include eal: provide option to use compiler memcpy instead of RTE ci: test compiler memcpy vhost: optimize memcpy routines when cc memcpy is used .ci/linux-build.sh | 5 +++ .github/workflows/build.yml | 7 +++ config/meson.build | 1 + devtools/test-meson-builds.sh | 4 +- doc/guides/rel_notes/release_24_11.rst | 20 +++++++++ drivers/event/dlb2/dlb2.c | 2 + drivers/net/octeon_ep/otx_ep_ethdev.c | 2 + lib/distributor/rte_distributor.c | 1 + lib/eal/arm/include/rte_memcpy.h | 9 ++++ lib/eal/include/generic/rte_memcpy.h | 61 +++++++++++++++++++++++--- lib/eal/loongarch/include/rte_memcpy.h | 54 +---------------------- lib/eal/ppc/include/rte_memcpy.h | 9 ++++ lib/eal/riscv/include/rte_memcpy.h | 54 +---------------------- lib/eal/x86/include/meson.build | 1 + lib/eal/x86/include/rte_memcpy.h | 9 ++++ lib/fib/trie.c | 1 + lib/vhost/virtio_net.c | 37 +++++++++++++++- meson_options.txt | 2 + 18 files changed, 165 insertions(+), 114 deletions(-) -- 2.43.0