From patchwork Wed Jul 24 07:53:52 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: 142681 X-Patchwork-Delegate: thomas@monjalon.net 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 5D3E345698; Wed, 24 Jul 2024 10:22:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6CBFA42E74; Wed, 24 Jul 2024 10:22:14 +0200 (CEST) Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2051.outbound.protection.outlook.com [40.107.247.51]) by mails.dpdk.org (Postfix) with ESMTP id D58A041153 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=o9yeHnEvjaJWD09a2+PJH9fQAXB1B09QHb/SpDkLSO4iAmWWI+jH6PJS/nj+ZNf5HnGdPCK1vvOF5Wjng47ZouM3pXhXKT8AtwXQBRkpcJgLqkmeQZXmwXptkFvJjMt8bnwlasLjhLZQnzpIJbuhNBGAr8E5QG2W7RixlbPsAip+N7gJQ4UiEfrtAmf3eH57tcFMSMobpHkZ1pm0JLrfeOinb1RZi2W98r39p5wYFy2x95gLe8cpZJbyIjMfgiu5W1dAZHMw9GeR9X6LIGMmwEL+92uCDgbX3SoMFKzVJJ2PvxrLcVKm98dX6aCHmFLtN2caycNs9HaMj/9K7lQ9Zg== 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=/VCcL3o+quilgdbTQxpUJjKtAzsHlTl6UOlGYhQ93Ak=; b=Z04c1nBajE5Gb1kMSGUII0W3ptbHzpslNP0my9ILwuF4Z7wCkbT63BXz4+grDpJFizfg8XGWo13ZV/9lLlm1NgCwyrBWwLiOB5kUhjPoWRHw4X6styBTLNjSMT78yyrnbTVJSf6d2GeELQK1d3CGq+7IrcpovoqO4LElByZkvl+cYeV/Cmn234rVn1p8CYxOUZ1YGKiWCZIai+8/5egAtSpx0m0Q8DxyLy6wNwI7xO4tF+Nxds3jkc99EG51KePiVbNCMw6FbzPthI/PgIXNuU9azqNyohzmFuDuiexvkNnHdV6pRb2DWisVpDvO8lfdBKeRlfbchfRq4Ql51YrPpg== 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=/VCcL3o+quilgdbTQxpUJjKtAzsHlTl6UOlGYhQ93Ak=; b=Szmjsc/sg8gnwt9ZT6uLKlpvYFyjFsWhIoRbQ1oEsKASJ+WiBixJmB/Rztd2JlPZBc6zMhZ1nfOdyDMi6NxEerbnBGgHccSRmocn3Yre4rFAhjZVUDwdFk7veTgRJVZw/CZ6zy9Oejz8678VKYS1dnMzyPJqO3bY5YBtsy7qD5VtUp3KZtcXe+k9ULdHMJ2QQe4Mtujzk0RWIfATqG3uPD9FWQmHg8A6o83NneNZZ2NxPZy1jSJLH1g5WaNI191jawnuRpVKGj4gjOwc+LzjoOvdQ8GbkESNQlkMSUyPw6tIDvjAebgRVH6ZuUNxjIjLC5u9lkCjK8dPUeKnNlIQVQ== Received: from AS4P189CA0034.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5dd::12) by DB9PR07MB7803.eurprd07.prod.outlook.com (2603:10a6:10:2aa::23) 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 AM4PEPF00027A5F.eurprd04.prod.outlook.com (2603:10a6:20b:5dd:cafe::e3) by AS4P189CA0034.outlook.office365.com (2603:10a6:20b:5dd::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20 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 AM4PEPF00027A5F.mail.protection.outlook.com (10.167.16.74) 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:42 +0000 Received: from seliicinfr00049.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.69) 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 86522380070; 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 1/6] net/octeon_ep: add missing vector API header include Date: Wed, 24 Jul 2024 09:53:52 +0200 Message-ID: <20240724075357.546248-2-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724075357.546248-1-mattias.ronnblom@ericsson.com> References: <20240620175731.420639-2-mattias.ronnblom@ericsson.com> <20240724075357.546248-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM4PEPF00027A5F:EE_|DB9PR07MB7803:EE_ X-MS-Office365-Filtering-Correlation-Id: e171437c-9788-4bd6-1613-08dcabb72235 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?oxP+OO1EbGCsVxZyedTaxcCLLvTzcyJ?= =?utf-8?q?QK/30awIKDMuh3a6mrfdJXTXQWUdxd5TNRvhHCU3W/lf/aQVRVEr00Nl5bp9RzXsz?= =?utf-8?q?asfjgTjNqtR6WwXu6OsBQK+TgO+BLr88JzCsN5Ptewe8dTsnfnlWdyS8WrchaWzY+?= =?utf-8?q?AQKOh8BDaK/5S1uxU2ke0N+9rucCEZxKOvhqsIPKWIUqimlzwFA3B7ZHhzDJarXDe?= =?utf-8?q?jUPrsSQXkZ4C509gouvp1Vv9ihM0La/NsTDZ+KC0i1ZRTnb3DD6vii2Hua2ZcEJH/?= =?utf-8?q?zmJFH1VjINze0XXtC5EOVy8N/PnW7bT3r7YbmI12yLNAbxX8IpGlZIrAQZNy6+Ifa?= =?utf-8?q?mSv3c0Gqu8V1y8EKt8SM+Kmld6j3hpLnmdIONuqQFZnbQS35oTnCXsINrBx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lGKoxvf81hV8fR1H?= =?utf-8?q?T7gjzkn3sfhnK2ApaaxDAN/GHUrl09Nixr1g14CfMDvo4xzsLEqIWX0t2x1mVphYH?= =?utf-8?q?9LQ2cLtdDJVjBKaXuifiQsaOygIjctJxyATba4J1CriNNEfGa0F5DaneSh0Y1BmJw?= =?utf-8?q?08qAaHX/ndn?= 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)(376014)(82310400026)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2024 08:03:42.0568 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e171437c-9788-4bd6-1613-08dcabb72235 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: AM4PEPF00027A5F.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR07MB7803 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 The octeon_ip driver relied on , but failed to provide a direct include of this file. Signed-off-by: Mattias Rönnblom Acked-by: Stephen Hemminger --- drivers/net/octeon_ep/otx_ep_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/octeon_ep/otx_ep_ethdev.c b/drivers/net/octeon_ep/otx_ep_ethdev.c index 46211361a0..b069216629 100644 --- a/drivers/net/octeon_ep/otx_ep_ethdev.c +++ b/drivers/net/octeon_ep/otx_ep_ethdev.c @@ -5,6 +5,8 @@ #include #include +#include + #include "otx_ep_common.h" #include "otx_ep_vf.h" #include "otx2_ep_vf.h" From patchwork Wed Jul 24 07:53:53 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: 142680 X-Patchwork-Delegate: thomas@monjalon.net 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 DBFE445698; Wed, 24 Jul 2024 10:22:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2560C42E58; Wed, 24 Jul 2024 10:22:13 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2048.outbound.protection.outlook.com [40.107.22.48]) by mails.dpdk.org (Postfix) with ESMTP id B0747427B6 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=G4ZWGNckK46IT5CS71vszf1It6OqwV5/IS0s6XnmwGHi7pNJIQRprQwESkbj+P6PdTFBnsKDrTcphyj0YATOUpr398P70CtUDiZj+gF4PGlcxSZoMhzf7icKOq56nuhUXlp9Ph0OUw7P+mYLublz/zKCUM92AzzAEGW507jGaZcZzuna0H2KwJec9N3o33sKbkgia2ux9ET5JrFS0IXRH2+4iPQYGe7eCbX91fAh7QLfej2zg4to7vo9SZwvt5BMhHIeJn70d8xcMW5wyEBI77yw6S7fRO+OyPtNSvviqUPcbHlNWSGYr9AGKnz4pgMW3AukqZA6UTE4Q0TMVvXHYw== 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=h1cMzNuL2ahlcVd+odN4Qc3dn+YXzFh6w7NQzYTExf0=; b=j5TFx9dYLUzQZ0P0346QZ8/1f+OXOftvShWWGmAXR6fZU39N66u+tCLZVIqp6jvsJVGVu2FpE9o4dDDbHSG7T+GMTyEleQsa9k3jxyRx7F5JBf5UxMksIHqP8u+AFlSNqdoqvfkbA1ChUniW+rEhtIm9WVftginDj+1nnfj5yrVcdoDrCAkULUTcN5ujs4obxRuPHrs4DCZOJZZBtGtTrKWDoHvqkYfhw6tvIKUxwfwYq/Jfvux0Yr2t1NKPlJrqZXFTmwBUWE43+ivczWvBkyJeJPQ6SSriJD4NemScieAKFNREjzPebHc0dQndnLuo/Ks1hHIcxnaePfbu65G3ug== 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=h1cMzNuL2ahlcVd+odN4Qc3dn+YXzFh6w7NQzYTExf0=; b=IvgsNoPPM6l82r8XGYihxu5SNToZqULUCf1ZnadvN27XSLxmCHDZ2G+1qdgaYl9lgvPVH2TkpTLFaFojVrISQdefAZKiN0r2RmrgvLU8XXvYZt6kOwyz7ISq83wPATsyhCdFD3bDY3yfKfemJOIiFuwfmsxudfvp2LOMX10IKZ16MeBCkh7cMCv1dV3rfTo3lEurg8mV6lkFZmzLrBKcBU6wCjzUFAeyKbUSOVZW21b1f/3HKQcxywiGUme0XY783eu3M2tNIl0MwQz3+6VCuOmb9WmhT5OH9R1T8yhhGOVd3sXXyfqfQxZkiXWttTiKucC9n9R4MBM6ypgFyyNR2Q== Received: from DB8PR06CA0019.eurprd06.prod.outlook.com (2603:10a6:10:100::32) by PR3PR07MB8292.eurprd07.prod.outlook.com (2603:10a6:102:17f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.9; Wed, 24 Jul 2024 08:03:42 +0000 Received: from DB1PEPF000509F6.eurprd02.prod.outlook.com (2603:10a6:10:100:cafe::f6) by DB8PR06CA0019.outlook.office365.com (2603:10a6:10:100::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.18 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 DB1PEPF000509F6.mail.protection.outlook.com (10.167.242.152) 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:42 +0000 Received: from seliicinfr00049.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.63) 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 94B6938007A; 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 2/6] distributor: add missing vector API header include Date: Wed, 24 Jul 2024 09:53:53 +0200 Message-ID: <20240724075357.546248-3-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724075357.546248-1-mattias.ronnblom@ericsson.com> References: <20240620175731.420639-2-mattias.ronnblom@ericsson.com> <20240724075357.546248-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB1PEPF000509F6:EE_|PR3PR07MB8292:EE_ X-MS-Office365-Filtering-Correlation-Id: af6e4dcc-fc4b-44d8-754b-08dcabb72255 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?O59vaCDgMkVXQ5PPdNi+KLGKXgPSzGH?= =?utf-8?q?A5f2eoTQHWnbZfsWtU65REVu8Mo16h5Xuhc3E0bfSY7iK9OtqHW7FEpJGFiW7SLZI?= =?utf-8?q?4sbEE0DZwkvw8kZyVM4DwOKp21nRkaukW3Oz/Twbe5CJ9CgDT+Vz56eI+7/K0N05n?= =?utf-8?q?ytk6QZ9I5CUdSxNFfP7MA29c2Puik/QfNDoyEgUHx9ScdsXM0gy7Hk1Co674F07s8?= =?utf-8?q?9UQor0QncizXOKWJjngDAFG/Tfqob7UR2QSZtTxPVAbzJP9rjRkXIQKy/UsDCZBG6?= =?utf-8?q?nzLzNWztLxpMIKoYE0ljD8qsyoPpAltP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3Zt+pCbJn8qtd4vIj5A6ErT?= =?utf-8?q?Xj/4HjbtKlqO+fhZ+eFP4hqltBcImLlpqiriyRHFwR1zb1Fs0gQ/UEYevDT+uYkJz?= =?utf-8?q?9T/Cn2Go3zetZNQWcgJ7F8YO0GYQRfpqpYXJdIGP3PEUN8c1PoPpIzQIiAng8pe6U?= =?utf-8?q?vFMR8oGA3qASkOfqP3ZozYAc8AHpbXGkKT6NSoy69sAmbYl6cftR9ZC04JrrIn+Sh?= =?utf-8?q?8fC5oIpwOQQ?= 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)(1800799024)(36860700013)(376014)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2024 08:03:42.2377 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: af6e4dcc-fc4b-44d8-754b-08dcabb72255 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: DB1PEPF000509F6.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR07MB8292 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 The distributor library relied on , but failed to provide a direct include of this file. Signed-off-by: Mattias Rönnblom Acked-by: Bruce Richardson --- lib/distributor/rte_distributor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/distributor/rte_distributor.c b/lib/distributor/rte_distributor.c index e58727cdc2..1389efc03f 100644 --- a/lib/distributor/rte_distributor.c +++ b/lib/distributor/rte_distributor.c @@ -15,6 +15,7 @@ #include #include #include +#include #include "rte_distributor.h" #include "rte_distributor_single.h" From patchwork Wed Jul 24 07:53:54 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: 142678 X-Patchwork-Delegate: thomas@monjalon.net 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 88DA345698; Wed, 24 Jul 2024 10:22:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12FC3427B6; Wed, 24 Jul 2024 10:22:09 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2041.outbound.protection.outlook.com [40.107.20.41]) by mails.dpdk.org (Postfix) with ESMTP id 7521941153 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=gQn49FpqR+6yYhZMz+h7MvzT5Cn4jMljBNU6Z+U1TBalUcjNLyEo180dkinka9hMJGSkxR7b/JP9rNGbKk8CJNkHsgQWBwCq6eaRCk6pfJ04MIAQKxdw99qf5hZpR1kX+AhwgnTNmDx4aIPrk6mt84kdB51yiWGTYA/qsfF+60TwT8dU/pkwOXNgUuL6ZdV375srIBsi9QLmVS9V67/hfHv3WZLu2081c4ZCRvC2eVUG2CU7E66ACBfDGZM3QxqmOMRG+H/anTogNw7h7+IhCGUTdjfMZpmfPWUvQfFu6bloQ/DyvY/feJjOrd8LrYzt+caAt6mP8IgrroBPaclFWw== 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=Ie34cwIRa6onc1aa/3ZGrqQaGL12xODoxG3EgJ5Ox0s=; b=lKNlCCEXUHMUmRHUXH53cyeT7vj4uHFEw5W1Tg2cydWRNkXA7YptH7WJ0np/wuZEgZGOOVaqGTocoWoBFECcj9b7fk7XvHCSBm3Kvqri6oUmT0lHqDki+l13LLcFUq9YG3ataz6M+JbfRqBqUSh4jyOG0IwifAk8WZsB3jtGm9SZLE4EeyEp1OlTzAq+0pnxkERAfJtwFivMY2upnQWEKpfqsBDyRZTLktpcpzOHe0LPiyVu7QMWRMtxrqIU6m6AottkiDwdjESsQ+vCq4asShAsAfHIFL4qTZzqLJ0n1SXFtn5CfLLXX6cTquxdcW9cC+I8+Dzv9ETe+Ltnc7Bp5A== 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=Ie34cwIRa6onc1aa/3ZGrqQaGL12xODoxG3EgJ5Ox0s=; b=SqJ54iz8NyiTqXBUv7efBj6FolqUlSsIOZ64tscLx9lI2bl9xezgFEV6+ozIkcbe44dkrvaOWWqmpyW8nlNUdvyBfZqUJGoU9Hbmmn93BZRNq0wfGmDfhISPhUAYhqZ20TQ9ahMZxgWkKE36Y+ig/1hnXlNekf8QEcQBl2D+aBpEHtmwPgsZG3UDwGhpd8SN0Bl4En56ght1RRS8qzL6Wosxx8zOOapl0GFY8b9XLFIfGapbRBGa8pnMCAru91sCpBIfIuSgyt3tovQVd3PtLrrFTxiSwjGqhNhKg6atIZSrefwMaHiHNAW6LU2FJO87vi3hpaSW3fazBAOhQRxW8A== Received: from DU7PR01CA0010.eurprd01.prod.exchangelabs.com (2603:10a6:10:50f::23) by PAVPR07MB9287.eurprd07.prod.outlook.com (2603:10a6:102:313::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.8; Wed, 24 Jul 2024 08:03:42 +0000 Received: from DU2PEPF00028D09.eurprd03.prod.outlook.com (2603:10a6:10:50f:cafe::37) by DU7PR01CA0010.outlook.office365.com (2603:10a6:10:50f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20 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 DU2PEPF00028D09.mail.protection.outlook.com (10.167.242.169) 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:42 +0000 Received: from seliicinfr00049.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.67) 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 A380838007D; 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 3/6] fib: add missing vector API header include Date: Wed, 24 Jul 2024 09:53:54 +0200 Message-ID: <20240724075357.546248-4-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724075357.546248-1-mattias.ronnblom@ericsson.com> References: <20240620175731.420639-2-mattias.ronnblom@ericsson.com> <20240724075357.546248-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028D09:EE_|PAVPR07MB9287:EE_ X-MS-Office365-Filtering-Correlation-Id: 00039fdc-2cd4-4cb6-30e4-08dcabb72258 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|376014|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: =?utf-8?q?x8368Cbyp2pWQi3J9j0y+4E60/WASTC?= =?utf-8?q?uwcyng7onaI8Z2wea9IZtEvc4AO38RyxCM/rzRZ6Geg8SH305izZ+BStyH4E1VKHz?= =?utf-8?q?J7OINfRFKVFROghrXSRt9iIzNaJ2NTqGGFoE5zMDt3zoEpIkuRFA2Hi7F56VWshmp?= =?utf-8?q?UOtms+7S86PirMe9guVKcFUlGWHKgCUyMVWCMXjPv6bDaKIuMgH5xLG6Zdi9Pkp4Z?= =?utf-8?q?pQKzHqkkl+sbUTJ0ZfJR6LbSmYS8RKF27a3c6fTZe/hGs/vAtqutziNgP40kECRD+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=?utf-8?q?1+5ZHHCvnyL/3HdPE2nKG+Gwr0GG2sypE3w1F4bQ3/gKvsSRE7298Rhpe2RxglIA9?= =?utf-8?q?eD1iTgn5CQ1P2eoNLqgGblANaF3xRd4JT5jf0IPbg6LzZlu0PC8dY4N2+eGmq930O?= =?utf-8?q?8XALnWxyQIQypBJYL0ufy45/uGilTFIYGwQXKe/quuSB72RARs0sPnTxH6XWU5AIr?= =?utf-8?q?v8oqMMxWykldCN50jX1wmLBnqhLCLSKgOaNVNTsSh1XmrNvN2sQh+NA2Yi8nC7dNS?= =?utf-8?q?vev+TXDE6oc?= 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)(82310400026)(376014)(1800799024)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2024 08:03:42.2556 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 00039fdc-2cd4-4cb6-30e4-08dcabb72258 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: DU2PEPF00028D09.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR07MB9287 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 The trie implementation of the fib library relied on , but failed to provide a direct include of this file. Signed-off-by: Mattias Rönnblom Acked-by: Bruce Richardson Acked-by: Stephen Hemminger --- lib/fib/trie.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/fib/trie.c b/lib/fib/trie.c index 09470e7287..74db8863df 100644 --- a/lib/fib/trie.c +++ b/lib/fib/trie.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include From patchwork Wed Jul 24 07:53:55 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: 142682 X-Patchwork-Delegate: thomas@monjalon.net 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 81D3C45698; Wed, 24 Jul 2024 10:22:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D779942E96; Wed, 24 Jul 2024 10:22:15 +0200 (CEST) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2048.outbound.protection.outlook.com [40.107.105.48]) by mails.dpdk.org (Postfix) with ESMTP id 3DBE841153 for ; Wed, 24 Jul 2024 10:03:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EbNaT5Q1/G6CDBqsQhd5i/f85pzBmdkXQwigjZcVlzZ2/BSqojIYfV5tXlG0Xs8UceMo4vpnJ/ONxC1AZA+dqBiGKszCsX0Wg6L8bAKGEZMnK6NfBCh5czX3pAJ++sWmRW4e8LmzEaUu6yiObVqAzGwuSXi439vPRoTTKXP80abgShitl1QXwe++c70+idn/+tUnDK0NfCw3uKd10aN8CIrqMVRbCNYwaOdiWKEwq2Cbc5nRUoLSBCQj740NZ1b7FuXPvLNqmy9dM64yDzT7FDOO+RYwF2zR72fH2vwt61h8UfYFYnY5kMDkfbkuJNke67Fg3IVLoTDeC2t70BPb4Q== 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=H6YD9w0ifSYMkuXsaTV08sUvw3R/IPgHABBXhpNYCrQ=; b=pP/mhSBMSl1kTJnypFr9ZGTVUK8WTn+JDOZddZTJalLAyO8t/cDRf8xJilTvgaUewU1iDjm3UEZA9enuOSbOqizGu7V5ddqwvpcYOMJWm6Lu22DqaAWkEhTi80IMGJT0DNtOfteZRwIqBFnJdpDYvSoXKlO+CqOYGhj8+UNdpUpn28ZFc5aWDc9p7pqp387LxmbvboZy7FqhcppXeM/Z355mO8wW1voXhpG3d+bocdOGKW0aKdEXu6G39MQwO7Qfyf528BQy+UVXFxhbE74f5Ld1TFNKjpoFuUurqX11XSVXDqJT4mMDWv/rRMzwcJD7pT7P3FHUZg6iQSFF3wWc8g== 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=H6YD9w0ifSYMkuXsaTV08sUvw3R/IPgHABBXhpNYCrQ=; b=V45LrKl9u2ho0YUgT3u4NfVhbYqnq60kR35uG9TQ7lamWfHGdgLRmFM5br/GloscEckgJLzcM2/DHEh9kmJgvHjgi0nOrZ5raEnjiqADg22BjpVOmpyN28+SWRlqStO7NeNZgB2oXW7iKzlCnSEHbttyOBRBp0TiW140znGfHTjnCEB0Py0kotXNXYi979/2T0O+xBj0Z02iKx2Lvq6aDWYfZ+RUuoGBzBHf0Bfl943S+SWTiBCrrbczMd9yvwXj11Uv42uf3eeZYIrvw59Jm5nxJCVWLfmRfzPAr/logxZs/60585oF5c4TCdBgs3nxoyU7rWHM8k6ELY1kRe39Zg== Received: from DB6PR0301CA0083.eurprd03.prod.outlook.com (2603:10a6:6:30::30) by PR3PR07MB6907.eurprd07.prod.outlook.com (2603:10a6:102:5f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.6; Wed, 24 Jul 2024 08:03:42 +0000 Received: from DU6PEPF00009524.eurprd02.prod.outlook.com (2603:10a6:6:30:cafe::db) by DB6PR0301CA0083.outlook.office365.com (2603:10a6:6:30::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.18 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 DU6PEPF00009524.mail.protection.outlook.com (10.167.8.5) 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:42 +0000 Received: from seliicinfr00049.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.61) 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 B290A380061; 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 4/6] eal: provide option to use compiler memcpy instead of RTE Date: Wed, 24 Jul 2024 09:53:55 +0200 Message-ID: <20240724075357.546248-5-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724075357.546248-1-mattias.ronnblom@ericsson.com> References: <20240620175731.420639-2-mattias.ronnblom@ericsson.com> <20240724075357.546248-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU6PEPF00009524:EE_|PR3PR07MB6907:EE_ X-MS-Office365-Filtering-Correlation-Id: 9f646f8e-a206-4a82-40f2-08dcabb72266 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?XoYYG2KgCoCpDKXPlJoeDfkkR5XnrqS?= =?utf-8?q?RIKDFXhyJ7I3ViVGBTMIiGqgdeqkuU2R9LfdNF+LW5Qt1oSLkm8wADbRae2D9ebYY?= =?utf-8?q?6VwLCbUV5RJqZ3sIw9Paru+OvfBYqdwsAcj4HciLKn+d6D4d5Z//q2bEZN5f1g++F?= =?utf-8?q?on15rSMIIVSOCqiMMaTkXYmoOq7dXlhimOo7iCzOk0qn5Ki1F8VcX9idt1YmvA2QH?= =?utf-8?q?fgRrcLhQzihLjLJO6sMSNnuJCTkgsz4U2PW4cM+YujjYUPKO3lnPhOs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96BqeoTT?= =?utf-8?q?VOdyqWjRaZXlT3B/i1gm4X+m6hF9bXAaNLrlTcI0zm6HoHzCeiRailWgcBJZI7iZL?= =?utf-8?q?4+79ZXyySlNLDxqo1L1ksDILEEeC/mOKVGwynAnXGC6OGgT4sT5lfW2Tly7+iBwln?= =?utf-8?q?xxNN7BHv8JlSCIPBq46FENF8YsaLcdxb60W5qfhjAxYEvZVBTomMutSNeK5gSw1YL?= =?utf-8?q?q+RUEJp5HtBEjE7+g1U68/ZTS/G5qgL6nt9J3ENQ3lJmyIXmObnSyUSw2Im2u0ml6?= =?utf-8?q?OBcuydOUSMJ?= 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:42.3478 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9f646f8e-a206-4a82-40f2-08dcabb72266 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: DU6PEPF00009524.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR07MB6907 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 Provide build option to have functions in delegate to the standard compiler/libc memcpy(), instead of using the various custom DPDK, handcrafted, per-architecture rte_memcpy() implementations. A new meson build option 'use_cc_memcpy' is added. By default, the traditional, custom DPDK rte_memcpy() implementation is used. The performance benefits of the custom DPDK rte_memcpy() implementations have been diminishing with every compiler release, and with current toolchains the use of a custom memcpy() implementation may even be a liability. An additional benefit of this change is that compilers and static analysis tools have an easier time detecting incorrect usage of rte_memcpy() (e.g., buffer overruns, or overlapping source and destination buffers). Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup --- PATCH v5: o Take a more cautious approach, setting use_cc_memcpy to disabled by default. o Fix ARM build issue in case RTE_ARCH_ARM64_MEMCPY was set. o Use separate macros to indicate that the rte_memcpy() is implemented by the compiler, and that use_cc_memcpy is set, to avoid accidental #undefs. o Remove redundant rte_config.h includes. PATCH: o Add entry in release notes. o Update meson help text. RFC v3: o Fix missing #endif on loongarch. o PPC and RISCV now implemented, meaning all architectures are supported. o Unnecessary include is removed from . RFC v2: * Fix bug where rte_memcpy.h was not installed on x86. * Made attempt to make Loongarch compile. --- config/meson.build | 1 + doc/guides/rel_notes/release_24_07.rst | 21 +++++++++ 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 ++++ meson_options.txt | 2 + 10 files changed, 110 insertions(+), 111 deletions(-) diff --git a/config/meson.build b/config/meson.build index 8c8b019c25..456056628e 100644 --- a/config/meson.build +++ b/config/meson.build @@ -353,6 +353,7 @@ endforeach # set other values pulled from the build options dpdk_conf.set('RTE_MAX_ETHPORTS', get_option('max_ethports')) dpdk_conf.set('RTE_LIBEAL_USE_HPET', get_option('use_hpet')) +dpdk_conf.set('RTE_USE_CC_MEMCPY', get_option('use_cc_memcpy')) dpdk_conf.set('RTE_ENABLE_STDATOMIC', get_option('enable_stdatomic')) dpdk_conf.set('RTE_ENABLE_TRACE_FP', get_option('enable_trace_fp')) dpdk_conf.set('RTE_PKTMBUF_HEADROOM', get_option('pkt_mbuf_headroom')) diff --git a/doc/guides/rel_notes/release_24_07.rst b/doc/guides/rel_notes/release_24_07.rst index eb2ed1a55f..31af6303b3 100644 --- a/doc/guides/rel_notes/release_24_07.rst +++ b/doc/guides/rel_notes/release_24_07.rst @@ -24,6 +24,27 @@ DPDK Release 24.07 New Features ------------ +* **Compiler memcpy replaces custom DPDK implementation.** + + The memory copy functions of ```` now optionally + delegates to the standard memcpy() function, implemented by the + compiler and the C runtime (e.g., libc). + + In this release of DPDK, the handcrafted, per-architecture memory + copy implementations are still the default. Compiler memcpy is + enabled by setting the new ``use_cc_memcpy`` build option to true. + + The performance benefits of the custom DPDK rte_memcpy() + implementations have been diminishing with every new compiler + release, and with current toolchains the use of a custom memcpy() + implementation may even result in worse performance than the + standard memcpy(). + + An additional benefit of using compiler memcpy is that compilers and + static analysis tools have an easier time detecting incorrect usage + of rte_memcpy() (e.g., buffer overruns, or overlapping source and + destination buffers). + .. This section should contain new features added in this release. Sample format: diff --git a/lib/eal/arm/include/rte_memcpy.h b/lib/eal/arm/include/rte_memcpy.h index 47dea9a8cc..5d2ea7dbfa 100644 --- a/lib/eal/arm/include/rte_memcpy.h +++ b/lib/eal/arm/include/rte_memcpy.h @@ -5,10 +5,19 @@ #ifndef _RTE_MEMCPY_ARM_H_ #define _RTE_MEMCPY_ARM_H_ +#if defined(RTE_USE_CC_MEMCPY) || !defined(RTE_ARCH_ARM64_MEMCPY) + +#define RTE_CC_MEMCPY +#include + +#else + #ifdef RTE_ARCH_64 #include #else #include #endif +#endif /* RTE_USE_CC_MEMCPY */ + #endif /* _RTE_MEMCPY_ARM_H_ */ diff --git a/lib/eal/include/generic/rte_memcpy.h b/lib/eal/include/generic/rte_memcpy.h index e7f0f8eaa9..cfb0175bd2 100644 --- a/lib/eal/include/generic/rte_memcpy.h +++ b/lib/eal/include/generic/rte_memcpy.h @@ -5,12 +5,19 @@ #ifndef _RTE_MEMCPY_H_ #define _RTE_MEMCPY_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** * @file * * Functions for vectorised implementation of memcpy(). */ +#include +#include + /** * Copy 16 bytes from one location to another using optimised * instructions. The locations should not overlap. @@ -35,8 +42,6 @@ rte_mov16(uint8_t *dst, const uint8_t *src); static inline void rte_mov32(uint8_t *dst, const uint8_t *src); -#ifdef __DOXYGEN__ - /** * Copy 48 bytes from one location to another using optimised * instructions. The locations should not overlap. @@ -49,8 +54,6 @@ rte_mov32(uint8_t *dst, const uint8_t *src); static inline void rte_mov48(uint8_t *dst, const uint8_t *src); -#endif /* __DOXYGEN__ */ - /** * Copy 64 bytes from one location to another using optimised * instructions. The locations should not overlap. @@ -87,8 +90,6 @@ rte_mov128(uint8_t *dst, const uint8_t *src); static inline void rte_mov256(uint8_t *dst, const uint8_t *src); -#ifdef __DOXYGEN__ - /** * Copy bytes from one location to another. The locations must not overlap. * @@ -111,6 +112,52 @@ rte_mov256(uint8_t *dst, const uint8_t *src); static void * rte_memcpy(void *dst, const void *src, size_t n); -#endif /* __DOXYGEN__ */ +#ifdef RTE_CC_MEMCPY +static inline void +rte_mov16(uint8_t *dst, const uint8_t *src) +{ + memcpy(dst, src, 16); +} + +static inline void +rte_mov32(uint8_t *dst, const uint8_t *src) +{ + memcpy(dst, src, 32); +} + +static inline void +rte_mov48(uint8_t *dst, const uint8_t *src) +{ + memcpy(dst, src, 48); +} + +static inline void +rte_mov64(uint8_t *dst, const uint8_t *src) +{ + memcpy(dst, src, 64); +} + +static inline void +rte_mov128(uint8_t *dst, const uint8_t *src) +{ + memcpy(dst, src, 128); +} + +static inline void +rte_mov256(uint8_t *dst, const uint8_t *src) +{ + memcpy(dst, src, 256); +} + +static inline void * +rte_memcpy(void *dst, const void *src, size_t n) +{ + return memcpy(dst, src, n); +} +#endif /* RTE_CC_MEMCPY */ + +#ifdef __cplusplus +} +#endif #endif /* _RTE_MEMCPY_H_ */ diff --git a/lib/eal/loongarch/include/rte_memcpy.h b/lib/eal/loongarch/include/rte_memcpy.h index 22578d40f4..4e6027caee 100644 --- a/lib/eal/loongarch/include/rte_memcpy.h +++ b/lib/eal/loongarch/include/rte_memcpy.h @@ -5,57 +5,7 @@ #ifndef RTE_MEMCPY_LOONGARCH_H #define RTE_MEMCPY_LOONGARCH_H -#include -#include - -#include "rte_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_memcpy.h" - -static inline void -rte_mov16(uint8_t *dst, const uint8_t *src) -{ - memcpy(dst, src, 16); -} - -static inline void -rte_mov32(uint8_t *dst, const uint8_t *src) -{ - memcpy(dst, src, 32); -} - -static inline void -rte_mov48(uint8_t *dst, const uint8_t *src) -{ - memcpy(dst, src, 48); -} - -static inline void -rte_mov64(uint8_t *dst, const uint8_t *src) -{ - memcpy(dst, src, 64); -} - -static inline void -rte_mov128(uint8_t *dst, const uint8_t *src) -{ - memcpy(dst, src, 128); -} - -static inline void -rte_mov256(uint8_t *dst, const uint8_t *src) -{ - memcpy(dst, src, 256); -} - -#define rte_memcpy(d, s, n) memcpy((d), (s), (n)) - -#ifdef __cplusplus -} -#endif +#define RTE_CC_MEMCPY +#include #endif /* RTE_MEMCPY_LOONGARCH_H */ diff --git a/lib/eal/ppc/include/rte_memcpy.h b/lib/eal/ppc/include/rte_memcpy.h index 6f388c0234..162c1483f5 100644 --- a/lib/eal/ppc/include/rte_memcpy.h +++ b/lib/eal/ppc/include/rte_memcpy.h @@ -6,6 +6,13 @@ #ifndef _RTE_MEMCPY_PPC_64_H_ #define _RTE_MEMCPY_PPC_64_H_ +#ifdef RTE_USE_CC_MEMCPY + +#define RTE_CC_MEMCPY +#include + +#else + #include #include @@ -215,4 +222,6 @@ rte_memcpy_func(void *dst, const void *src, size_t n) } #endif +#endif /* RTE_USE_CC_MEMCPY */ + #endif /* _RTE_MEMCPY_PPC_64_H_ */ diff --git a/lib/eal/riscv/include/rte_memcpy.h b/lib/eal/riscv/include/rte_memcpy.h index e34f19396e..7f6c07d090 100644 --- a/lib/eal/riscv/include/rte_memcpy.h +++ b/lib/eal/riscv/include/rte_memcpy.h @@ -7,57 +7,7 @@ #ifndef RTE_MEMCPY_RISCV_H #define RTE_MEMCPY_RISCV_H -#include -#include - -#include "rte_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_memcpy.h" - -static inline void -rte_mov16(uint8_t *dst, const uint8_t *src) -{ - memcpy(dst, src, 16); -} - -static inline void -rte_mov32(uint8_t *dst, const uint8_t *src) -{ - memcpy(dst, src, 32); -} - -static inline void -rte_mov48(uint8_t *dst, const uint8_t *src) -{ - memcpy(dst, src, 48); -} - -static inline void -rte_mov64(uint8_t *dst, const uint8_t *src) -{ - memcpy(dst, src, 64); -} - -static inline void -rte_mov128(uint8_t *dst, const uint8_t *src) -{ - memcpy(dst, src, 128); -} - -static inline void -rte_mov256(uint8_t *dst, const uint8_t *src) -{ - memcpy(dst, src, 256); -} - -#define rte_memcpy(d, s, n) memcpy((d), (s), (n)) - -#ifdef __cplusplus -} -#endif +#define RTE_CC_MEMCPY +#include #endif /* RTE_MEMCPY_RISCV_H */ diff --git a/lib/eal/x86/include/meson.build b/lib/eal/x86/include/meson.build index 52d2f8e969..09c2fe2485 100644 --- a/lib/eal/x86/include/meson.build +++ b/lib/eal/x86/include/meson.build @@ -16,6 +16,7 @@ arch_headers = files( 'rte_spinlock.h', 'rte_vect.h', ) + arch_indirect_headers = files( 'rte_atomic_32.h', 'rte_atomic_64.h', diff --git a/lib/eal/x86/include/rte_memcpy.h b/lib/eal/x86/include/rte_memcpy.h index 42058e4a3f..2d9f5954f1 100644 --- a/lib/eal/x86/include/rte_memcpy.h +++ b/lib/eal/x86/include/rte_memcpy.h @@ -11,6 +11,13 @@ * Functions for SSE/AVX/AVX2/AVX512 implementation of memcpy(). */ +#ifdef RTE_USE_CC_MEMCPY + +#define RTE_CC_MEMCPY +#include + +#else + #include #include #include @@ -767,4 +774,6 @@ rte_memcpy(void *dst, const void *src, size_t n) } #endif +#endif /* RTE_USE_CC_MEMCPY */ + #endif /* _RTE_MEMCPY_X86_64_H_ */ diff --git a/meson_options.txt b/meson_options.txt index e49b2fc089..69a01f6578 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -60,3 +60,5 @@ option('tests', type: 'boolean', value: true, description: 'build unit tests') option('use_hpet', type: 'boolean', value: false, description: 'use HPET timer in EAL') +option('use_cc_memcpy', type: 'boolean', value: false, description: + 'Have the functions of delegate to compiler/libc memcpy() instead of using custom implementation.') From patchwork Wed Jul 24 07:53:56 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: 142683 X-Patchwork-Delegate: thomas@monjalon.net 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 A5FCD45698; Wed, 24 Jul 2024 10:22:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 48F3142EBC; Wed, 24 Jul 2024 10:22:17 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2063.outbound.protection.outlook.com [40.107.21.63]) by mails.dpdk.org (Postfix) with ESMTP id 483AF42686 for ; Wed, 24 Jul 2024 10:03:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=StuEuwMuXqJXRdLUYQ+0ljSL9f+/DkBG4ELmTOKf3yPOKW6xodXr0oqXJAm16z5b2XLDYM0a0bCD70fZuxSfc4UEjOydwW5FWOwef3NGngF1p/tfxhi/1Ifki3HESkSo77dGLANJCaODPnC2a7hm73x349yQrC0Da+7485qMBAQDqP4Yf6UdijPcvFugPjBXwfGJhwVqh24uoMspJKckhI+9dhdm/SZLn3WsuBtAUs1vPCLEQ+20mPW/OHUl4qZrznuZdc86nNas/V+HBzAh04ZiioK24Coe3x+VeP4eVRl8pW/dEIcMI/j6DdED/0nGvy8C5J9DwrTWEGXFS7QGDQ== 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=7EPUCyv3DePc0tMiaEO6lQjHqB4AZOwXDxYcnUfTTUQ=; b=JfEg/0krxgmGI4MEubFbKNeNq6niv7d8IHxR4oemakpRCR52d1mEVr8rbaRHcE2jrgbJn6svo1U8hkUA0j58rnb7yEkFRuudY0JtCTMAC4RFYbi+AX6htXH6dO6daE8v1iPU6WYnUUkNY9V/VBkOTWF471wpSQcl/odh+UbsFyIGOCJmpgX21SqJKall/VsOaE8GkJtYI66Ds9o5E7vFzGe9UrubWvPK21yoa+byUjkipmt/eeU03mVEPLSQJndRscEoj3fPvaXGsNDDU0TvOh7mqk1w7H0zgvORwm3WWmfSuKAxGWawylFZgHAKu3DD5RVdtNs3uvyXFjRTRi6rDw== 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=7EPUCyv3DePc0tMiaEO6lQjHqB4AZOwXDxYcnUfTTUQ=; b=yzj5VF+IUFHOL6rYuwG0or6X0gXXMwQ+pSGoXx3DbPMS7FIA+o8sankN5Gk+P32/bbg1WWf4Gwj0VM9KYNnILEGo82t1pJim7xhVMewgTLa2HUhHXgqNjUw8xRMKt5ISv0oJs7LuKtkmOwJ32OYvqa5Oqm1gB8HBEZEYmU85MXEhzcQpSsdVzmJGgLKHqnCpJgHb3gbNid80XPuwJ9wSvXQ7qzQFataLJw7cODteFWXt/HqcJQ1xb4rKYRfgTqsBcBur7tIkrd3liC15Pheu7Fuq8KZdMCy+uadAnozlD8bqCYojw4n2gxPZs3UoNg+ri5Hu1nNpUP1sMtTt2axkOw== Received: from AS4P250CA0014.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:5df::17) by DBAPR07MB6518.eurprd07.prod.outlook.com (2603:10a6:10:182::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.9; Wed, 24 Jul 2024 08:03:42 +0000 Received: from AM2PEPF0001C711.eurprd05.prod.outlook.com (2603:10a6:20b:5df:cafe::df) by AS4P250CA0014.outlook.office365.com (2603:10a6:20b:5df::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.18 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:42 +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 BB59938007F; 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 5/6] ci: test compiler memcpy Date: Wed, 24 Jul 2024 09:53:56 +0200 Message-ID: <20240724075357.546248-6-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724075357.546248-1-mattias.ronnblom@ericsson.com> References: <20240620175731.420639-2-mattias.ronnblom@ericsson.com> <20240724075357.546248-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM2PEPF0001C711:EE_|DBAPR07MB6518:EE_ X-MS-Office365-Filtering-Correlation-Id: 90e4bc6c-c366-470d-e6fe-08dcabb7227a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?R5uYhmsRvBVBlIzL6+6k3Y4HZXacfOI?= =?utf-8?q?sklNh9Fr6JmEg1kFvOd7mH7PlCXq4nEYh0WvV5Ydoep3WqKSohWItkdOs6gjACp7Y?= =?utf-8?q?rtSisg4O/cHK5mfcGyeKb9kMb9hXKgvL9TDpOusA5tu+X/8ppubP8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utf-8?q?cwkDw5A26q2YQqqo3upmA6/H/bhxLrdgfWF/ZYNbgUr63RKgt2BWNI48Iu+hHuZyG?= =?utf-8?q?EO+Ff+MssIEa2nnBgFCD1Cuo8OGuWDT1vqdrhK0l167ApwRICe+OkCduqiNy7a18J?= =?utf-8?q?h8HnlaIi+U2eMWLYT5WlNN5auAbiTFiQS+C1qdbv2i8SCh7Q/HmX1vnnqXgOUpzwa?= =?utf-8?q?O/CzWsfaVgWqS34tE8z4+bsCKH6g/Pl0Z5yiv/FKa0j5r7cT5xqRj+XnK1QsZf/FU?= =?utf-8?q?WG/PbtPfCmfgpwssKHJ2kuFPt6K+BQ+jjcrBY00ygPBpoOi3ZnaB5J27rO0G8kHko?= =?utf-8?q?iCp/YKEwrd/YVXuZXBF8NiifVwNUApBpoYmIg1hN1b7cGTzbXjNC/IrngY4WmRLej?= =?utf-8?q?c2qWgT/jIbo?= 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)(376014)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2024 08:03:42.5143 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 90e4bc6c-c366-470d-e6fe-08dcabb7227a 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: DBAPR07MB6518 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 Add compilation tests for the use_cc_memcpy build option. Signed-off-by: Mattias Rönnblom --- .ci/linux-build.sh | 5 +++++ .github/workflows/build.yml | 7 +++++++ devtools/test-meson-builds.sh | 4 +++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh index 15ed51e4c1..a873f83d09 100755 --- a/.ci/linux-build.sh +++ b/.ci/linux-build.sh @@ -98,6 +98,11 @@ if [ "$STDATOMIC" = "true" ]; then else OPTS="$OPTS -Dcheck_includes=true" fi +if [ "$CCMEMCPY" = "true" ]; then + OPTS="$OPTS -Duse_cc_memcpy=true" +else + OPTS="$OPTS -Duse_cc_memcpy=true" +fi if [ "$MINI" = "true" ]; then OPTS="$OPTS -Denable_drivers=net/null" OPTS="$OPTS -Ddisable_libs=*" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dbf25626d4..cd45d6c6c1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,6 +31,7 @@ jobs: RISCV64: ${{ matrix.config.cross == 'riscv64' }} RUN_TESTS: ${{ contains(matrix.config.checks, 'tests') }} STDATOMIC: ${{ contains(matrix.config.checks, 'stdatomic') }} + CCMEMCPY: ${{ contains(matrix.config.checks, 'ccmemcpy') }} strategy: fail-fast: false @@ -45,6 +46,12 @@ jobs: - os: ubuntu-22.04 compiler: clang checks: stdatomic + - os: ubuntu-22.04 + compiler: gcc + checks: ccmemcpy + - os: ubuntu-22.04 + compiler: clang + checks: ccmemcpy - os: ubuntu-22.04 compiler: gcc checks: abi+debug+doc+examples+tests diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index d71bb1ded0..e72146be3b 100755 --- a/devtools/test-meson-builds.sh +++ b/devtools/test-meson-builds.sh @@ -228,12 +228,14 @@ for c in gcc clang ; do if [ $s = shared ] ; then abicheck=ABI stdatomic=-Denable_stdatomic=true + ccmemcpy=-Duse_cc_memcpy=true else abicheck=skipABI # save time and disk space stdatomic=-Denable_stdatomic=false + ccmemcpy=-Duse_cc_memcpy=false fi export CC="$CCACHE $c" - build build-$c-$s $c $abicheck $stdatomic --default-library=$s + build build-$c-$s $c $abicheck $stdatomic $ccmemcpy --default-library=$s unset CC done done From patchwork Wed Jul 24 07:53:57 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: 142679 X-Patchwork-Delegate: thomas@monjalon.net 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 0A69045698; Wed, 24 Jul 2024 10:22:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D5E3F42E24; Wed, 24 Jul 2024 10:22:11 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2040.outbound.protection.outlook.com [40.107.21.40]) by mails.dpdk.org (Postfix) with ESMTP id B12D6427B8 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=f710TswLDTmFWgwCiqbDGCA82ss2WJw1PWTP0W02oppcfmlAtiYE52y6wFgQIVqAhJNZQ7Ib38SWWOCnvzfVczV5IQ05oEPKhzFhz4vB6Nby+shfVlM4qUxQ56dk6Z92IGpbdxQaq+onZ/HL3BxbbtDtcaWU7g8uKVsOcQS0vZtq+4n1Ru/6L6W5wgq/4Vq86tg+u/NJ/nbyvNo91Uk/dBtO7w6RQehNY7NAMIy0MfGpoRFHoN1Iim8OK8FHm0JbF2u5ES0yHrssAr274ftn9TQrXvfqet7L8RZPDnNcqpD9wgzzMciSh1qXrLVBB4z+LIxStH+ueHMqmo9LfOA4/A== 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=z22bXtS4XrtbkUJgM4b26Ti/93OMNhkH5v3afQAXhLo=; b=eDrscThs1qTGg1jsFbmbPOPVlhNsLeYuWD/F1JtaRjdLKFM++5mmt/NtN/XWofmQtsBQUGpjiKLDaKrQsoBAU5KzOIMRJ3tRRk2/yRkuQTn8Vwjbiatsw4rfGEqQoIeNJ5rCDwOE8IxmacqzYCC7LwD77331o3BlwTOp/a9UpreBGSAK50NiXtljbKYaMb90GsyFYPKvpD0fvE/H866TSb8UTBCX8Qr5HdocRXMzcpAKD0coOgYhDvp2/QaOXDdF8wXkIAkNMFOhVGAPbv4YtDSw/UR8QI9Du+q1cjFUY7Jd3T0b5C+Gr0RktRKf0YyZE6fUSxkxk8mGMz2bdMLePA== 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=z22bXtS4XrtbkUJgM4b26Ti/93OMNhkH5v3afQAXhLo=; b=GqhvfcWdBASH7P0f5aI7UlE0PEQDzMmXpz11iXmKV0xbFDBnzSFYUPmnZPhoKPNXTYhgbxG3WFGA4YQhjReD5aeJcYpGopipNvMdAKzPeVFtl/0kGlAkq6tNceIQYUubNnlyx3RIusznFskLayZTyigweh+qq/X9g6TKJgi2tXp/5AQZgxfiDFfIj8CVozJE/yfX2WM/bbqMJ16aKLhmKxCnMV6w2ow0vigguq277uAl8NpDPNediXuOC5xZd5y7i1NFkMPGL4j0KoIDq1/vMnh1TbjNucMHWG5o5slDZMryOaH438o7iGwjFGyIFucOZz4/7Fy1uLpzdHSzPExKTQ== Received: from AS4P250CA0011.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:5df::13) by VI1PR07MB6671.eurprd07.prod.outlook.com (2603:10a6:800:184::10) 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:43 +0000 Received: from AM2PEPF0001C711.eurprd05.prod.outlook.com (2603:10a6:20b:5df:cafe::b5) by AS4P250CA0011.outlook.office365.com (2603:10a6:20b:5df::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.16 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:42 +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 CBC18380070; 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 6/6] vhost: optimize memcpy routines when cc memcpy is used Date: Wed, 24 Jul 2024 09:53:57 +0200 Message-ID: <20240724075357.546248-7-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724075357.546248-1-mattias.ronnblom@ericsson.com> References: <20240620175731.420639-2-mattias.ronnblom@ericsson.com> <20240724075357.546248-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM2PEPF0001C711:EE_|VI1PR07MB6671:EE_ X-MS-Office365-Filtering-Correlation-Id: b71a077b-9df9-4148-822f-08dcabb722b6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?yyK6mZBIAutKglcMAcTIaaRAbDW1fNs?= =?utf-8?q?ft+BK0nXNokffgi5oP2vvUsCWFRdYW6DVSE2kN6uBtFAXQwz1JN0wqoov8xZ57P6p?= =?utf-8?q?sMFou2JlO4lVV6zxXrJp9IWJrj4/91gks27ec3eP1/VTUl3dzvwJedYKwg54UJsKZ?= =?utf-8?q?XdLespemkz/HFWUEsRTy93RvIPxe44IRZwiRWYQRFU+0SQGB24/p18bunTaT4aI3p?= =?utf-8?q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L19iFpC9Tx11pfMFLD9XRqPh38ID4C+sxwEyIcapeFXp1bKBv?= =?utf-8?q?pPL347MNevPHUJl5S+YolC0IbqtqIHggetRvkxjGQ1uZLQeOAe4qI/1HMioHZBpbq?= =?utf-8?q?TUYZK4Yi3ShV9tW3nK5L8Y1byIAvZFHXh42TWcP3ba0Jxwl+3ZrT06AW2QyV+ENiL?= =?utf-8?q?q7hFPDwLoWXX8uA14sisZdi3YjFrbBL4zpuefpP1tVxyZcMPAL1ER6Xvv+wBykxvB?= =?utf-8?q?RhTVJaY4yS19xM0hBi+uV1AN+w1yZj5hIq6ivhu5UREsoQmCFn996B5sgIDtf11Xs?= =?utf-8?q?tBEVsgRWDMa?= 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)(1800799024)(36860700013)(376014)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2024 08:03:42.8893 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b71a077b-9df9-4148-822f-08dcabb722b6 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: VI1PR07MB6671 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 In build where use_cc_memcpy is set to true, the vhost user PMD suffers a large performance drop on Intel P-cores for small packets, at least when built by GCC and (to a much lesser extent) clang. This patch addresses that issue by using a custom virtio memcpy()-based packet copying routine. Performance results from a Raptor Lake @ 3,2 GHz: GCC 12.3.0 64 bytes packets Core Mode Mpps E RTE memcpy 9.5 E cc memcpy 9.7 E cc memcpy+pktcpy 9.0 P RTE memcpy 16.4 P cc memcpy 13.5 P cc memcpy+pktcpy 16.2 GCC 12.3.0 1500 bytes packets Core Mode Mpps P RTE memcpy 5.8 P cc memcpy 5.9 P cc memcpy+pktcpy 5.9 clang 15.0.7 64 bytes packets Core Mode Mpps P RTE memcpy 13.3 P cc memcpy 12.9 P cc memcpy+pktcpy 13.9 "RTE memcpy" is use_cc_memcpy=false, "cc memcpy" is use_cc_memcpy=true and "pktcpy" is when this patch is applied. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup --- lib/vhost/virtio_net.c | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c index 370402d849..63571587a8 100644 --- a/lib/vhost/virtio_net.c +++ b/lib/vhost/virtio_net.c @@ -231,6 +231,39 @@ vhost_async_dma_check_completed(struct virtio_net *dev, int16_t dma_id, uint16_t return nr_copies; } +/* The code generated by GCC (and to a lesser extent, clang) with just + * a straight memcpy() to copy packets is less than optimal on Intel + * P-cores, for small packets. Thus the need of this specialized + * memcpy() in builds where use_cc_memcpy is set to true. + */ +#if defined(RTE_USE_CC_MEMCPY) && defined(RTE_ARCH_X86_64) +static __rte_always_inline void +pktcpy(void *restrict in_dst, const void *restrict in_src, size_t len) +{ + void *dst = __builtin_assume_aligned(in_dst, 16); + const void *src = __builtin_assume_aligned(in_src, 16); + + if (len <= 256) { + size_t left; + + for (left = len; left >= 32; left -= 32) { + memcpy(dst, src, 32); + dst = RTE_PTR_ADD(dst, 32); + src = RTE_PTR_ADD(src, 32); + } + + memcpy(dst, src, left); + } else + memcpy(dst, src, len); +} +#else +static __rte_always_inline void +pktcpy(void *dst, const void *src, size_t len) +{ + rte_memcpy(dst, src, len); +} +#endif + static inline void do_data_copy_enqueue(struct virtio_net *dev, struct vhost_virtqueue *vq) __rte_shared_locks_required(&vq->iotlb_lock) @@ -240,7 +273,7 @@ do_data_copy_enqueue(struct virtio_net *dev, struct vhost_virtqueue *vq) int i; for (i = 0; i < count; i++) { - rte_memcpy(elem[i].dst, elem[i].src, elem[i].len); + pktcpy(elem[i].dst, elem[i].src, elem[i].len); vhost_log_cache_write_iova(dev, vq, elem[i].log_addr, elem[i].len); PRINT_PACKET(dev, (uintptr_t)elem[i].dst, elem[i].len, 0); @@ -257,7 +290,7 @@ do_data_copy_dequeue(struct vhost_virtqueue *vq) int i; for (i = 0; i < count; i++) - rte_memcpy(elem[i].dst, elem[i].src, elem[i].len); + pktcpy(elem[i].dst, elem[i].src, elem[i].len); vq->batch_copy_nb_elems = 0; }