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 1E1C6455C3; Mon, 8 Jul 2024 07:59:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0AD1D40A75; Mon, 8 Jul 2024 07:59:17 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2132.outbound.protection.outlook.com [40.107.244.132]) by mails.dpdk.org (Postfix) with ESMTP id 192C440A72 for ; Mon, 8 Jul 2024 07:59:16 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wi0ZVazy5IhOEvMlXAIj0cEujxKkQvlEKq5q8dfMPLQKnZsWOX1k2CovxwGABsDrbalhDeuqIbhSwz2FP0DTyShW8uDA2QUH4r33SKpshuSbG0/UVqcSRqDvZd1hm/K8C4/5g51z6ss4QyjA6l++EOQsNWobVctU+iP9M/oaXIP0bfONSoOQxIQ7cRs3mB4uxI33uUDza6LUdeFL7ZPQTwlhIVlaX7Y2EHLqkhch2z+gmL6pWkpnKOsSibdH89jKus3Zr8EH9Yg8MFUpJxdCc9+xYnDtlbcrQ///9lxEOXqCj52X0IQU1duDdaMArlLXP9dr33HT9xdx/k5IS1CQHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=606wlkrZEVtECS/MVQHQ68fv4hwCPrrfjknMtR6hLjU=; b=GfhkhsjD/o+igaR/YEiHnSVypkBdyUp52OQVua/DvwVAboUrBhz3Lj/AUa4FFu7FnZSMqrdpnrY3qmuBE3GeqH5I6krgKw5fI3gVU6QcPtEKq9SoQsySGyREGffqiEuy81aFK06E4uVmNsfsjM9JiX1vgjOg04y2X2T6CKLlZauyj86DoPKnWtn+vRvg3fGqD7v9fW9NggZ+jZ92lwE5cqozBP5H1bPvkp0Kfyz450wVoig75KoFz1tieJ67v/PX0GTXkrL20/Os5kpY6y96iq0qL5SisF1gK9eAoqZyFPpWXlW6RL1G7UdljlJRE4JthMhgb/9NySURH72uqyHIug== 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=606wlkrZEVtECS/MVQHQ68fv4hwCPrrfjknMtR6hLjU=; b=hbP0mSVh9722jyR3fuhkZktLv90eOslV7GHTTnoryORCaxKlIlXImN9wcH9Bq4zqJvzAfEUmbiTRk4/rBhthzjWZKCB5AcSEZAPtBJNcy/zJyZSMzOdxfV2bDUtE6/HHSyJDINfty9ShPbP3Dq4vOPHvTyftCb9LZgmCYcDL1Cc= 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 SJ0PR13MB5499.namprd13.prod.outlook.com (2603:10b6:a03:425::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Mon, 8 Jul 2024 05:59:14 +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; Mon, 8 Jul 2024 05:59:13 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v2 0/4] support AVX2 instruction Rx/Tx function Date: Mon, 8 Jul 2024 13:58:50 +0800 Message-Id: <20240708055854.107739-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240619025914.3216054-1-chaoyong.he@corigine.com> References: <20240619025914.3216054-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR05CA0168.namprd05.prod.outlook.com (2603:10b6:a03:339::23) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SJ0PR13MB5499:EE_ X-MS-Office365-Filtering-Correlation-Id: 210da901-d21e-4d9c-e858-08dc9f1317e7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?jJSlZiUT1J82L95hVba7XWs1nz4KLzXfHQPcsZcAboKzSqYkS5XnvpB36Tjw?= =?us-ascii?Q?tdAIsL35ieUk/dsHxuCgrgsFu73yohamj2A/3fJKsu8s8r485xsj2FFAjakX?= =?us-ascii?Q?E/nd8mcqIeff1uT3/rsgDo+f30dL25lbaYolieKbqWDWvcgk9HJTJHGRUdSQ?= =?us-ascii?Q?PRe8TNd3v0/cph9D2yLzBrZFYdhnEXKs5Vwf33TyPgSPvJSuZzXopn6gLp0N?= =?us-ascii?Q?r44KOgUEyQZHjhWWpq0ZuPGeMhx73vXsljc6A6W1p3h7JE4F/v7M61bqFlOu?= =?us-ascii?Q?KZtOe63bRJ4uiQ6zMjUFbx0IapRfzJj00kVIw3LyQYqsY6N+4E4b+5iB0rCd?= =?us-ascii?Q?GVvcSKTdbILhuUSVuRYVbnFDrQ9iRywcOxPtgAeb9CZkflppwtujIkdE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SIiAONbfmkPwIZwp+cvTvPSpXWdB1Mrcoz0WU1Dm/A+E?= =?us-ascii?Q?IS8QK2b36LeK6tRFlnseFpA0JEWrSn0AdQ1WBTvqspwIo/Vfv/W7pCVUCkTu?= =?us-ascii?Q?C6wLgu1U7ahO8fL5iBxjYPVwbYs2BOtxZ445F0w1W9iGaXVjtg=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)(366016)(52116014)(376014)(1800799024)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?0blMYCMgO0Cfc6oX0Y3TrbLZu5eA0BEY1piQvvfjGOdGaaq6G3Mcivk0fUva?= =?us-ascii?Q?61BmouHXRWIeDXNOMWV5BJZmpdgLkwjIAvCUpMiJ1e4Cs0UfAeFyCVxAR2Xl?= =?us-ascii?Q?DYY1LLy0qWbHs788wLaBww+kROuzmFsbrz3na4N6lL6xdVmofUoca7SGXMbh?= =?us-ascii?Q?MJ+7QITjDIP4QFQ+K5oLbBy4BbUOzAt+GHmZzt6JcUqd/NTVPMZlPZwqXxUA?= =?us-ascii?Q?qHycn8QhdEkMg4cY8Vi+gqcKlCBJzb/W8yz7h0GGPvM7j0qd20Yze+Qap2Y3?= =?us-ascii?Q?H3wQO431nmH2sXYs7F6RmnvVxX5lwD4B5eiWtF44H24GMLHvJWy2iVxUF01u?= =?us-ascii?Q?xyN41LWZNqoyxNnmCs60KZcH31Ro02U9SPpJg++HJ7gB0PA1h+Nga23XZETK?= =?us-ascii?Q?WFo8gPVPcc3/NQIW3kAIHSdwMwLwufpEHbJPsPserwDVr0eHIOkXZYrI7jk0?= =?us-ascii?Q?YnpEXSSjFN9sPAMEruCZVsyzZOTmN+yFGUDsV3RQeiOw1CPHHi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8VIrDWLEmK8Ir3D5cXNDKv9rop4QEdmS3lAM4FMs9gSa7EkElFzt?= =?us-ascii?Q?ZPpWNccKNQthSfXutKtbqzVdpGbhzIr5j08CiUOA95y9GLdqAFPWqcHr8Bjp?= =?us-ascii?Q?iHo35xjAhJRqMFSj0fK08ShmqmDa2RtAk3KKETFwp8WmQ5UvXaA749C1GDcM?= =?us-ascii?Q?9DiWAgXGHCEGdtOOYhpLaj5p0wV3VtOUnRN8IyMq8aoyqoDRNebX609zYOsB?= =?us-ascii?Q?YA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 210da901-d21e-4d9c-e858-08dc9f1317e7 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2024 05:59:13.7480 (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: v2c1nF9T2/fabZRmfTa0+ne2gWezRpFnWzwrFGxTtuAi+5v0LjzQytBuh63juEk62Du7o9UO8X3jo3kppAZsBNA2kYsWpR4dszyf8q6JOFY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR13MB5499 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. --- 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 | 15 + 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, 900 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