Message ID | 20240920102716.738940-1-mattias.ronnblom@ericsson.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org 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 <dev@dpdk.org>; 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_R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com> To: <dev@dpdk.org> CC: =?utf-8?q?Mattias_R=C3=B6nnblom?= <hofors@lysator.liu.se>, =?utf-8?q?Mor?= =?utf-8?q?ten_Br=C3=B8rup?= <mb@smartsharesystems.com>, "Stephen Hemminger" <stephen@networkplumber.org>, David Marchand <david.marchand@redhat.com>, Pavan Nikhilesh <pbhagavatula@marvell.com>, Bruce Richardson <bruce.richardson@intel.com>, =?utf-8?q?Mattias_R=C3=B6nnb?= =?utf-8?q?lom?= <mattias.ronnblom@ericsson.com> 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?q?8wyjsvzarQLyENK7hSKuKD9t1FwgcFQ?= =?utf-8?q?thVdlgWyDhIXE345AH2SoVOnxX8iGo4nXdlCzfxXLIwbAtYrx4jE2GlVXptqrqq1f?= =?utf-8?q?xZXFvTJ/440rDyHsYnd8NoUHeD0QEKyuUw9dzFmeRLQllNqVi74iV8fKfpwjzs/1C?= =?utf-8?q?vOzWgkpiFDOpl0AlUcbAX/yY6Mj7S/UJRMaTzIj2GgT1hU05yWmixq040H8fECyQl?= =?utf-8?q?zUVnJ5F+KPhs559DPGi3TBH/rvwAX2zHJxK1nMqmzfSHVf3Zc8PzK0SC6DUN1Mjzq?= =?utf-8?q?Sms4/wO2ptuFaM+Fc7Mwz/8i9FJ5f7EXLhyaM/hBKGmT60nDIIkyeNsGDYs+2kEhy?= =?utf-8?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9o+fs4yNg/KstVvo5mQp0R6iZf1PXVn1SZuUpJwaYwvyO7IeV?= =?utf-8?q?e8nQYggeSXiwhabJXzr1CgYmvQmExcxgMT4fA3iVKX6jwNoOcBBnYPfzijU2sk07c?= =?utf-8?q?aLd8PmF0bBoG?= 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
Optionally have rte_memcpy delegate to compiler memcpy
|
|
Message
Mattias Rönnblom
Sept. 20, 2024, 10:27 a.m. UTC
This patch set make DPDK library, driver, and application code optionally use the compiler/libc memcpy() when functions in <rte_memcpy.h> 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 <rte_memcpy.h> including header files (i.e., <rte_vect.h>) 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(-)