From patchwork Thu Jun 20 17:57:18 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: 1058 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 34A82454AE; Thu, 20 Jun 2024 20:07:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DFE0F42E4D; Thu, 20 Jun 2024 20:07:35 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2040.outbound.protection.outlook.com [40.107.15.40]) by mails.dpdk.org (Postfix) with ESMTP id 96DAC427A9 for ; Thu, 20 Jun 2024 20:07:33 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cExzvVhIHrrOCCEWVn4hAGonDKEgAShKKu4hcknVLIbo17c9bwpuPg8HO1iFUnc7wpdQH8By6Hhq9B10ATBsZe+ngf3jbJt4SiXXZ68yBLmB3hsJffuwuDqGBdBSt671HquE7Nj1G/+r+QMDxmgH3JrUX61Qk9DI4lgtowf2H2dCEmS8S5IP91AXt251r+B3t9gyRProDDw+uYzzI3yKaSMGBgvVxvsG7A5yQlrzLKoi1A+d33kQbGJNs82jz1BuW3vGJnT15POqA4erWRzKi8vORHJk+BcIEgIwUzIZ+Z5UHfqXRedSdSduL6cL3h0oZfs1wAOaJMCHsMrzqDNMVQ== 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=mdk9BddDVhk94mAs3x9my5dS02iwECKeZ9exebP0bL4=; b=XsWVesqq4PF7BZQNEUSPpzj2hS8Ilz0+VQ+lDlbJ+BTz6GP/tKojUvcOleupxv2JdF4JFBhrrVSz2LM9ybXLfgAfnrwHZLB6YbFXzGTE1dkcUya0vEzeRKqTlVypwbFhEXdpPyZJlZ23FV971wZavMLYDUM5OFAZ+CAPu2dLMEO8TGLnSraLRTXFa24sIDxrlGkS+WIr+4X10W5TDJI4Ea+7CMiOPjMHBS/w5/fokdLrxkqJXw6DsMDb07CbiGgDnywzuKUfmBgw8pW3GPj4SbPzVTxdklchesVo4geMLDsYTESu2RNE6Mddp9hZfBZiBByWzLhwK0KCozneK0jhAw== 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=mdk9BddDVhk94mAs3x9my5dS02iwECKeZ9exebP0bL4=; b=QS1wbLYSxcg9A6JNX0zactbOwn2igAp6+7WBzxWw6EY4UEJ+//6sDcNccbi5Q6PzZ+XfKjF3RArw+ASWU34U2qiR4k5VJGkhMdlPVSenLJ583IQjPK/UIyJx4BniChN6g5cwUZQlnhfFJcJPjsY3kwTFH/cTgXPjk1gphvKqUwRAVRx7fQ34QLlHbCjJDs01K5TtYCgde13hjYIdfjtkZEWWopQBU+GKqepfzVEnf6Rnr9A1XCQ+pPeyyfbg9ZVtQBt5brFM8AC1Dc4+QMzmkpiVqkaZjoLgfw78Bv8ZyGh7cM6quZ30XKOZEj04N9xu0ZT1I8prF1Tncf8dr7hmTg== Received: from DUZPR01CA0183.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b3::21) by AS8PR07MB9379.eurprd07.prod.outlook.com (2603:10a6:20b:619::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.16; Thu, 20 Jun 2024 18:07:30 +0000 Received: from DU2PEPF00028D10.eurprd03.prod.outlook.com (2603:10a6:10:4b3:cafe::6e) by DUZPR01CA0183.outlook.office365.com (2603:10a6:10:4b3::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.34 via Frontend Transport; Thu, 20 Jun 2024 18:07:30 +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 DU2PEPF00028D10.mail.protection.outlook.com (10.167.242.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Thu, 20 Jun 2024 18:07:29 +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; Thu, 20 Jun 2024 20:07:29 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00049.seli.gic.ericsson.se (Postfix) with ESMTP id E8FEE380061; Thu, 20 Jun 2024 20:07:28 +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" , Bruce Richardson , =?utf-8?q?Mattias_R=C3=B6nnb?= =?utf-8?q?lom?= Subject: [PATCH v4 00/13] Optionally have rte_memcpy delegate to compiler memcpy Date: Thu, 20 Jun 2024 19:57:18 +0200 Message-ID: <20240620175731.420639-1-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240620115027.420304-2-mattias.ronnblom@ericsson.com> References: <20240620115027.420304-2-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028D10:EE_|AS8PR07MB9379:EE_ X-MS-Office365-Filtering-Correlation-Id: 57942e96-a1e0-4c21-decc-08dc9153d97a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|376011|82310400023|1800799021|36860700010; X-Microsoft-Antispam-Message-Info: =?utf-8?q?u24UZhmchDPVjgM6p66t6OKr//hdU/Q?= =?utf-8?q?a8YvT9ty6pwPL/D+/5/niiz0qum+d3fr64qVOg75+FSBw9CDK6Pb7QKTg9sWvinIV?= =?utf-8?q?wR3G7UtGyIq17rCuQsAPruwdSO7sYFesDJTJwkH1Ek7M8AsM1uOLcQnamlNomMMZs?= =?utf-8?q?fXdldo9hu9wkiIHgEQ4v52jC8RNjnvLR6s9R/+uDWVE/WoG1STKybQP4QX/p+EklF?= =?utf-8?q?Nkq3EQez+Eljkyv7VZVunG3i7XgjcEYxHf6q97AFU6hNUSe4kk5Q+8Q7OrK+rNBmN?= =?utf-8?q?kL5BNpFjfDSM8ugwgNRaFIwBILjN/EXZ8mr9oUoaMN6QwUaIZYmyQsz883APqg1XI?= =?utf-8?q?J9gRI57u9ehZGAnlkZsrhxQR6qhF9BXpoyZRhkc6XBO73r1BnSHaTSCalppT9yYvM?= =?utf-8?q?RUWQVHOAVKn+Ycb9ucorKB4vdCReuNt0RZXXeeyotNVO9EQ/DZ/MAiniwzPWXgc8m?= =?utf-8?q?oB2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deF?= =?utf-8?q?YaJLIrmMc4tUc+ZbwaXMMpr5HhS9qmRwjQ=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:(13230037)(376011)(82310400023)(1800799021)(36860700010); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2024 18:07:29.6007 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 57942e96-a1e0-4c21-decc-08dc9153d97a 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: DU2PEPF00028D10.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB9379 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(). 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 (13): net/i40e: add missing vector API header include net/iavf: add missing vector API header include net/ice: add missing vector API header include net/ixgbe: add missing vector API header include net/ngbe: add missing vector API header include net/txgbe: add missing vector API header include net/virtio: add missing vector API header include net/fm10k: add missing vector API header include 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 config/meson.build | 1 + doc/guides/rel_notes/release_24_07.rst | 21 +++++++ drivers/event/dlb2/dlb2.c | 2 + drivers/net/fm10k/fm10k_rxtx_vec.c | 3 +- drivers/net/i40e/i40e_rxtx_vec_sse.c | 3 +- drivers/net/iavf/iavf_rxtx_vec_sse.c | 3 +- drivers/net/ice/ice_rxtx_vec_sse.c | 2 +- drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c | 3 +- drivers/net/ngbe/ngbe_rxtx_vec_sse.c | 3 +- drivers/net/octeon_ep/otx_ep_ethdev.c | 2 + drivers/net/txgbe/txgbe_rxtx_vec_sse.c | 3 +- drivers/net/virtio/virtio_rxtx_simple_sse.c | 3 +- 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 + 22 files changed, 131 insertions(+), 121 deletions(-)