From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 02E2D455D7; Tue, 9 Jul 2024 09:29:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EC19642E91; Tue, 9 Jul 2024 09:29:47 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2090.outbound.protection.outlook.com [40.107.94.90]) by mails.dpdk.org (Postfix) with ESMTP id 8781740DD6 for ; Tue, 9 Jul 2024 09:29:46 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NZt2OMK2VfZ6jlvivDYKPJ4Hf/XE75npuiSZleXgSUTbP+ODNhKuJGJK2s16TmQV1tUFxGXpz9BaXCwUTH74XKzhztYCPpMfTAVmXIYz2MOvZonMQZJBurdY8Xm4ewDK0zZFdzNfhS+TwS/TYq3SkEFDqgWo6JRTrmP0iJPxyARN6r7KTQ5J/OoANi3HjtBgrjS/weEHDmrnImy0eDg2Dbbx/5mjy4PA5LLmIXgyym66jMeHEJ/x4kBrI/BZ81v7DiRKdQdruy//E2JqP62L+O/uEAVX3UBLmc/dGDAPeatbufB73OiZTbeELOldTomsWCZ5zlMJdvyGlBzTDYGAqg== 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=0p9yPQat3vxHxDhjPTKL9Q6QSzH3sYkwt9jwgVs3/is=; b=RN3XwnHYTKOtr3U9bWjXh7hyhw4ks+auyRB/aIScGHdTS4CIe3HQL9qbqeyYvZimnV2SH5XvSrksAFPmcTnLtbCGlFIlgVXIDdVkyCUtMxwnBiCSWgpM0mQFiJh+hXdXyLsIkHw1PUSkWgAoWqDLbci/NkUqizKgfuVRF/2YZgJonFKhj+yhef0hncLexwYwVn3b2+YQO3pR6JYtizw8hOK9v8CMtkIbatZtlj4udvkoNqze4DMKb2x19ygLF+jrUts65AVijLPEEotNQrNOFPuJl2lfO6PTSqKFuRv4zhFe3T/LbJ6m+ipMM0obsvCayXCFgFMnFVcve8jAYU6c1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0p9yPQat3vxHxDhjPTKL9Q6QSzH3sYkwt9jwgVs3/is=; b=TmKdHpMx1YPeqao32/2CdjbVFXBilQxdyqlSqwxeGS19F+nbJyU1IJ/JhdnubDlBicqWJbpQ2HkI/wzrWujYS5STD3HYYt2eKRgBRc+ImmgV4sS8ufrJN9kzHGt7E+1wBLxJnfZapc3zLGpB+0oyuqg2puN6uXBEaD3MC1CfwSo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by SA1PR13MB4958.namprd13.prod.outlook.com (2603:10b6:806:189::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.36; Tue, 9 Jul 2024 07:29:43 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%4]) with mapi id 15.20.7741.033; Tue, 9 Jul 2024 07:29:43 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v3 0/4] support AVX2 instruction Rx/Tx function Date: Tue, 9 Jul 2024 15:29:17 +0800 Message-Id: <20240709072921.246520-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240708055854.107739-1-chaoyong.he@corigine.com> References: <20240708055854.107739-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0232.namprd13.prod.outlook.com (2603:10b6:a03:2c1::27) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SA1PR13MB4958:EE_ X-MS-Office365-Filtering-Correlation-Id: 8a3d4b1a-34dc-491e-a0c7-08dc9fe8e667 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|52116014|366016|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Hsvle71zDB/kXX3k7itOzl963Q5cg5Ef1V2FkX5pSwe4G4K+jNeEsHNSLjm6?= =?us-ascii?Q?D8/Gs67EqlDHGvVM4ZJ13b7NALimoOmiAhH13FQ+ecKbE3ake56TQq1YvJ7z?= =?us-ascii?Q?WFAvWns2+tPi4I+dWuGB0w8tHS7D7W30PeroVRA2d1d/PkY0XHo6umA+uB7t?= =?us-ascii?Q?BsQ25RZ/aHQMMBsphnL9Dme8CnHI2SSlnWZnZFyUpyKEDwD4gUAgk04xRQLD?= =?us-ascii?Q?FgrKp7QYir7QboPbeo3P/IaFnbPj8wR7ME3I3hei2OxnkIZawsCs22L5gSWt?= =?us-ascii?Q?Ssn5uz/pGTn65XZYuGkXku5FAkTi2fpBUqF6GbxYtwVPFRyz3fjCKWBL2Zg1?= =?us-ascii?Q?xUGhrH5At/WGp8SOKN5vN6Z39ksQonmUcXz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ldeHHuRrH9Uu35PXGDVVs5mk+FW8AJ0g0MCz5wlwE5NCjqYis?= =?us-ascii?Q?kr8qhZaPmvKQ6x9Av3NY5wWlieosKpvzc8pJyuIQcrwKg0i8MiflWTFRkuky?= =?us-ascii?Q?E4HwgdLY2bHjOhM4pmy9WXVlZMeGPsqFCYOsirt69MtgSXoB/Q=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(52116014)(366016)(376014)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?X3mMPMixHlj2K3XZmsFEO7+nLisJnxNnpcDABeD+rfwR5axOHyIZKyFIOa92?= =?us-ascii?Q?InnY6oReR+7Tp+pWHPEJ6Szxn32sKg+VQkletF4C50nhluCO72/aqOOoEgtj?= =?us-ascii?Q?4Wy8Fgf6LCQj0wc8nfGzr35WZwFQq11HU8gYkYtduqzOO74EuKZGlm8vweLV?= =?us-ascii?Q?4vdkfsQwVAbvVfsW4vojgsB2gAW+qp7pTS5QcveVP1T1DKe8N7qi5jXOac19?= =?us-ascii?Q?nJNZkQtJq8J78oHU8AiMDy3KqD02I1B0OKSoIAbrR1UTXOWx7DMRANh2UTwx?= =?us-ascii?Q?e9zVLxG+Q7dOuS5TdSBVW2oOOLMzub6sRHdgnHgu5Rxko87I7yCRViQbyAyi?= =?us-ascii?Q?TFLxMiEnCUGwSoBGlkFTiarsH0OdnJYtd2gfZlMR9Sc8EghQ+NfgbVqg+KOp?= =?us-ascii?Q?InB6oNgOR+ILdJDHRuBmXwv6G/FPXKD03M7E+VYJG8sKPwgEF5zx8aqRDDiA?= =?us-ascii?Q?wJ39iDJk5T3ffx7PrwLV32s04G1fCo1iNQLGi5bh3v2zgw1bFzzDvOn0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UXRvkKU8hkeYoM/R4kvXmGdGpRBnFQ4q?= =?us-ascii?Q?zBH6H5Z5EayumQRtu10T6r6Ke/fvF3oVsYHUw03fdErQfQyABT51MYrVQdsj?= =?us-ascii?Q?yt06GsAldB1HU/Gu3aLKBYm3WH39ha45qMmitJisL/n7kXmtQYC+ztM9/2p0?= =?us-ascii?Q?7ZC9Erd3kInXRshZhojfD7ZHcBr9CwH74GwrTjmVLsAR/O6l7Vj+bSeR6jAw?= =?us-ascii?Q?TQ=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8a3d4b1a-34dc-491e-a0c7-08dc9fe8e667 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2024 07:29:43.0225 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ql1TlbOZzEc6NsA0ehN0M3lquZY2gDTenU7z+DPDKrqjT9qzMAa9dTlML0uavjT2WHaYx/Wsq4jWMANcvfF6RKQ+VXXt1onRMjeiOYoEKvc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR13MB4958 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch series add the support of Rx/Tx function using the AVX2 instruction. --- v3: * Fix the 'meson.build' file to solve the compile problem. v2: * Rebase to the latest main branch. --- Long Wu (4): net/nfp: export more interfaces of NFDk net/nfp: support AVX2 Tx function net/nfp: support AVX2 Rx function net/nfp: vector Rx function supports parsing ptype drivers/net/nfp/meson.build | 20 + drivers/net/nfp/nfdk/nfp_nfdk.h | 46 +++ drivers/net/nfp/nfdk/nfp_nfdk_dp.c | 55 +-- drivers/net/nfp/nfdk/nfp_nfdk_vec.h | 36 ++ drivers/net/nfp/nfdk/nfp_nfdk_vec_avx2_dp.c | 432 ++++++++++++++++++++ drivers/net/nfp/nfdk/nfp_nfdk_vec_stub.c | 14 + drivers/net/nfp/nfp_ethdev.c | 5 +- drivers/net/nfp/nfp_ethdev_vf.c | 5 +- drivers/net/nfp/nfp_net_common.c | 2 +- drivers/net/nfp/nfp_net_meta.c | 1 + drivers/net/nfp/nfp_rxtx.c | 12 +- drivers/net/nfp/nfp_rxtx.h | 9 +- drivers/net/nfp/nfp_rxtx_vec.h | 17 + drivers/net/nfp/nfp_rxtx_vec_avx2.c | 275 +++++++++++++ drivers/net/nfp/nfp_rxtx_vec_stub.c | 25 ++ 15 files changed, 905 insertions(+), 49 deletions(-) create mode 100644 drivers/net/nfp/nfdk/nfp_nfdk_vec.h create mode 100644 drivers/net/nfp/nfdk/nfp_nfdk_vec_avx2_dp.c create mode 100644 drivers/net/nfp/nfdk/nfp_nfdk_vec_stub.c create mode 100644 drivers/net/nfp/nfp_rxtx_vec.h create mode 100644 drivers/net/nfp/nfp_rxtx_vec_avx2.c create mode 100644 drivers/net/nfp/nfp_rxtx_vec_stub.c -- 2.39.1