Message ID | 20240709082405.248641-1-chaoyong.he@corigine.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> 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 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 <dev@dpdk.org>; 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 <chaoyong.he@corigine.com> To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He <chaoyong.he@corigine.com> 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: 7iefwro9QiC2ANvwhY1MZxm/K2iCqfQQGKkAaKEWAk2n9d4eOD1cRwXmJJneSz+2amdyKuV7tPnBNJuwOA7q4LkPWmQXNBuuf/9H/VMTHMydh2JpmepXEpdNJ846t6L4P2u/9kGT+Ja9xb0taWqz99CNxRgeydZl2vxlk0XIFNy/mfpNCkQsJIBYlByy6UkI8Dtjq+VzUzzfUNVrjWfh2mZ/+MbK1t2QFS6MXz5qjDsv8k4/obsb4OYnSYxwyhs1Vedfduxl40z5Tva2Mlr/Fc/xRnIb4Zv9BcXU4ozbjB882/TcBJYUbO/AfrbYJzapXDUJzYe7a4ObBNdLeo/r7GHyop1jUTFyEqHcHw1LP6PjIrSoDq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P: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: WFmsObp3h0ICyTRJOkahO1joLJHQAXrFtO/9eG9PUzWrXuW+5/bdLBRIV2WHiBSjh8pO70j/J1GHtb9u4VYs97+I6i58m1tzqAuW+MfFuvocgB5FL46ea8TkVzDc8XE0YXaDOnGLTw0X9pPix29H8w2rFvMLb/JMItUWQlNphoDUsC3o1rlA+WJ5CfIyxvSffrq1MCX9H4/C/63Lebw8lqQV4lwwxnPvoLBpMZcqFO3VlxZWXlRhHbIPVydmba/o0Rg/ZdLSaiRbjTBFmpKygf5KrtQTTVyux46Vl07O9/L8GNIPZs3x7dFVSjujIFQ3qidhZ0VgPNgZJ5ODuG1836gEGGVwDRZyrgfnPKkcoyCk6t7bFo1lope6whWBGc9lKk97mOZQ+Qe+xfVhHdMXf/U1+Dgc1R7ErefltBVaafR3VwZJgfaaztwVaj9vbRu2gPRNrR9jzTtcDXmCJmRhniRI7dBwAd+CE0sBA9Wi8jllpVaIihc6SmCiSkycmf7+zD91gD+QY1KKKC+mHL+MtbBN42nTcYVJhruUzPCi51n5atNUSomLmm17mi8IKHpweHF0ebYZapbkVsjfYi+uQPpe1kJNUFDpRWjBZQfQwYKM26oMPO9GuYkkfNauGe6LguGAiDfCqXYD9Q8BMILVICbmoAOeDOyhuVzBktseyLWA235CE6lNpZbbJ1cWgWC+8rNL9QR//bI4JSA9vEOzkr38bFrBPdmaGMVao8ESRrU1yclGFgsPrTsqGsjxQ3IDFuWd3zrhUtwTIjbhlCL5j3gzHVWfD5p+BA7o+H4AYHzAMHwSIyGL/KtXqg5hzD5CD+z3yseKJZGGO/0ImWYn2WqimiRUKdSQ6OhqPHkm2cKZ/89gBgEJB0mwdQlzJ/ke87KlomPWYogd83VyjYbEA+6M3soF7FaA+1rCzYp+5JqHlzoOpFX0VOQCzQ4Qr9PU1fetihWV/WZNwfsE0E9R2kHj9sdkrhQz27fAX14y9RjY9WyJDFLDQXmsG7pSqrRRH1n5yJlEgLGQdME8e08iLp1gWYUEzzr+yRs4c303fQRvNICmFdX2c/bqsIkadc2Zwq/zVmyNBC8+J7/VWp3m+cYU5BtCZWUbXUjC9PBzz2CWMejDBm6y5bZPRUuQr4XSsO1dSUrzMslK4EkfmLLQFTuTowO2/rS8m3Yb74wAtYMRsTwUoSukvCUkbb7uOjPkXi2R+AH8favFC2MuUUJMRbW6LbHtehSy5pDxiQiMYuT7u9/72QAwN2TT7SutC7uG4ef3eS4Fi50GQthlRTIigbgsGKCSQm37NClIm36odE5TR6unkBEwFjWYO9KT0QO6RKjIMbxwwdRtcBDQN72UZmiU9X2YzO9ft3vSTgx3F8G9j8yE/JxuhlJaY1mALtl6ZXyjGEshe0goEcDkBfICC/MTYFkf2MvLFE4FZOIkIPbaWJdqP2gpbLIx5jYI6P2WvoFVFOATqddJ0sz6zqBUMkp+I0Mr3BGSN2SNFf4F7XdWR68peoV+1X8mfDcx6uTo+bC6xT3WkHVPphKPqm96bQGCFcPmzmtufCT3Y/4yNXs2yocgDWu0rb1vLuCPCIf2bFA+uQg4ZhQ8EfgklIEE8g== 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series | support AVX2 instruction Rx/Tx function | |
Message
Chaoyong He
July 9, 2024, 8:24 a.m. UTC
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
Comments
On 7/9/2024 9:24 AM, Chaoyong He wrote: > 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 > Series applied to dpdk-next-net/main, thanks.