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 5961C454A2; Wed, 19 Jun 2024 05:00:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E0D23427BB; Wed, 19 Jun 2024 04:59:42 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2120.outbound.protection.outlook.com [40.107.236.120]) by mails.dpdk.org (Postfix) with ESMTP id ADCF4427C4 for ; Wed, 19 Jun 2024 04:59:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CCjY+C5501HSOaNHGt62QLK2cQq0GPK3Sh7Acurt8vqV0I4U8dlvycl5bIqLosBplda5z17ZY7rdiYNYrx6ek3obk8c/HdOSsGNScaWv80kcJLnY78VDRVvrzCcPNBeEnZViSCSbJbTFH+hU6dNrWfCHkgdQCMZlRn6Z3eyCKotYuuBTdTsRp6jMuncBYM1MwJHZhFWXvo3A8ITB4q+dV89R4IAri0WxDRyWOOzaHmmSDYYsElqW2cwD4ozFhpOaN3zE2X9BcMy+7Chg4VtqbvLYZ8hQWuopsONlWqH5Y9sE8cBjr7yuFdVn6HtO2xSyJ8TScH79mFUcz0GjCfcd1Q== 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=Wsga184BiLLxL4U44LhlTSFrO7gQr841T4FlLel+LM8=; b=d/EJoDw3DZtmetaau8zFVcqondyyRCBLp9jc66JpiQm6wYbVK9wVt4l6JWROjupHGogK7OhMG6pLEVo0OP3QKj3tGo9SZEecwQ4dIJ/uNnslKd795dH4C2GUGVGiNrcf6VjmhwR/kPhejRpkj/kfg8NvsqHMNNKZfa7AIYG7nLNJKWFQ4PEe6EuG7jWtgUdmjv13BULMla5CN+x0XPQluEoqmZgfGCwU1S9eAS0qBVtaG5XnqbqYbhewUp3zEG6Mv87EpaJLcammMm6W0tROpssl6fuEzNFgTJSnLHfMviW9X0kmBt+zOx/osRhSlruRw492L0K5EfzpQQqqkQ8jXw== 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=Wsga184BiLLxL4U44LhlTSFrO7gQr841T4FlLel+LM8=; b=m7HepuyvkCB5idh1KP/IDdCKI1A4eSl6YN2flZHoV32oIA9dR96Q5vkW5rUQNCj+esRPqwm5bJHSZ6RalFRSKtzsbupKWhUv/DCPppafk4p+Qm5jnj4C0bKf+Q0sAoKxBsI/bqwMQSeG4k1pqe5R2X0pqEEOpaa6GdBVynVn5yg= 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 SN4PR13MB5775.namprd13.prod.outlook.com (2603:10b6:806:217::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Wed, 19 Jun 2024 02:59:38 +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.7677.030; Wed, 19 Jun 2024 02:59:38 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Long Wu , Chaoyong He Subject: [PATCH 4/4] net/nfp: vector Rx function supports parsing ptype Date: Wed, 19 Jun 2024 10:59:14 +0800 Message-Id: <20240619025914.3216054-5-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: SJ0PR13CA0189.namprd13.prod.outlook.com (2603:10b6:a03:2c3::14) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SN4PR13MB5775:EE_ X-MS-Office365-Filtering-Correlation-Id: eaee4837-5aa2-40eb-2d8f-08dc900bdb6e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|376011|52116011|366013|1800799021|38350700011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?9IoFHtcAWesNmt1v/wOXNmxQ90s98gIsNKwneUuiwgLjXqTIqM9s09iNNpV8?= =?us-ascii?Q?FHNj9Ke5bVTzZJBoJeOdeFAOJ5ScYzJEWGmVPs+85AoOG/8V1Suj43yf7yJL?= =?us-ascii?Q?geICbadc6WCZZwq6TL+eGlefEOfvwBaRYAOMVN6lqrIaSx+uz+sEByzOeJFT?= =?us-ascii?Q?Fp99V6LfvZP63S5ILo5U0aM5b/ak1nP/vKol8hpjnFTDYu0VMPJt5nnBYgpW?= =?us-ascii?Q?+IBqBQi2yJMn55n7fcMKAbeEGgx3uODFPyqISbuykaaCkq0X1JKPBiFon+sE?= =?us-ascii?Q?csabq6W51Sg4vY4B8E4RXiVD320vB7IaZaWhS6eazcfQAswC9OADzEJvj0Ny?= =?us-ascii?Q?K/ZooT1wzoxpIMOebaHzMiDgoz0sj0qVG2mBaKqePpKOkB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63LecyvvnrRhrGs2dwWKFkGRs4lD9d1IaUaevAsDJreFF2?= =?us-ascii?Q?2yPGmnQ+oDdgh9OHFsNfF9cNnFxzmllW+ort2YS5LmpyBmOIP2NQq5tkIUn5?= =?us-ascii?Q?TzScreU=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:(13230037)(376011)(52116011)(366013)(1800799021)(38350700011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?zh2T1wYmDoAKLYtu6SS8llPE/j5Xhc20vaYXwm4pGUtQVDGSAFzvQMWwAGsE?= =?us-ascii?Q?iPUbnNBeviW6sqVAIzVfXsWvC332hB+g2XY7varoprtDHTWzY3IyJ0TqWdfQ?= =?us-ascii?Q?mHZXBsEB0Vy3sAQDF6VUTDC6FYzLVfYyIl43dnf/YFG0lNqAufW1sDAYPUaZ?= =?us-ascii?Q?kx0cqfUbZd8nYRn7ublguGRDJaHw+SYfudyBcwSuZTbvOxnYB1eKeeZC1+Bq?= =?us-ascii?Q?NxYOhUmfkI7kWZa2K2Wg8kKvofHfgIIHoMLP+Ho07WWoxJdy3kqEAQG2TrCj?= =?us-ascii?Q?3HCfRsPyU9lGIC0yWq1uCtqQRUIXnWB2sAlwa4QP5n6F+ounmEtnwZZIHzcx?= =?us-ascii?Q?jYSHKGAKTFV04qGhXDCSYE26RV5SlbwKRFZYYOSMmXq+FzbLz3pnuaHWYBAP?= =?us-ascii?Q?dccD/kslPvbixf4U64f3gVg06+dM6SLO2tPVgVNL4x6qCwBzmFl8MbrMIpAE?= =?us-ascii?Q?pPWvXXFEqO63pUIoMTOz91US1Xt5IbVUSO6MlQdj15TVXq43XLiQQ+YC/xd1?= =?us-ascii?Q?PvOTzo3NTrinM8xUD2A3a41GVfw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wnoAbOcRGo4Rez3XF7L0SETWQY44ulX7guzw+DRqa0NHtIpHQryNVSQ?= =?us-ascii?Q?iJxM1xZ89p84LEeQR5F8f8RTwZdeB7+uHAGmX4bwxVu53dVWmHsbkkTLGRE5?= =?us-ascii?Q?FrU7wgA4GKct78YX+5nX8qq+CKgzi5bOcDnlkhC2qsAQ/GDj9I6T/D0/QooJ?= =?us-ascii?Q?jg=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: eaee4837-5aa2-40eb-2d8f-08dc900bdb6e X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2024 02:59:38.2887 (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: xWj3iRZjoELpiDG2PZgVUhIGs+tb6opiHw2S5WIuWr0ca4JuYcbF5e1QxHHyryc5/SS+8I6itD2pECuUVwYksat0GqRS6hAOgmGEN4QjHvc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR13MB5775 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 From: Long Wu Vector AVX2 Rx function supports parsing packet type and set it to mbuf. Signed-off-by: Long Wu Reviewed-by: Chaoyong He --- drivers/net/nfp/nfp_net_common.c | 2 +- drivers/net/nfp/nfp_rxtx.c | 2 +- drivers/net/nfp/nfp_rxtx.h | 3 +++ drivers/net/nfp/nfp_rxtx_vec_avx2.c | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/net/nfp/nfp_net_common.c b/drivers/net/nfp/nfp_net_common.c index 260920ecff..107306a4e3 100644 --- a/drivers/net/nfp/nfp_net_common.c +++ b/drivers/net/nfp/nfp_net_common.c @@ -1409,7 +1409,7 @@ nfp_net_supported_ptypes_get(struct rte_eth_dev *dev, size_t *no_of_elements) RTE_PTYPE_INNER_L4_SCTP, }; - if (dev->rx_pkt_burst != nfp_net_recv_pkts) + if (dev->rx_pkt_burst == NULL) return NULL; net_hw = dev->data->dev_private; diff --git a/drivers/net/nfp/nfp_rxtx.c b/drivers/net/nfp/nfp_rxtx.c index 4fc3374987..da41a0e663 100644 --- a/drivers/net/nfp/nfp_rxtx.c +++ b/drivers/net/nfp/nfp_rxtx.c @@ -350,7 +350,7 @@ nfp_net_set_ptype(const struct nfp_ptype_parsed *nfp_ptype, * @param mb * Mbuf to set the packet type. */ -static void +void nfp_net_parse_ptype(struct nfp_net_rxq *rxq, struct nfp_net_rx_desc *rxds, struct rte_mbuf *mb) diff --git a/drivers/net/nfp/nfp_rxtx.h b/drivers/net/nfp/nfp_rxtx.h index fff8371991..c717d97003 100644 --- a/drivers/net/nfp/nfp_rxtx.h +++ b/drivers/net/nfp/nfp_rxtx.h @@ -245,5 +245,8 @@ void nfp_net_tx_queue_info_get(struct rte_eth_dev *dev, uint16_t queue_id, struct rte_eth_txq_info *qinfo); void nfp_net_recv_pkts_set(struct rte_eth_dev *eth_dev); +void nfp_net_parse_ptype(struct nfp_net_rxq *rxq, + struct nfp_net_rx_desc *rxds, + struct rte_mbuf *mb); #endif /* __NFP_RXTX_H__ */ diff --git a/drivers/net/nfp/nfp_rxtx_vec_avx2.c b/drivers/net/nfp/nfp_rxtx_vec_avx2.c index 7c18213624..508ec7faa5 100644 --- a/drivers/net/nfp/nfp_rxtx_vec_avx2.c +++ b/drivers/net/nfp/nfp_rxtx_vec_avx2.c @@ -111,6 +111,8 @@ nfp_vec_avx2_recv_set_rxpkt1(struct nfp_net_rxq *rxq, nfp_net_meta_parse(rxds, rxq, hw, rx_pkt, &meta); + nfp_net_parse_ptype(rxq, rxds, rx_pkt); + /* Checking the checksum flag */ nfp_net_rx_cksum(rxq, rxds, rx_pkt); } -- 2.39.1