From patchwork Wed Jul 24 07:53:51 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: 1160 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 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_R=C3=B6nnblom?= To: CC: =?utf-8?q?Mattias_R=C3=B6nnblom?= , =?utf-8?q?Mor?= =?utf-8?q?ten_Br=C3=B8rup?= , "Stephen Hemminger" , David Marchand , Pavan Nikhilesh , Bruce Richardson , =?utf-8?q?Mattias_R=C3=B6nnb?= =?utf-8?q?lom?= 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 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?q?zyl4xxCiZWFXD3kC6ub6ytJKb/9C7rC?= =?utf-8?q?8K2JbIYag4Z5OUhpyydKlhSHaP5ClUIjSm0mNHT0lxbse94IzQgQeFfR/oziyG3dZ?= =?utf-8?q?ayKOQ9ZYRgE4ReOt7h1A6FSKxBaA0tP4ms2NTDNrBjUnYHsba0DrqxTWRhjhcocZn?= =?utf-8?q?TF6CvVl10WwSCrU7Kq4B5jJ1FNS0H5BMMr+41pnmNfANgKTuz7CjZFqLab4vaSpI1?= =?utf-8?q?8FYvg7OZK4SSZGJPr3f04Z33AczvaEWxuDYb08/pPzFMW6pLsjL2OHqsU6uJpuSUg?= =?utf-8?q?FCcI+cAEwFNWHTjr3zAvaud4vcRL2XSZkCCrM6PFbd6XI6QUIQgv2wYA4qvBJ2pSo?= =?utf-8?q?LO7d4bOebaP4TecgJZgSe+un1BmzBXpZwjsiqIgfsrJn3fchR9kr/BwH6na4QG0sq?= =?utf-8?q?Vx7o8Nm6C44aVRECW0VAc7lcZJn5OwRQVQuFJaNf4q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CLAxGulpnvw7LRwEDYbP?= =?utf-8?q?xxSy2a/ZKjwUMJxvMYpWBlVICmJP5Iq9J/ASdeCVBAPZiHd6LJ8HNxfxgrFxK0Py/?= =?utf-8?q?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(-)