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 929C5455DF; Tue, 9 Jul 2024 10:24:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 80F3C40E38; Tue, 9 Jul 2024 10:24:26 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2123.outbound.protection.outlook.com [40.107.220.123]) by mails.dpdk.org (Postfix) with ESMTP id DB47C40E0F for ; Tue, 9 Jul 2024 10:24:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=a/pgI3f8Kqv4OK0beM4Ic5M8mSifmunblaiPrMlcjN4zV3O67tOA7taeInuOxtVxhjEdfmEUfM5Ay7csc/yA7jJwpQersU7t1/bCH981tu0zT3cg7qpfBodpWkl+FQCYhmVlKYAljqyMwms70w0/eBxXj/BWPZiDax8P8cApqr+YMqLTioLZ7Ab/+2XwmzlfyUyzPmIATSc/N1YVe5TWsiAC9/2nbDzMyjDmr+2iXsYZOwqGmJiQt9V3o8Hrj5z7v817Y2O0+nRoP4UthXTqDjZ2YX3K70MAl0XKDUoEScHi0tv7wupY4F4nY2qrBUpmFwgfLsN7/t+/gC+lZpEdBg== 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=ACfkCebID8mVoukUpmWCp4mCjFrFSEc8C8/q40/ZC98=; b=C38+5qJa8E4EimNbp/zWL6CPPwSwO4JawTBtBhOKavPfGBz07FOrK7qFlnr75DmsK90IYM4j+mjjr3DDlDVA6P2YPUewgg4gqGAKtB+M6iVaBi21JyEMd2Zps4oUr4QRtXp8DiwJmiTZuEirX0WpjBpGjslLeBFyttyDrpVoMQrd8fD6921f167LMoxanxPUpQA3hNGzGWym7uHIgo7h5ktmGV4SuLxmvEAeM91CqjTwapYoDROtNM0cEKR2qATLJ1dC+v5FXd0GF1or0DOWvhy9ZSQun6rNxtekb26dSUVj4w/XuLT35rvE8N+kPZ3Eb2ipZK5H81+CAPQZ3RPZeQ== 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=ACfkCebID8mVoukUpmWCp4mCjFrFSEc8C8/q40/ZC98=; b=DBzx6Q2fon/p4eyNF/gChcD4poj4AU4eL8gffLOedajwUMtgg5ubDLgalBQNBkj8EYqqYqxW7OFHWKS6/3XwDa7ziZIqD+WDP8FDG2+raeTmdHgVo1gFfbbDOr8VnV+YR1lA7o493O11m8Stw1BgNqJ1cOvJXwttX4/gTd/O1UQ= 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 DM6PR13MB3690.namprd13.prod.outlook.com (2603:10b6:5:24e::14) 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 08:24:21 +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 08:24:21 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v4 0/5] support AVX2 instruction Rx/Tx function Date: Tue, 9 Jul 2024 16:24:00 +0800 Message-Id: <20240709082405.248641-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240709072921.246520-1-chaoyong.he@corigine.com> References: <20240709072921.246520-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR05CA0064.namprd05.prod.outlook.com (2603:10b6:a03:74::41) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|DM6PR13MB3690:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b5c05db-23a7-4be0-d02f-08dc9ff088a1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?7iefwro9QiC2ANvwhY1MZxm/K2iCqfQQGKkAaKEWAk2n9d4eOD1cRwXmJJne?= =?us-ascii?Q?Sz+2amdyKuV7tPnBNJuwOA7q4LkPWmQXNBuuf/9H/VMTHMydh2JpmepXEpdN?= =?us-ascii?Q?J846t6L4P2u/9kGT+Ja9xb0taWqz99CNxRgeydZl2vxlk0XIFNy/mfpNCkQs?= =?us-ascii?Q?JIBYlByy6UkI8Dtjq+VzUzzfUNVrjWfh2mZ/+MbK1t2QFS6MXz5qjDsv8k4/?= =?us-ascii?Q?obsb4OYnSYxwyhs1Vedfduxl40z5Tva2Mlr/Fc/xRnIb4Zv9BcXU4ozbjB88?= =?us-ascii?Q?2/TcBJYUbO/AfrbYJzapXDUJzYe7a4ObBNdLeo/r7GHyop1jUTFyEqHcHw1L?= =?us-ascii?Q?P6PjIrSoDqGEbYKfQCpvrRxo3dDWugpTfmMc4szl3Y1T8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P1gcSiqEcqhHsgO7/OFIDX7WuYr3sCuyrFVFp4cNufQr?= =?us-ascii?Q?3sMirU0SFpDqqzyRfxYmDMjQUlw0LIMh3kth70Y2R5FBVcLBUB2T4F8bFVAD?= =?us-ascii?Q?pP2Z2k/Ln2sAhUnjOQTLQbMwxR7ojICtlJt+6oIZCvt0hQUySg=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)(376014)(52116014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?WFmsObp3h0ICyTRJOkahO1joLJHQAXrFtO/9eG9PUzWrXuW+5/bdLBRIV2WH?= =?us-ascii?Q?iBSjh8pO70j/J1GHtb9u4VYs97+I6i58m1tzqAuW+MfFuvocgB5FL46ea8Tk?= =?us-ascii?Q?VzDc8XE0YXaDOnGLTw0X9pPix29H8w2rFvMLb/JMItUWQlNphoDUsC3o1rlA?= =?us-ascii?Q?+WJ5CfIyxvSffrq1MCX9H4/C/63Lebw8lqQV4lwwxnPvoLBpMZcqFO3VlxZW?= =?us-ascii?Q?XlRhHbIPVydmba/o0Rg/ZdLSaiRbjTBFmpKygf5KrtQTTVyux46Vl07O9/L8?= =?us-ascii?Q?GNIPZs3x7dFVSjujIFQ3qidhZ0VgPNgZJ5ODuG1836gEGGVwDRZyrgfnPKkc?= =?us-ascii?Q?oyCk6t7bFo1lope6whWBGc9lKk97mOZQ+Qe+xfVhHdMXf/U1+Dgc1R7Erefl?= =?us-ascii?Q?tBVaafR3VwZJgfaaztwVaj9vbRu2gPRNrR9jzTtcDXmCJmRhniRI7dBwAd+C?= =?us-ascii?Q?E0sBA9Wi8jllpVaIihc6SmCiSkycmf7+zD91gD+QY1KKKC+mHL+MtbBN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ZXyjGEshe0goEcDkBfICC/MTYFkf2MvL?= =?us-ascii?Q?FE4FZOIkIPbaWJdqP2gpbLIx5jYI6P2WvoFVFOATqddJ0sz6zqBUMkp+I0Mr?= =?us-ascii?Q?3BGSN2SNFf4F7XdWR68peoV+1X8mfDcx6uTo+bC6xT3WkHVPphKPqm96bQGC?= =?us-ascii?Q?FcPmzmtufCT3Y/4yNXs2yocgDWu0rb1vLuCPCIf2bFA+uQg4ZhQ8EfgklIEE?= =?us-ascii?Q?8g=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7b5c05db-23a7-4be0-d02f-08dc9ff088a1 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2024 08:24:21.6531 (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: FDc+zP0Eko3Ja4el9/GXOdTXVxxCDXwtmsQfFdMzcNKraWF6jkqvCPC8+dQ6d21oKyN8ZCnaw3xx2nM0+1ZS2yYyMQsfkupp2Sabw8EljJ8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR13MB3690 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. --- v4: * Add commit to solve the compile problem on 32-bit OS. v3: * Fix the 'meson.build' file to solve the compile problem. v2: * Rebase to the latest main branch. --- Long Wu (5): net/nfp: fix compile fail on 32-bit OS 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 | 21 + 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, 906 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