From patchwork Fri Sep 20 10:27:10 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: 144345 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 2B9FB459D7; Fri, 20 Sep 2024 12:37:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 899E443417; Fri, 20 Sep 2024 12:36:51 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2082.outbound.protection.outlook.com [40.107.21.82]) by mails.dpdk.org (Postfix) with ESMTP id 01A2D43423 for ; Fri, 20 Sep 2024 12:36:49 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xgzuigyFK/+ZIPR1Ce6l0dtFNz+PR60iYINgSJ0uI9wnzf2+Rd7LM7rbgGBw3xQBPXJ0eSwBEOi/2A6o3B8ciO9TRwntV6goihBO2higvo1M0eeuwVUdc67OnzgqxwBUDlYRKCSVecrvG72XFopukf4h7//2uGJYvWE343BRyyhOmoHcAQCv/E/jwlXOpbNHFSPe0fKg2zabM8DdZhr1XbuMi04xRKAnfW/qhQhCufmQ6otmUB8IcPGbUO+t/A2ogRzYC0DEZk9lc+dPW9T/mFkKEzAN21ipSFRwUFHFqx2He1u0u+3vzBqVB5vUuFf3/aqAhkTP0wnX5qri+zxtiw== 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=Doihk/tXzWCgRB4pdox+P2cPEHoT0hSGdG4uBCgvxhc=; b=hq+0xyazXsR5IDrf5AUciekwz0MEO+CtZBgVzPKOIGxgWxEZCR0+bX5FAFlIUSD0F+VEcztuU//BCWX3iIZb3IAk5/EiOsOScRho9oCfKCzqa0yR9SsEUGBvSA4AYDsUDeGkcc88839faIrn7BPq+41Rcm8Bs3IGjoeZrZf61IS9xv7YC94LkhBeOt/DDmLIDn7/Qm0lVW2Wfinpy9uWK+hr1QHlIrtdk0afEveFwFHQG0SWSZGuooDOlrLWFPzOtnrophLC321upd9Bj2bwaBZw60uVJBaHNdFxqyDfBvneteCrSWPfjGSL3oNZHtIPoDNG2pBMXXbc7c2QwXnB0w== 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=Doihk/tXzWCgRB4pdox+P2cPEHoT0hSGdG4uBCgvxhc=; b=PlsWgo/Gbj/RvFfCN/n7BdFrBZJ7ZbiyPg9KJW7BXwMoRT9VmzgeVtbRYbX4EEVnCmnhPZ9sJKobmgulUHHEDB+W4h7TsxFBGz06S5VmHKsKbJlX+/buusPX2GqooI1mhjEVjB0mOTVHVuNLGMCLjZKdabUfiQfnyQbKm5ZcZ7InmCvJC0x2+NBkP3iDm35E9alGaKaVmL9dxYruMCO5c7W+f8uO4oOO0PvExD6M0+vmU0NQoSuWkyASdC0iwbtBAlt3bgD/k+5aw60FTJbd7GmeW52Xlwomfkgs4RiuNSBRnZL1cT68PbwEHUwVshPImSfE+N3jxys0CJ2HOImblw== Received: from AM6P192CA0091.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:8d::32) by AS1PR07MB8589.eurprd07.prod.outlook.com (2603:10a6:20b:470::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.21; Fri, 20 Sep 2024 10:36:48 +0000 Received: from AM3PEPF0000A795.eurprd04.prod.outlook.com (2603:10a6:209:8d:cafe::9b) by AM6P192CA0091.outlook.office365.com (2603:10a6:209:8d::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.30 via Frontend Transport; Fri, 20 Sep 2024 10:36:48 +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 AM3PEPF0000A795.mail.protection.outlook.com (10.167.16.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Fri, 20 Sep 2024 10:36:48 +0000 Received: from seliicinfr00050.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; Fri, 20 Sep 2024 12:36:32 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 61E0D1C006D; Fri, 20 Sep 2024 12:36:32 +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 v6 1/7] event/dlb2: include headers for vector and memory copy APIs Date: Fri, 20 Sep 2024 12:27:10 +0200 Message-ID: <20240920102716.738940-2-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240920102716.738940-1-mattias.ronnblom@ericsson.com> References: <20240724075357.546248-2-mattias.ronnblom@ericsson.com> <20240920102716.738940-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM3PEPF0000A795:EE_|AS1PR07MB8589:EE_ X-MS-Office365-Filtering-Correlation-Id: aaadf712-0f27-4bfc-c8a2-08dcd9602175 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?4tHx4qcXCGbaVSWBar9++ZP6xjCMi35?= =?utf-8?q?Z2y3eFfyCKxUmU+ArotpHQ6gI/yA5uDfW80as57EMzygJ+rUPBLTGyQ+iYiANSWKL?= =?utf-8?q?M3DaQJULvRMeNIgH+nyeicsxnoBimHM6tRDyNxG+nk8fLvwlzgcEuLWEZLZT9F2fw?= =?utf-8?q?NjBaLe93tyYWzMJk/fiedvWGu8YlnIC7Ye6eXF9yCXWPXJx6Gzkmp7eWxfiBtFKxa?= =?utf-8?q?YwaPhdnOqeLGlA9mWCmvLn4RWhCFpPbdBaxpO2EWqJadSwXbu/6cPdPm1mvFQhxeI?= =?utf-8?q?DCZz39mkoqRtuE5YEFenZJmvSPZkXDP4n9Y3HnnyyzxVFC7FiZzV10k8WA2uDklHf?= =?utf-8?q?R2h6cCJWIxW1O7S35KPBmDBGRK9fk2VEj4ilyqz0Vn5hj3PY6nSLb+3r3BII/wBjk?= =?utf-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G80Azb?= =?utf-8?q?zu0VuOlCl2zYBsG/hyJmFLlXam6mNK/ntqGUe+69HH2Dfcbp4P4nopfYP2Y3S/BcB?= =?utf-8?q?73wEYBAs2NoO?= 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)(376014)(1800799024)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2024 10:36:48.0754 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aaadf712-0f27-4bfc-c8a2-08dcd9602175 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: AM3PEPF0000A795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR07MB8589 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 DLB2 PMD depended on being included as a side-effect of being included. In addition, DLB2 used rte_memcpy() but did not include , but rather depended on other include files to do so. This patch addresses both of those issues. Signed-off-by: Mattias Rönnblom Acked-by: Bruce Richardson Acked-by: Morten Brørup --- drivers/event/dlb2/dlb2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index 0b91f03956..19f90b8f8d 100644 --- a/drivers/event/dlb2/dlb2.c +++ b/drivers/event/dlb2/dlb2.c @@ -25,11 +25,13 @@ #include #include #include +#include #include #include #include #include #include +#include #include "dlb2_priv.h" #include "dlb2_iface.h" From patchwork Fri Sep 20 10:27:11 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: 144339 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 95A50459D7; Fri, 20 Sep 2024 12:36:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 60E85402AE; Fri, 20 Sep 2024 12:36:38 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2083.outbound.protection.outlook.com [40.107.22.83]) by mails.dpdk.org (Postfix) with ESMTP id 81FCF40275 for ; Fri, 20 Sep 2024 12:36:36 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PCjueA8Gh57sW+Xhw4zEi3LRSZ+KWOmmkzNzYgNdxIjs/+Z8wsk0xtY9x77fjG1C9o8QfE9b1KolDQQUDqFvFVRyrP9r+MWpP63cCMUCqlo3qyEKg0SL7qgiyjkA0pNBBfxr39WMOdFuvZEybv4OCtYqvNhHtAWUBB1/ZV/GZiHwAo1Fwl1QgQ8h2ays4tLINMIu745gktPor+GaVog3odYYV3uunq1Fl6UeUI16LvHWza0t0+FxM5yt17pF7ShuJ/iAZzr901LOp+ugJQFXQdjzj4/cNKxUk8xz5hibCPlZJK1Mp1cbCQP2qCj2Gfhq8mmaC7reX/iqh5FTN9K9Ag== 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=ly65WDthT1+uMCN/+8zd/XZvr9Hj54BGfztWcjZ1mjQ=; b=RZIuezpYLF8FWHUnftnD3Dz0d/VLWdR0bCPwhv6VYia4c7ZHRby+frTnLLj5yikUuwKOee/A9kOu3sUmfuAH0s6jmBZu5nQoaULzF4gl2U+TbuRbSh2O6WIdM4Z+C83coOWFYtpe5tAjYFG3jKpcDIfr85kPzv0pilzsuhDR/ztq/go6PrM5kUckyt+Fp7jR0riT2QcKQeDGIlD2rXkIupUTX99KrwZMBfwE3wgDthA3nGT5AjOnk6n/NtqI64zqbxIIj8VsqEITpoj0xK//qtj9iNbkDWkc3EcESlwc6qBSoxEG4v5yah0ti/HjW+PiXCbk5EVfxguzqnOBwHk9mA== 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=ly65WDthT1+uMCN/+8zd/XZvr9Hj54BGfztWcjZ1mjQ=; b=B/LPGiNsKfPGPFpnNHaBoqXsaj1r0Qe618m3ciR+jqVhtCNY/ror4TY20n0IdlDx9yVxaasmshglcsfMkoaMRoP4qbtCdMDbkIDvKGn6bZY4vUSjV1jRoPcb9T/t9vpxBBeKKAC8qIrUBLA1hzAo2YVTQYw/nq0MjWXX5cS45nmnH8X0ivuQsPC0RntO0dDowsaIb1Scxiu9eqjbOziA+3J0rh5eehZPjRgeRopJXTuZbMq1aYiEUtSeqkHt+rVhTnNI/+JNGEeooda7dzkOPa2GD1aglYd149yGM4P+M0Vg3cvmoGIGF064KChFuoHDRJEzVnMwkors696ObvaLxA== Received: from AS9PR05CA0153.eurprd05.prod.outlook.com (2603:10a6:20b:496::10) by AS1PR07MB8687.eurprd07.prod.outlook.com (2603:10a6:20b:47a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.22; Fri, 20 Sep 2024 10:36:33 +0000 Received: from AM1PEPF000252DF.eurprd07.prod.outlook.com (2603:10a6:20b:496:cafe::3) by AS9PR05CA0153.outlook.office365.com (2603:10a6:20b:496::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.29 via Frontend Transport; Fri, 20 Sep 2024 10:36:33 +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 AM1PEPF000252DF.mail.protection.outlook.com (10.167.16.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Fri, 20 Sep 2024 10:36:33 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.64) with Microsoft SMTP Server id 15.2.1544.11; Fri, 20 Sep 2024 12:36:32 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 7063F1C0070; Fri, 20 Sep 2024 12:36:32 +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 v6 2/7] net/octeon_ep: add missing vector API header include Date: Fri, 20 Sep 2024 12:27:11 +0200 Message-ID: <20240920102716.738940-3-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240920102716.738940-1-mattias.ronnblom@ericsson.com> References: <20240724075357.546248-2-mattias.ronnblom@ericsson.com> <20240920102716.738940-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM1PEPF000252DF:EE_|AS1PR07MB8687:EE_ X-MS-Office365-Filtering-Correlation-Id: 7e15ecfc-7aff-4887-a780-08dcd96018a7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?uTByYGjhAoBO5HctFrzacgalK8h3wYE?= =?utf-8?q?Afqw+ucDBIKQlQzibCRqySIjLiV+2EVDwyEBKX7hZ2043UR80vUJ2zJg2NGyRXLyq?= =?utf-8?q?RRoqV47PQtweiQusuroevs63G0hFN3AdauoC16ovDNGbJchkJvCidW0s+B5IjQRvs?= =?utf-8?q?8FzYTvw+4dVNjlnYs9dZvHUHrzM3NeYtqGlOneKTTgfU1FZnah96CmCwmjptaHRZR?= =?utf-8?q?PmO//KzAcF7/fcfdp4+O+BMyOZauEpILOu/1ks10iI60pM737tRWth657nYxaCQgf?= =?utf-8?q?9A+HJIdgZEx9AG1+NVYdaCi6NROrMLRIsB3xmMjZWHdZEE2T1Yg+Xn8EM5mCKFxcN?= =?utf-8?q?sHKpev0X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Q1b2Zy8Dwp2vXAABPb5stmpgElyuVIb8uhElkAJSruYxIuxYYr19R0SUFZxF?= =?utf-8?q?tYkpA8X8ovCZOezy6UXwoke5YEmRF0iQUblFJyy2QxN8yTpDfhR0ciOHRDhTNQbdu?= =?utf-8?q?4afRbX/suyiY?= 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)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2024 10:36:33.2871 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7e15ecfc-7aff-4887-a780-08dcd96018a7 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: AM1PEPF000252DF.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR07MB8687 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 Acked-by: Morten Brørup --- 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 Fri Sep 20 10:27:12 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: 144342 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 05F06459D7; Fri, 20 Sep 2024 12:37:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8CC8F4341E; Fri, 20 Sep 2024 12:36:43 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2055.outbound.protection.outlook.com [40.107.20.55]) by mails.dpdk.org (Postfix) with ESMTP id 98461402AE for ; Fri, 20 Sep 2024 12:36:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hHWTiFz7FYk0cy+KwrEC+Xr973nZlOgRa67nfd3m1u4m5xqawN9H0o8MzqH9F60MoCbZS3omv1vAJrMpR8vx5PBc8pgHnsgluKCTXDokV66O1d1Q2W0zYmWo5Cphyyegt/G6/4/pm6AjaKVknJD3aVhYTQe8yVNczM7WSJK9uvbF+qYPo0iHnYZaxmlWjXcJ/Mp+O+GO4jqVVJ7GuJQ6qK5RUsonW2Oiadk0kRz38lmUcemKJrUUq3/HPgs1QPPwsWqejG0A4deWuiFs78TI+IXOLax7Tiapbbr0ypu6OcXIxoxJek7gQAA9w4ZEXebrI2+fxnhhu8IA2YFwJQy9AA== 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=AZBFvuAIZJUG13J5FfXhzC0A4sS5bl2m1qkJiWVE3XQ=; b=GrFnaZTUi5wh2bTRXHeWXRdIGqhqmNCvY8sOUll/bBkWrblQBMxiwkRsxzcQ2AxbFa+gb2FwcmZ+QtAYp2E217rDR+s50wnGdS9Yfr6FnGo0b8vReMP8pCuqzT6UzMybPH6piCd9im4jfWoe+r/J10bElRVp7hieJcittR44OI6mikniiMauZ9ZPNhH4//YEFg/ViO8s5vtuOYROS2HoCmUNd7WFLJ7KGtR51YXVw/uTakPO56zxnRvCPa68/HO4CSBpmL2S9xSTT95PqL6O9LgMulpJCEa7JL9P5mf7zfGZLYP0fPBaaWY2PPD2CocEX4Gx95xxASFqi3PDEh1/Eg== 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=AZBFvuAIZJUG13J5FfXhzC0A4sS5bl2m1qkJiWVE3XQ=; b=rorsWxTpmfgK0rTfCA6gQclNT34vrdAjUhlJVIOtntj4nsyd7S217XVi8N5qFE41qoqRO7OJiPllguuSIlHmpn+nqW9vOJnKkQ1JygkCZce4mHZBPw06rRugelnrYNN5e07pCXBzYjMhUxdy2eXo62hBGnhvEhCoknzNIoRtaqyUGkxb5kZc3TInVg9vs8RivP8KwSkvpWrR1JgZEMiQqZUDjXMc3KD8YXyNkvU8/kNfl8GtZlAGiNtitKHiYZPkZjDCYgk+Sl/VBxvl70/Hyr/XpO56T4EHiGMqyhDsNctztf3Aq08irZh8ZBV21T48/QHiXUl84DZBBs8OUQY9hw== Received: from DU2PR04CA0252.eurprd04.prod.outlook.com (2603:10a6:10:28e::17) by AS1PR07MB8831.eurprd07.prod.outlook.com (2603:10a6:20b:47e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.22; Fri, 20 Sep 2024 10:36:34 +0000 Received: from DU2PEPF00028D08.eurprd03.prod.outlook.com (2603:10a6:10:28e:cafe::4e) by DU2PR04CA0252.outlook.office365.com (2603:10a6:10:28e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.30 via Frontend Transport; Fri, 20 Sep 2024 10:36:34 +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 DU2PEPF00028D08.mail.protection.outlook.com (10.167.242.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Fri, 20 Sep 2024 10:36:34 +0000 Received: from seliicinfr00050.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; Fri, 20 Sep 2024 12:36:32 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 7F2941C0073; Fri, 20 Sep 2024 12:36:32 +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 v6 3/7] distributor: add missing vector API header include Date: Fri, 20 Sep 2024 12:27:12 +0200 Message-ID: <20240920102716.738940-4-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240920102716.738940-1-mattias.ronnblom@ericsson.com> References: <20240724075357.546248-2-mattias.ronnblom@ericsson.com> <20240920102716.738940-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028D08:EE_|AS1PR07MB8831:EE_ X-MS-Office365-Filtering-Correlation-Id: b24f2536-4f84-49e9-d56c-08dcd9601987 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?62VKtg7HpTMcuXAW5k4jpd9cba7xXtq?= =?utf-8?q?z4gafms3CJ7RobgPdndVeiS1FajOkpUJ2dvxpqPYBc/84fJ7CZz0MhXPswTOEcSeE?= =?utf-8?q?YcQmnU8Vku7PgUGJq6rLKVJKkWawT5zOQ7n3PKt3FbFw/dIkYuStuA0urn6oRme5l?= =?utf-8?q?9zXrynzdJBzw+v5okSmfTHZba0Uy6UD8ldRXnZ0UblMfyP5J4K5lGSDviWgqyp3++?= =?utf-8?q?dYA3Rltl7FScTcvCyWKnRdfHwpHWq4WC2W4iDLz3URfbM6Vqb4ZUJla+YaOZa2W35?= =?utf-8?q?rgR2/Bvj9lVp0nxG2/4ZaSC+vvOURaOwdK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DDJSf7oPtZ7Toq8fqG1ggLQLKR?= =?utf-8?q?a4h+jCPUOkr+4BSE/+58lfw5AWpsdEMygAgml5cNP3Z0KbEEv+WqDGmlU9j9nBsuL?= =?utf-8?q?2AnPX3bxX8vyUDCj2CHfzqKpm1r0Op5Dz3yDTCp1GpexXKON5Bh2P31e/VjJIIkvT?= =?utf-8?q?nVbX3gMyxr4F?= 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: 20 Sep 2024 10:36:34.7406 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b24f2536-4f84-49e9-d56c-08dcd9601987 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: DU2PEPF00028D08.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR07MB8831 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 Acked-by: Morten Brørup --- 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 Fri Sep 20 10:27:13 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: 144343 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 AE404459D7; Fri, 20 Sep 2024 12:37:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C023543424; Fri, 20 Sep 2024 12:36:44 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2072.outbound.protection.outlook.com [40.107.22.72]) by mails.dpdk.org (Postfix) with ESMTP id C655340275 for ; Fri, 20 Sep 2024 12:36:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rjl4CS4okDpziMS01PemGG+y/gvkM057bZzXAmUl3m2lQIOw53Bsp7esrVlHg7yiy/mkw4D3m8EOoreC8KrNJU81Mv5A4X3NrR5dJfYllC06Y8IzZrNBstdrhjGjFn0cy/aNfmDPTs/GA6rl9kWwxzQifaaFC28rOLQwLjB8ib8b6SeYnv6mlQOmoOWJmySY/3MCz7k2b2b8iAiDQubSsuX6cVI58KBdxCLdSQfe56TbiGezDiLKLkyT7h6aBQ4EcFPRermlwpThum3MFbGDKd4aeufsVw0z/o8nbCEA0pNXn6dQgxafhFZ86CM9kSxHViFRotvNZINdE7TtN60GsA== 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=Z+3z2AG5a7UqOukbQatvPdxXiapBLvFTDl/rU8uSu5E=; b=XWsOhLhBE1tScei8oWGKU7deaLiZq9/+1K4tEuDw01LOit3gZ5Mrzd3M61VA1vl2vE46bsAhlYyBXlelNnwjXbR6jcO9XYTbMcHN/f5kxrFO8dJUG1oQ8IbLsypDEXxf7FIdqMBdN35M19/ElvXD8mdQ5AttfjTMm8AWnLc3hv9fmQ7ej3j/yBZ2mkTc8QvbIxK0+aLCPi9hFbpWjZUTEb+JuhrHcIi2rBVHV60oX3n02bfeDVwu69O0XmK5muK6pKfFPLvmolslQGJ0iIXG97QsspEdST4vUyduaPZHWXhaUhiaIGktPqBIwrRFZaAdj6BwVxDdKiD2IS1ZZy68yg== 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=Z+3z2AG5a7UqOukbQatvPdxXiapBLvFTDl/rU8uSu5E=; b=hr1oOip+yRTlPI5Os4SuXjuN15DQ9qeGQR6L8LzRxv39meGQRWVi+dCJMonrKz8KY5LGL7Zu9SIB6RLj8Y7gFNwHqNS+vNi1s6Y8yXoKFbEOKDm3UwpHCEdAEP3qOsoPig3bcOCEA4x6UmaVPFMBRvZ7U7idrFqDBvZJ33jew0RkkIZ5q2pgw2v53vwvzABJxgN93qgtcu+XfAGez8dxrMR8fE9A4vS7lxEz+urruB6HjxZIwt6Ng7SjmtbaguidfqXoMC7wCsVNMEXSoMS6aqZHfHaQ+snKBhWkG6TYRGnbaQyBBnQlNNAdLcyH/D4AdqWOV28ebmNXY0iv2/JZCw== Received: from DU2PR04CA0266.eurprd04.prod.outlook.com (2603:10a6:10:28e::31) by AS4PR07MB8531.eurprd07.prod.outlook.com (2603:10a6:20b:4ea::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.21; Fri, 20 Sep 2024 10:36:34 +0000 Received: from DU2PEPF00028D08.eurprd03.prod.outlook.com (2603:10a6:10:28e:cafe::63) by DU2PR04CA0266.outlook.office365.com (2603:10a6:10:28e::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.30 via Frontend Transport; Fri, 20 Sep 2024 10:36:34 +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 DU2PEPF00028D08.mail.protection.outlook.com (10.167.242.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Fri, 20 Sep 2024 10:36:34 +0000 Received: from seliicinfr00050.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; Fri, 20 Sep 2024 12:36:32 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 8DEC81C006B; Fri, 20 Sep 2024 12:36:32 +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 v6 4/7] fib: add missing vector API header include Date: Fri, 20 Sep 2024 12:27:13 +0200 Message-ID: <20240920102716.738940-5-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240920102716.738940-1-mattias.ronnblom@ericsson.com> References: <20240724075357.546248-2-mattias.ronnblom@ericsson.com> <20240920102716.738940-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028D08:EE_|AS4PR07MB8531:EE_ X-MS-Office365-Filtering-Correlation-Id: aa834ef3-61be-49d2-62ac-08dcd9601934 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?EQVRvX0OCnU5nEJDsixJCx2Cc+1pvks?= =?utf-8?q?SfGXG0STWnZ5AFivmHtOBCRbfQVT5URwPYtqHzARwemRqufeAzDNBNg1whrVwHdi/?= =?utf-8?q?w0efPCzYL2k0rCn/yV72pdiUPHCKLRhqxXQSwbbuWDrpBkQ/wB01kY7mqaObTT17Z?= =?utf-8?q?omRUlaI5MjC+Jpu9HW9XQeig3S4sgsJTw+Zb/fIL7nAImrernHZlcXmk5EvtMgKRb?= =?utf-8?q?3Q1998xnXR46hlGm7fgP474IbKvhrNA+S3YWu38eE8Pj4eTFr2RlwZLXb9DXQ/jVF?= =?utf-8?q?fvdI7uLW2m9eUY/FdYp8W8/2eBlxRqEM2470nG8hgvej2T5g4Hfi9W8FnN8ujILms?=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f-8?q?u9zOEpXDPLx8gTXKIsh6kEsF1r9OLFzZ1IguWegghnR7HSY0NzxmkwUZt89ysExjb?= =?utf-8?q?VUp7QJiSOrWULOXWjGs4SoEVD59vjDiiA96uXhvz+dlTfK0bo7v5oG4A=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:(13230040)(36860700013)(82310400026)(376014)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2024 10:36:34.1937 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aa834ef3-61be-49d2-62ac-08dcd9601934 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: DU2PEPF00028D08.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR07MB8531 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 Acked-by: Morten Brørup --- 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 Fri Sep 20 10:27:14 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: 144344 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 ED29E459D7; Fri, 20 Sep 2024 12:37:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 64AEE4342C; Fri, 20 Sep 2024 12:36:46 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2077.outbound.protection.outlook.com [40.107.22.77]) by mails.dpdk.org (Postfix) with ESMTP id 3F5E343357 for ; Fri, 20 Sep 2024 12:36:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=f45ADHsYT9Vgi+QkhIINg2+qxSgnsAqVFFhMiI98RHJpFAy/Q0LfjeS2Xq3ZSlFlIwMTrUsUOuAeDummT2qxLEYT9ZWnpuFEp2K/Y/9LJ2stR0NGU3ATJiE/Z4ZxhoTnbQZo7LDSnurH9ZkDBBdgrvSroq98aHL2sek96a00cAYokckfFLzMAMSAtjeRQ9F4E+ynfTs2uJ0IN2omLoswU/xE+ZtLSjDFGLCk4uRXMn+HgK1xHmKy8jCBtBU9LgT1VthsTPbKuWa7yxNrU3m3eqVOydKGuPMx/Lp4+t+JSQ4tAqDOEt/pn1o5wr9grJa+ddbSuqcgief4l+Jera2xew== 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=v9M0wHaa7h94m7Ds8v5HfR3MgPnPAOqjl2EGnkv+qvo=; b=ypRHtbfcmH8yaIq5sRtusiBZ0w74HoPvQtz1XANd9lI9zzSmJbzMoN2Ni7zYiOptzEMNoPw9M5MbqSyQpEJmpv9oRYOMtEyL/GHolFHn5L/B6aW+UnlHup4Rij0Tz+OL+rJAYRTvIL3M6dhZiq0gKGO6viZijvv3yBBxFITCZLEuLgryomOPQEsO7IqDLSr9ApDTTBxL742fF3HD3+9IOAJsNz8C8cKRGn5/Exp68j7T09hxAdOJ7nS4cSHkdqufh+wzRoWql/5RCDGB45NlqSvgP0ALzWlgXnCrbX6zoIy0nlD1yyAdT/9gstJlFaqqwxpnBoxY9j8DIXKWnKez6g== 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=v9M0wHaa7h94m7Ds8v5HfR3MgPnPAOqjl2EGnkv+qvo=; b=r8JI8xhQH+7RJfeAY20OJP+xV+72C7mPswdLHRCvJmtFTdKXhFxFNWW7kBQsZXFb1HgLKvKAvSTFBrASthOGGvQc4Q9nGwMhgpIHrGLV0FkycUPGgcRpViAuLHpq82BhgghSLCA3ok/dBLRaA+9S06LFpTrqzVcgVvscbm8QXhewOgFK4eM3CYBRL1NShpVjvN81qWYLjIu4ZYgMZ8decMeR9toUZkPozc9xvAqhBhvlnikmH0h25S+BmnqkRhKX068oqsf8MSY8Pn9U1wIbYRt4c/lwrOid12QP4SNkrcQux+kqSAGxomezN6uoe5oYkXOyFTvCKFc0BL4xeho9LQ== Received: from DU2P250CA0010.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:231::15) by GV1PR07MB8383.eurprd07.prod.outlook.com (2603:10a6:150:22::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.22; Fri, 20 Sep 2024 10:36:36 +0000 Received: from DB3PEPF00008860.eurprd02.prod.outlook.com (2603:10a6:10:231:cafe::f9) by DU2P250CA0010.outlook.office365.com (2603:10a6:10:231::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.30 via Frontend Transport; Fri, 20 Sep 2024 10:36:36 +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 DB3PEPF00008860.mail.protection.outlook.com (10.167.242.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Fri, 20 Sep 2024 10:36:35 +0000 Received: from seliicinfr00050.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; Fri, 20 Sep 2024 12:36:32 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id 9CE0A1C006D; Fri, 20 Sep 2024 12:36:32 +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 v6 5/7] eal: provide option to use compiler memcpy instead of RTE Date: Fri, 20 Sep 2024 12:27:14 +0200 Message-ID: <20240920102716.738940-6-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240920102716.738940-1-mattias.ronnblom@ericsson.com> References: <20240724075357.546248-2-mattias.ronnblom@ericsson.com> <20240920102716.738940-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB3PEPF00008860:EE_|GV1PR07MB8383:EE_ X-MS-Office365-Filtering-Correlation-Id: c9e00041-c6db-4e52-f6ae-08dcd9601a11 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|36860700013|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?jxrlGmy1/QmgNLT8R/tBErNfHTnTo4U?= =?utf-8?q?fE/pebuVx5kxFKLvRN0nGONXgMUpPhHB2yDG3gYJFRpQk+MXIuO2v0+vIlF+pyToj?= =?utf-8?q?bVum9JIHl+f8YVm1VDJmTPGOIbZAT9ZH1mkLSGTFiulxLS4MgwziMmRszKIyDBOmx?= =?utf-8?q?gz3Pdtdru2Pp8V15geLN2NvG62c/E0DCkhdCMVbyERj/grq95wRjb7Dv8yRQlv+sA?= =?utf-8?q?pSduKhoVE2haQ2mHEbNxaUM/KMwz1yGadGKBHxmcNU0fywU+H+v93+6uOFqACyfVJ?= =?utf-8?q?RC41L0N/3Hqvid5WEaZtYhOb0tPy5BhWysJkkjugcF3rdyU32R1yW+pD01kSvLig4?= =?utf-8?q?TNyOJ1ssPKhpqGXwG1jPMhE/6QyqUbzAZw/8sEjrFUnYQKUCr8w618VqcEHKd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Y8llXjbQrxU+?= =?utf-8?q?2SUhGYRwgh+DwjbLwjymUuIxfJC3Uir514uW9SlUaDPwM11Ef/4oarlElTZOKuUA4?= =?utf-8?q?3+VI/9tMWrVB?= 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)(36860700013)(376014)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2024 10:36:35.6459 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c9e00041-c6db-4e52-f6ae-08dcd9601a11 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: DB3PEPF00008860.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR07MB8383 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 v6: * Rebase for 24.11. 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_11.rst | 20 +++++++++ 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, 109 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_11.rst b/doc/guides/rel_notes/release_24_11.rst index 0ff70d9057..8be000294d 100644 --- a/doc/guides/rel_notes/release_24_11.rst +++ b/doc/guides/rel_notes/release_24_11.rst @@ -55,6 +55,26 @@ New Features Also, make sure to start the actual text at the margin. ======================================================= +* **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). Removed Items ------------- 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 Fri Sep 20 10:27:15 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: 144341 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 D51CF459D7; Fri, 20 Sep 2024 12:36:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F1A764340F; Fri, 20 Sep 2024 12:36:41 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2042.outbound.protection.outlook.com [40.107.22.42]) by mails.dpdk.org (Postfix) with ESMTP id 5DEC440275 for ; Fri, 20 Sep 2024 12:36:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ym34YFdH0he2EIelCP7AdZ3UpBYtnFKd4Pd+9xZq+sUwiLGLE8m+PjhhrPM/4yU9HZ9tJfG5IGWAtHVtltwDgCsz6369BHlg+z/9pQZD5tinGLikVQ9hy8g4MrQb3bGcP+4HmQVeqc48BAc9WWng5aYSG3ah6VO0Eo9P489btboRR9uYf491iSuGs8DttCffQ1gZFQuTXbbmjm2nj2EBcEvLfPBEy4yQlrmXZfv7yzVmFTu6BuNPr8A/sXUBoQWufSbYdJUDsQuLJEfnRn0HE0RNxqrL4IXSbGvGQyZ8rWjss2RhZG2WjRR5G4YX2WYzlwksER2/K6+vASJt3c/WgQ== 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=23clX1/AyXmHbyL3fRkxMTKWEuhvVtnGGoXL9xRA8w4=; b=WmjVCG/7PFxgcT09KPGRX75h5FZcgshplrDYIMf9YCcWx41OnhD40bIr9M8xma/nmxUQKIbopPdamyZx3AuJwYTmwS8kGgEUyl/DkBXeJNnwUXSQOjGEqJG47YY/zwiryXwQMakG7BHJEj34eXTsocLawAU4cAKHKg2ugFmyVKFcYPR0/SfkTFjEaiA7D1Gzzytoeueax46SiPm21Tg+S8NkCV0K7Goh+v0PXOGke9I1WpzhSDo2SUTtWZoY9pszQDiH1WVQV5pUzf4jdobE/jZHNQok5CxXXmz9hiahW+rhfquzw4YF+MsnlYixSDbGC0OwwnCp6897crHK6FKlkA== 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=23clX1/AyXmHbyL3fRkxMTKWEuhvVtnGGoXL9xRA8w4=; b=PIHZnX8hbSBEsioxNM/siXu/Ggkw4B+yhDVvLS+nogPxnfCZSuY1rlnObNqVER7lFwYwG/dXsFup2OreAFRnaevcnK3Q5jHQJiMOKi5UjkjorB7+ylQyN0/meT4wuHT7iPeKCHNChM2Ke5BA81dF5QhCtLEV0Mw1YkzIp7eWRN9W0fbkp3QNjDengFzOgLZJSQySBsXoDfsUAq3d7weBeR4g66FeKkOas7lOlybPguQRPK3qRs7yAa9V213P1C3Rj/wY2RhkZLSG0yMq/E8ArFTOAsI/6KFW+D8dJwymWPG7b2ADG+6iqfJCmYYnsfyB3LbXNtKd8F5brS3+TMxD7g== Received: from DU2PR04CA0262.eurprd04.prod.outlook.com (2603:10a6:10:28e::27) by AM7PR07MB7044.eurprd07.prod.outlook.com (2603:10a6:20b:1b9::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.16; Fri, 20 Sep 2024 10:36:35 +0000 Received: from DU2PEPF00028D08.eurprd03.prod.outlook.com (2603:10a6:10:28e:cafe::5c) by DU2PR04CA0262.outlook.office365.com (2603:10a6:10:28e::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.30 via Frontend Transport; Fri, 20 Sep 2024 10:36:35 +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 DU2PEPF00028D08.mail.protection.outlook.com (10.167.242.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Fri, 20 Sep 2024 10:36:35 +0000 Received: from seliicinfr00050.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; Fri, 20 Sep 2024 12:36:32 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id A46E31C0079; Fri, 20 Sep 2024 12:36:32 +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 v6 6/7] ci: test compiler memcpy Date: Fri, 20 Sep 2024 12:27:15 +0200 Message-ID: <20240920102716.738940-7-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240920102716.738940-1-mattias.ronnblom@ericsson.com> References: <20240724075357.546248-2-mattias.ronnblom@ericsson.com> <20240920102716.738940-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028D08:EE_|AM7PR07MB7044:EE_ X-MS-Office365-Filtering-Correlation-Id: 8dc49d32-cd63-408f-5c64-08dcd96019cf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: =?utf-8?q?ztkljx6ZdkdWaLfz/QVdoBBrDuThRZ0?= =?utf-8?q?Jvxd+ZaGHCxhdEgszieHzMCJX8wEa1tGbFUFIt9hbmIbTfQNgttTE0j1fmrSlZ4XM?= =?utf-8?q?j95uC4MmFMQ2czcusYitr+EIcA1YPEr4ccsVHt25m+pWZEGCGE4AXdk9kgAs5cX1r?= =?utf-8?q?Z6AdW3XeIwcmVqQ3Mrfl5KBJwM+5u2ASyBidfvS9Pc44U7qEHnvTiel4dAfQjAApL?= =?utf-8?q?xx1PpyGoVeeF4aJSJWgPSvrvFEZ2mEgtZtm4s8zBqILT0uPVdSSqNPKHaNt1RidgE?= =?utf-8?q?fViPJirExGeJ10grROAZDfPL+y0LluEf2JjGE32Z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gCN6T47HDmYW+I0tJPFf0RhbrQo?= =?utf-8?q?CneWZTc7V0B6UD8dCwLGshXRQCN9a7T//mG6sK2DqSaNrf/AMUU/kHhTc3o8W+TKp?= =?utf-8?q?eJ01mGr6uKYmJmEf5Qy2Wzfx00K0jEc59an9ERp+tytopTANz1JN97WnsYNGjll/o?= =?utf-8?q?BnGU93dTUBxd?= 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)(376014)(82310400026)(1800799024)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2024 10:36:35.1938 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8dc49d32-cd63-408f-5c64-08dcd96019cf 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: DU2PEPF00028D08.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR07MB7044 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 Acked-by: Morten Brørup --- .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 f7d3affbaa..8c52864294 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: 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 Fri Sep 20 10:27:16 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: 144340 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 57AC1459D7; Fri, 20 Sep 2024 12:36:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9AB99433C6; Fri, 20 Sep 2024 12:36:40 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2076.outbound.protection.outlook.com [40.107.20.76]) by mails.dpdk.org (Postfix) with ESMTP id 115AA402AE for ; Fri, 20 Sep 2024 12:36:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KWQ2+D9uTouXKTnxeDz4tl7pajusdKqct+3pqxe6POKp7v8X3M9CDY3nmy+mv1dgvN7z3eAuF4o/NdaKdpqXqfFFfgBCkj5KN7o8IXDKBaKDI9ZlKZZrBbqlgCTuMPF/B6Fsgl6pnVlS/b7pPvVzd9I8BSgUoUdSAfQRrRft8x3jlbVXS8pQsD9yD4tNAufeiPjiwx+/2hvBAWstlGC3xiDbSPSl0FDAqyObxWfIeCRAowbUr0Uwe6wnRetmEtlrku/Pwj/zQ36N5U9g01DwbzNE6U6VROTjz1JSJdWgMBuwidDo6HqZ8wbM4rISy2cq4v5cNFt05wP1S3pIIs/5aQ== 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=NhzMIhddzxFM+bSw9avxtstYMiXUXzVe7s++98BlQMU=; b=LIB2EmYV79QQTJDYVRxEvhC1fa2s8ZcZtgalMnj4+9qC0wlHS6CLCFv8Ib8s6si9HrFopY+u0KP8D6e12Cv47y4sF3DSW1j1OOecIRJSbiy644449axOLfUVrNgAAnkN3l1l4i7mbBxU1taQ641Xof9bS0a3L8PXu7HGmylLGNrLXG0z0iLT3Z6AAcgZeFGHfSWFmXe04J02DuAENm2FZU99bINhK3Y62itWK+nc9RGsoEP0rCRSIzDT8PaArj9zA+C/E1F6O11Gk6cxBOWbnW0YE1qK8dZArJDkEc5J1hnW+9IJC7ge2h2V2DRKP7IcePybiI3kAgWpw+T+ytsvTQ== 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=NhzMIhddzxFM+bSw9avxtstYMiXUXzVe7s++98BlQMU=; b=yzg8DakZ/YrytuYEYfIO1bShy4+dzLSVuq8BYWDZDE0B2pAZFbulII5ClChD5PnMOFyf36oOAkZwRMxPhcatQpPXrzWA26EVAn7PRYp2EhUG9/vHlJYRTeMCzO6+P8ZLgoihW52R4LFsUXrpJtztmJtPDMswYtOle2b2X28jE3qTu8vAwCySqIFHCEXCbuEJYh27nUf3ZzJaj6Xcx/onQLFFs0BMTYqYnc4UGCTb+h7j5PONhgDmWgsjGEDOAW2oaPic43+r2Bn4yoAfX81kEymJpbHPho0Wq+c7qnsNmtzxPulsdkbLdW8ByV4PTrsqj8K/PLsb62hCTvE/pPJLaw== Received: from AM6PR01CA0070.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::47) by GV1PR07MB9119.eurprd07.prod.outlook.com (2603:10a6:150:8a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.16; Fri, 20 Sep 2024 10:36:33 +0000 Received: from AM3PEPF0000A79A.eurprd04.prod.outlook.com (2603:10a6:20b:e0:cafe::8b) by AM6PR01CA0070.outlook.office365.com (2603:10a6:20b:e0::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.30 via Frontend Transport; Fri, 20 Sep 2024 10:36:33 +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 AM3PEPF0000A79A.mail.protection.outlook.com (10.167.16.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Fri, 20 Sep 2024 10:36:33 +0000 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.65) with Microsoft SMTP Server id 15.2.1544.11; Fri, 20 Sep 2024 12:36:32 +0200 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id B2CFD1C006B; Fri, 20 Sep 2024 12:36:32 +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 v6 7/7] vhost: optimize memcpy routines when cc memcpy is used Date: Fri, 20 Sep 2024 12:27:16 +0200 Message-ID: <20240920102716.738940-8-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240920102716.738940-1-mattias.ronnblom@ericsson.com> References: <20240724075357.546248-2-mattias.ronnblom@ericsson.com> <20240920102716.738940-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM3PEPF0000A79A:EE_|GV1PR07MB9119:EE_ X-MS-Office365-Filtering-Correlation-Id: 03f8348e-7a3b-472a-ae2c-08dcd960187f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|376014|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?L28H8Omb9HX5K7hkb5j9fMXChrk2KQA?= =?utf-8?q?vpYF0URYbR6MurlnzJ04oe94ZnjWl5u9A4VNqGZQBsuIYfVRzp4oAfOBxu+M6yWjg?= =?utf-8?q?eSXEKu+JC4/Coja1ea3u1h/pnnKUS0RBBBXsIHX0u18Pwy4+VyGZWkb+XKmLeg+ln?= =?utf-8?q?Tqe+mjuq1vfhD93JPUVG9zTuIyJbJmTrndXMTk6WtHjTIX1dCkMG6+qXLNRV9MaCS?= =?utf-8?q?kEMVDzBRztRXFNL76Mmh0wnZv3LVCzTkG/W7Gf3CeOMt8nCQRMnJCrUNPKWERcAyx?= =?utf-8?q?DoSnoxvLR/qHffU1MhKTNa+NY4o0ZP1gCaFk4Q3DTdRlnxeJvLMfMehLH6g9dC77D?= =?utf-8?q?Mcq4hkDKcvawqKJsPXEzFFoK5Q1acAnhF4/WnEllqo3fj/Ek2XrNyygsldwlZCZAE?= =?utf-8?q?u3K8BAem3gYYnT772m0JMHhPCW//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lO9IC8XcYYA3seU6aN+OKDb1U97iYAc88oz2UVK?= =?utf-8?q?FT66WlbAE2Zx?= 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)(36860700013)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2024 10:36:33.0251 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 03f8348e-7a3b-472a-ae2c-08dcd960187f 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: AM3PEPF0000A79A.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR07MB9119 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: Maxime Coquelin 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; }