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 0EE0344134; Sun, 2 Jun 2024 14:49:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9AB3D4028C; Sun, 2 Jun 2024 14:49:42 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2088.outbound.protection.outlook.com [40.107.6.88]) by mails.dpdk.org (Postfix) with ESMTP id 4179C40042 for ; Sun, 2 Jun 2024 14:49:41 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JUKuxBcX9XrZiIcvqYOGSRe3oIDxLV27OHD3YnmxecsTd35u/3msh0JQx0Mq7m0Lr5tEvKgWjACEu8906jqDxSZqU5SkPFkyo1HSYAiCA6KGulNMT7Htknap3Iysv2+Lm67Z6zX7rBzDJwhuyjNjW63V5uiUCrt1CIIaeU23qTtbXZ7uLkzU/AsFrnWlG17kaE3pJo7VEOQLh1sUKDNIX6ErSH4hF1dtWrzBxgGRGDS1Qeo0492kI773RRQC1SGk/7lDKePRcB+vFPR+rcfTqfhGthch8N5MfwpplA1FJI0ai238yBmkyK9alzYPHPj4Yhkf5Tm59gX9HoyXy7AlQA== 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=KLXG2ZSku0wiVR7hL0Skvy5SQda37auu0kaMLiPfPjw=; b=KxevGIuo8fckIZ4f/2Fr/2Y3VObNA7v3+upHPojqB0g/nm0dQ/tttE3j6PXoHQL3zDibgUkRroZvhX47TPPpDYyLBUsHAR/WnJ2sGp3yBXWVmoq986axNB4zOX7pAjc6y5FQPXUwpex2Q+QmBjLBf+kYkcBrXs02DdvThrxqlo4g6xnnqMCbS1tj5jbhW6/zcc4aNSq7fnH53IJ2eZmyUVjqOQ4LTlNmXubyJuci41E++ou/9i9lbjzluN+eSJqix7lgMg5FnZOguBYraYrW5onFud8FPdoNbUUTkuI5jpRjmIlEL25qyfsOGWpXUiYzqkO0l7d91ZNXDNpS74ovpA== 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=KLXG2ZSku0wiVR7hL0Skvy5SQda37auu0kaMLiPfPjw=; b=i9ty/WXV57OpwOvhbMEIeriwPFD3JzCW9JqZyTIBtjceFjq3PI4/P2/sg2DskUVV5igRRK1gNRAjuIF0A0dRL7S263LDp0h3QGmKREHiwlamB0OMdO8WaxAHCF1C8Qq/wPiXsyw5kUooH7/eryTLLPwWyAuY3IpFOK0ICcODG4cHl5fw7lbBBt1a6Nr2joI79ciqe8/C4pYe7JC+aaUn3LLLKDsc/LpfMXJZFwJ2MX9v5a2daUQzVl42OIwzK0XUT3xmqp1HbQqnsl+FGXLqRuoO8wAwAvV80OX97KOjLochnI/C1xR2PEp+X2622hkG9wDE1Brhnypa4Nzea/kA8g== Received: from AS4PR10CA0022.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:5d8::6) by AS4PR07MB8507.eurprd07.prod.outlook.com (2603:10a6:20b:4e7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22; Sun, 2 Jun 2024 12:49:40 +0000 Received: from AM1PEPF000252DE.eurprd07.prod.outlook.com (2603:10a6:20b:5d8:cafe::43) by AS4PR10CA0022.outlook.office365.com (2603:10a6:20b:5d8::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.28 via Frontend Transport; Sun, 2 Jun 2024 12:49:40 +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 AM1PEPF000252DE.mail.protection.outlook.com (10.167.16.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.15 via Frontend Transport; Sun, 2 Jun 2024 12:49:39 +0000 Received: from seliicinfr00049.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.66) with Microsoft SMTP Server id 15.2.1544.11; Sun, 2 Jun 2024 14:49:39 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00049.seli.gic.ericsson.se (Postfix) with ESMTP id 699E0380061; Sun, 2 Jun 2024 14:49:39 +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: [RFC v3 0/5] Optionally have rte_memcpy delegate to compiler memcpy Date: Sun, 2 Jun 2024 14:39:16 +0200 Message-ID: <20240602123921.363625-1-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240528074354.190779-1-mattias.ronnblom@ericsson.com> References: <20240528074354.190779-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: AM1PEPF000252DE:EE_|AS4PR07MB8507:EE_ X-MS-Office365-Filtering-Correlation-Id: 42a81356-4afa-40be-f6d6-08dc83027792 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|376005|36860700004|1800799015|82310400017; X-Microsoft-Antispam-Message-Info: =?utf-8?B?T2Q1TTNkYzJzSzZnR3RzWE0rWnpKRDdmdHdIdEptamdMZmpUejJkcnFJR2R5?= =?utf-8?B?YStEbDAxR01Bd0lzY2d4ckh6YzI1U3VGUktGNGh0MzUwcnhHSTVLVjlLalhT?= =?utf-8?B?SDdtaVBwbTFPdlV0dkpCQXZqdVQ2TjJ2NUtpR2ZZbVdJMkZSYnhhZTdxWDgw?= =?utf-8?B?Wk9YWDJ0SW8zZjRKcm5Hd2ZCZmRoLzBkTE9FRVVHdUZ3ckw5Rk12VlFzT3Ra?= =?utf-8?B?VEFiZDVJdlZyR1kzcFdINFNHVzl5SVljYnZwTzBqMnY4MVNGUGlXVTAraWhk?= =?utf-8?B?bGZmMHExQ3pHa0RId0R6bkR6SGxwajlzaS9QR1pPUDY1NmJMaitHTTV5cjhP?= =?utf-8?B?Y1RLL0ZnZVZQSm1PUzEwZmVwamNMUGl1OWtkb20rY0RYK1hPOHE3eENIUzZK?= =?utf-8?B?SlZoZmowZUVUZTJxeStpNGRQZ3RsQmhEazFaZHhHUno1NzMxNmRQRDJrMXda?= =?utf-8?B?eE0vOVZWY1V3WUJHaE1pMDVtYWJneWR5a1ZZMHVrb1RLSDBRRVJSRWtPTHV4?= =?utf-8?B?cDRicDlGOXZ5cUN2R2hxS3RmM2RyQy9CeWprc3dmL1o0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RVW1QSkhMQVAwSkdBT1BWVWFWelBDTUFS?= =?utf-8?B?NUJ1dzdSbjVtREFsVHlwVmFUeTB4RnI4QTVjdXpXbFJ5YmMrUXBLbUdaRHVh?= =?utf-8?B?QTJEdVhJdk5CMXE5ektoRlY5b1k4UXVXRkdUWDlOUUVrRndKWVBaL3JUQllM?= =?utf-8?B?Y2pEUWxpejhNVGltKzQ1ZXU2UHFSRE9VakN0NW15SXozTHE5QVM1dExuZU13?= =?utf-8?B?ZlpGbWVFZ3lpellkNVhzVExVVHlSYktGaGN1NE1walY3ekxVemM0ZGdseU9U?= =?utf-8?B?dkpOaEFoS0hmUlJEaU5GVjFZQmFuNFF4UW1VZERPWmtXZWY2cTYxV1RoaEho?= =?utf-8?B?SWR3KzQxOW5weUU0UkhoYjJDNFQxVnlNS0V1d3RzQzNYTjdsaEdqWWE1Qitt?= =?utf-8?Q?yHgM+21f9Kh41?= 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)(376005)(36860700004)(1800799015)(82310400017); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2024 12:49:39.8592 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 42a81356-4afa-40be-f6d6-08dc83027792 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: AM1PEPF000252DE.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR07MB8507 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 + 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 + 13 files changed, 102 insertions(+), 106 deletions(-) -- 2.34.1