From patchwork Wed Jun 5 06:49:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Mattias_R=C3=B6nnblom?= X-Patchwork-Id: 983 Return-Path: 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 717724415A; Wed, 5 Jun 2024 09:00:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B5D75406B4; Wed, 5 Jun 2024 08:59:58 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2052.outbound.protection.outlook.com [40.107.6.52]) by mails.dpdk.org (Postfix) with ESMTP id 961D1402EC for ; Wed, 5 Jun 2024 08:59:53 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SDk3YBYWlc/yo5ppiFC+H6EWazVMvV2f4b1ru8ahOi1HXKKw9naxE7xkL8Pc7jm6qu9lc+NcKJecsvTuBghq77x3bHPjBUTZAzB1TjkCygisGuEBeUhv9y4qd7OztY5ebjiJgxr3VXHtmozFlcQEDi5/vZKVMbJgqZ193q6iXeNVTsb6EEY/xW7AsAkIQjUwfH7ieiv0HqjbgVQ67kJc2DK8RF836qJM2k6YuHAAAwr0wLja8bOV3wrGixDNZv4uAeKEF2OvS1ztp2KWiFam+tdEgiP7PY/CV2OazdmefCWzWlwDlFbVp5gnMB7aEnUGe692ypx9LzGZJ4yKwUK2og== 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=kIHn22PZklTO3YmUHChCoXFqtS/pU/Ju4llqci0nU2Q=; b=ecJa92W+hBjvgXlbDQFecvxJ1NoAR7BtCTU0yxg7I/8v8pq64VJcsuJSDGLbDlQVEG+dapmAD2+UrxK9w/QSVAE0kDiCG+I2ENSBho9V8G+JPvpoI7pfKJ2VbaDlGIf9B85wy/niz+BgHPf/EKwWLhokJ0W8uRadDriYgDYKitSlx4+1FT1JydE1UkHjCRDAuIi46xO+O/9CxucwDMDxQirNQQNFhup/g0CAly4n4baMe76CVVEKVXrmnMCtBztZSObKUvqrMftoQF80E/c0iqbbc2FYLGK6F2rUaAqmyS0R3sRdmr0FmYkM8zBT+CUSEFwwgf2v3PEaOuApI0++pw== 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=kIHn22PZklTO3YmUHChCoXFqtS/pU/Ju4llqci0nU2Q=; b=MzZLcSvVf0Xhj0MLsF52vX3+nHr6pAXsDBarUIgq4cLi8uSfDlF7vMqRl2ozoBaoJ8u82WldxykIL7EVWiMW2HCePxF/40p4r7gs/hOh+8iZdU1hR80UJbaEbQE6mEOLQyK6jFJyLJlKifaDiA3pro6e6rZBc6nekRutJKgKa6SFpHu374N+wGrgtPpG1kcwxuX/NwqWVn6R9DVmPrw6/nifEiL7nV4psaQKxQH8sFM6JW3SwTwm5myG6j531FtZORWWJZB2QVFrDpvFNI62qbeJqK7u6a8LpftDsSyYRzdN7hUyBl8aZWhm6Q/nSQMekHaCUu8twBpd1x+PLRC7tg== Received: from AM0PR02CA0159.eurprd02.prod.outlook.com (2603:10a6:20b:28d::26) by DBBPR07MB7355.eurprd07.prod.outlook.com (2603:10a6:10:1e2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.31; Wed, 5 Jun 2024 06:59:50 +0000 Received: from AM3PEPF0000A79B.eurprd04.prod.outlook.com (2603:10a6:20b:28d:cafe::4f) by AM0PR02CA0159.outlook.office365.com (2603:10a6:20b:28d::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.31 via Frontend Transport; Wed, 5 Jun 2024 06:59:50 +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 AM3PEPF0000A79B.mail.protection.outlook.com (10.167.16.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.15 via Frontend Transport; Wed, 5 Jun 2024 06:59:50 +0000 Received: from seliicinfr00049.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.68) with Microsoft SMTP Server id 15.2.1544.11; Wed, 5 Jun 2024 08:59:49 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00049.seli.gic.ericsson.se (Postfix) with ESMTP id 36CAB380061; Wed, 5 Jun 2024 08:59:49 +0200 (CEST) From: =?utf-8?q?Mattias_R=C3=B6nnblom?= To: CC: , =?utf-8?q?Morten_Br=C3=B8rup?= , Stephen Hemminger , Abdullah Sevincer , Pavan Nikhilesh , David Hunt , "Vladimir Medvedkin" , =?utf-8?q?Mattias_R?= =?utf-8?q?=C3=B6nnblom?= Subject: [PATCH 0/5] Optionally have rte_memcpy delegate to compiler memcpy Date: Wed, 5 Jun 2024 08:49:40 +0200 Message-ID: <20240605064945.369310-1-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240602123921.363625-2-mattias.ronnblom@ericsson.com> References: <20240602123921.363625-2-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM3PEPF0000A79B:EE_|DBBPR07MB7355:EE_ X-MS-Office365-Filtering-Correlation-Id: d063eaad-0331-4d2e-e9a6-08dc852d17f0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|36860700004|1800799015|376005|82310400017; X-Microsoft-Antispam-Message-Info: =?utf-8?q?CK42I7kY+4Aq2H2+4UWl2uajBjV/5c8?= =?utf-8?q?JZ7bKV8YgHjEmPaeS8yE/QiKk0cXX+tMV4X2EDjLpi4/iLFXC3erGZZuPh3SkjsTL?= =?utf-8?q?65/m+P7koqVfpFoQwmLaMSeM/gm5r7dFwTW6sDGLSjbPPgJMkRPNxG6+0hwdciIUU?= =?utf-8?q?LKulgUKZv4WxXx6R9s7p6go9cNThYx7P23wkRx1tFh8HQgVHexlHLWp/QyVj6VzGE?= =?utf-8?q?VcVo4yIY9rCJ7sz4t1ooykb4IdtwwPqKWf86D89taUGqdTRUkJcs5UukqQLePNZcH?= =?utf-8?q?DC2Byjjs4rGiA9OXkFYEdbUoCtBAuuag+So8otdXCRf9QiL1o9Oo2zpxlMtn40QgF?= =?utf-8?q?F2pqEueSGH51o+zb5X65j4wiNO4kGvfi2HuvYfJzm59OchQIFJv4O7temn2LBxgRo?= =?utf-8?q?RxlSZlSc6F4kdLxreAk9uRFubfrDenKQl92ykuiyUjXhhg9iOdvbhU+Gi+3/bA+5J?= =?utf-8?q?Sx5Ne4g0IgXwSdws2UplK7+cgE4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wEfUHQ=3D=3D?= 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:(13230031)(36860700004)(1800799015)(376005)(82310400017); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2024 06:59:50.0829 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d063eaad-0331-4d2e-e9a6-08dc852d17f0 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: AM3PEPF0000A79B.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR07MB7355 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(). Mattias Rönnblom (5): 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/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 + 14 files changed, 123 insertions(+), 106 deletions(-)