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 3EFF345698; Wed, 24 Jul 2024 10:22:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4A0A042D0B; Wed, 24 Jul 2024 10:22:10 +0200 (CEST) Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2060.outbound.protection.outlook.com [40.107.247.60]) by mails.dpdk.org (Postfix) with ESMTP id 8432D42686 for ; Wed, 24 Jul 2024 10:03:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=S/EPW+1gSaEYOrN8xDn9hnxEePu89u2ako5Rwm/WXJ58nQeNU0YSHvaZoQFf5Yc+ddnvK3mM092vK0us/a+CL/4revceYHBzaIPWFGOz8keya8opaCrFtpwJgHumC5ADjkcuTqPk9YofqRJOc10oBCBBPcgZzFT0Pkm67KLqfLVNPlkZPYsTi1YnMYmLw3N1kibIX3F37woH5hadJbxPtyX5xqC2fIHX/RohmUNca3PNdyLL5bLPdpbt6h78EsRr4xW7LHe7edUkXChpSQf+MkUTt2yBGN791ETyqftY2Yx1Xs7Y1RIx6tt/OcDCS0k6cmHgfTXqdp+NqO4Bu3Ty8Q== 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=opaxnHKtw3Mg0+ej7mpAqqgEKQGG3Eh2nSVA3L3ymlU=; b=CIQjXHUh6CMH9B0MqEAv23hfhyn5WvpxovvPAYy/w38SpM3b7K950zjNcA69rlTCU91oa43qrm9kMKw8D0AimFJq4wEf89RLatMAjWrYDMVWhQezBjblQkvn9Gq6j7qERysHar/kP32QbFpKCL1O9O2z3JNq7rFSW08p+DsPTv3gUhuinbLyiQyt6eHGgDyYQiuCS5CqQrPJtA5D7FRptoByYSIJ/sZb1EDLrsTvDZ2Rnu1wL2Mfm+LqWAqJWyoxtlfX22qSd2d6CrQAOLhU3Q5tRMMZx1mj5+9cB8Y03ettgPKP6LIgUA4UyN+B8MDSwpvtgcwCeqEcof3d5L0DYg== 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=opaxnHKtw3Mg0+ej7mpAqqgEKQGG3Eh2nSVA3L3ymlU=; b=uiR/nkD+IdWfyp3sAJ/51qcHAZtW3PR64Bwrh6fdq8MsC8uBn1T5/t6fH2T6YWJpxm2XpFIgZ2GkD5xyjDhWLKOfcqG/RvDZ6n7mBBebucbVmAFGvzO2kwyf77TX8Ox4w7M3dkLLadJbkyDwqNLlCANjWgsILne8U7Zt8BlVo8z5LuUQk/V1vaf2X3lgSv++pmRXQZjT4IaYK64tp+k/HmJ2PYuPdjuozsyeR2O8tIaiLRcVwRgrhECK+a9sG5btdiokREHMbzRL8+C0Tlb5ORi976mLy20tmZV2CUT/tSCchKLwLUqIKHh13AJBzNXdHFqs+aTvvtCzOou71Ewyzw== Received: from AS4P250CA0007.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:5df::11) by AS2PR07MB9025.eurprd07.prod.outlook.com (2603:10a6:20b:555::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.7; Wed, 24 Jul 2024 08:03:42 +0000 Received: from AM2PEPF0001C711.eurprd05.prod.outlook.com (2603:10a6:20b:5df:cafe::67) by AS4P250CA0007.outlook.office365.com (2603:10a6:20b:5df::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.14 via Frontend Transport; Wed, 24 Jul 2024 08:03:42 +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 AM2PEPF0001C711.mail.protection.outlook.com (10.167.16.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.11 via Frontend Transport; Wed, 24 Jul 2024 08:03:41 +0000 Received: from seliicinfr00049.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.60) with Microsoft SMTP Server id 15.2.1544.11; Wed, 24 Jul 2024 10:03:41 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00049.seli.gic.ericsson.se (Postfix) with ESMTP id 76AB8380061; Wed, 24 Jul 2024 10:03:41 +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 v5 0/6] Optionally have rte_memcpy delegate to compiler memcpy Date: Wed, 24 Jul 2024 09:53:51 +0200 Message-ID: <20240724075357.546248-1-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240620175731.420639-2-mattias.ronnblom@ericsson.com> References: <20240620175731.420639-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: AM2PEPF0001C711:EE_|AS2PR07MB9025:EE_ X-MS-Office365-Filtering-Correlation-Id: 50120b81-d051-41a3-4d3e-08dcabb72220 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?enlsNHh4Q2laV0ZYRDNrQzZ1YjZ5dEpLYi85QzdyQzhLMkpiSVlhZzRaNU9V?= =?utf-8?B?aHB5eWRLbGhTSGFQNUNsVUlqU20wbU5IVDBseGJzZTk0SXpRZ1FlRmZSL296?= =?utf-8?B?aXlHM2RaYXlLT1E5WllSZ0U0UmVPdDdoMUE2RlNLeEJhQTB0UDRtczJOVERO?= =?utf-8?B?ckJqVW5ZSHNiYTBEcnF4VFdSaGpoY29jWm5URjZDdlZsMTBXd1NDclU3S3E0?= =?utf-8?B?QjVqSjFGTlMwSDVCTU1yKzQxcG5tTmZBTmdLVHV6N0NqWkZxTGFiNHZhU3BJ?= =?utf-8?B?MThGWXZnN09aSzRTU1pHSlByM2YwNFozM0FjenZhRVd4dURZYjA4L3BQekZN?= =?utf-8?B?VzZwTHNqTDJPSHFzVTZ1SnB1U1VnRkNjSStjQUV3Rk5XSFRqcjN6QXZhdWQ0?= =?utf-8?B?dmNSTDJYU1prQ0NyTTZQRmJkNlhJNlFVSVFndjJ3WUE0cXZCSjJwU29MTzdk?= =?utf-8?B?NGJPZWJhUDRUZWNnSlpnU2UrdW4xQm16QlhwWndqc2lxSWdmc3JKbjNmY2hS?= =?utf-8?B?OWtyL0J3SDZuYTRRRzBzcVZ4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JT3lOWE5UZWJQb0Z5bjdGODhKdjdBL012QSt3aUM1alpWQkh0?= =?utf-8?B?RHgyOVE1c3Q0NXYxb0dramVIQW05RzkrbGhHQ1d0WnhmK3pUVGZ3a0lmMFdT?= =?utf-8?B?cCtWR2NUTlk5UFZFMnExbVN2TG1YUGEwcTA0NkFjT2JBODR2Vm91MHNZZmtp?= =?utf-8?B?VXhtcGJ6WkpscjIvRjVlK3l0ZzB1RllBbW1yYmFlUzQrTXc3L3EvWi9oUWZu?= =?utf-8?B?NWFLUDNZNVVUTnk1bGNRRzJrYVdjTTlVVi9JYmlmTjYzMzlhVVE4K1VnVGh5?= =?utf-8?B?ZDNMMmcxTUZDclUydk9SVCtRcWpPaGNrZTJxZXlWVHVCL2hzOFE5cExNdFds?= =?utf-8?B?bUFabFdmTHg3NmNFTUZiQUtHN1QzNzdTSm1DTEF4R3VscG52dzdMUndFRFli?= =?utf-8?B?UHh4U3kyYS9aS2p3VU1KeHZNWXBXQmxWSUNtSlA1SXE5Si9BU2RlQ1ZCQVBa?= =?utf-8?Q?iHd6LJ8HNxfxgrFxK0Py/s5voBtAEy5Y?= 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)(36860700013)(82310400026)(1800799024)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2024 08:03:41.9049 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 50120b81-d051-41a3-4d3e-08dcabb72220 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: AM2PEPF0001C711.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR07MB9025 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 Note: These changes are meant for 24.11, not 24.07. 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 (6): 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_07.rst | 21 +++++++++ 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 + 17 files changed, 164 insertions(+), 114 deletions(-) -- 2.34.1