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 066BD43D11 for ; Thu, 21 Mar 2024 07:57:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F2040427D9; Thu, 21 Mar 2024 07:57:04 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2126.outbound.protection.outlook.com [40.107.244.126]) by mails.dpdk.org (Postfix) with ESMTP id 5EA3E40261; Thu, 21 Mar 2024 07:57:02 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MaO5kvHAPi1Mtf49hdKZ6a3KO4DPGMXZTR9UicMSWfa6zxIAI8fhik3/XnNrug37IkN5lH4KizCieRATArh8ROlCDdsKqwUZx/OkXLfd/BogYflyftLdSck7foEOfaYpp6XP1dLfu5gKnkVW7ZBmB6PR7do+upaIWi9e5hhyeGc69AvFxcWnqR5yl2Tq95AETZQkLPEJRuxIpEDtXCiTB+sCCkQRySXYJqCVGpG2g5hN3kAtssbBLS2DohSPww32/CJUKPM/SK/SFBBuygwfWb05lMmiOsFkNcb/2iT8RjiIXYdt6ID5r1fhG22VOZBSJN1xJQl4+/yp+CeBUmmZ5w== 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=TvxJkhO//LUQxVMFZ2tAyDcX1jGDghZaSpLt8LEBM8o=; b=Omf1+sVBPezdNH9eok+3OWjR5chlMgFGI4ovef/J+LWa1+Lguq1Biqc4QTgaBT/OmNEz0NM6pe0grWzfZYT8WxKjvi0bckjao3YqJqECVOwQLa/spXzxH7I+plB/nIXUx+3KfVr76wXd8F4+f8PDWRquwdV0EQU1YnwBLNS3ARMh3cpsJv8aO4X4v/n9MxFOLtUXMbhQSCt9xLrLu/k5X3ENgR+Cvvd57BukSOYIXfpO4fN/fGpKVQxAp4i0CgEqfVybdfsscL9MdiANzAVCpgug40BBB2XXwpoKrLhAtFiCIU+W1Fns/5ZMfXsKDtvZV2f0usETUNqMntj0xWGXbA== 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=TvxJkhO//LUQxVMFZ2tAyDcX1jGDghZaSpLt8LEBM8o=; b=MEczVSmgd37+1mzvHb23yDZIYeNuG2xB3QDcutKAoTAk3GmxD11J5fhbhFhlN8rnmPAwdCKBPgV3WBiX2MPZOZ/HomDMMalPIAhJbKXO82PFrHZ/jIG9yHMmDOyC1nYPbVK6CP1LL+4KC9pB3HoUD5iOq9qWzhSm/gwpH6ZPyvk= Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by BN0PR13MB5215.namprd13.prod.outlook.com (2603:10b6:408:157::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.34; Thu, 21 Mar 2024 06:56:59 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::ec12:7411:559a:850e]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::ec12:7411:559a:850e%5]) with mapi id 15.20.7386.025; Thu, 21 Mar 2024 06:56:58 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Long Wu , stable@dpdk.org, Chaoyong He , Peng Zhang Subject: [PATCH] net/nfp: fix receive packets failed Date: Thu, 21 Mar 2024 14:56:39 +0800 Message-Id: <20240321065639.301075-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0116.namprd13.prod.outlook.com (2603:10b6:a03:2c5::31) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|BN0PR13MB5215:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YHS9v0Ym1QacRMMOviD1YFyvs4ifS0f+jttT6af4Fzr4auz+nca75QY0lXKS1EdiIY4OZFcL8fNJjSgYw3vGlArSRoTn142z6n/uwTIKnV3blsrLOCyfcQeMX6K1jY+KoGd1F6pz6/FWVEJGkh7NhZRT0DKg05uzyr+2ETDEvXZTCew1POZ6EtVwLKIS2W9rLNraPhek5ULDVHny+oDjCERXGdfieBerPF1BCXfFC8aPDLzlTQzX/fIIW6C33PdgRO5SXpvqgOzcYgzwHq39mK/gkh0X/rYa7cIoLU6AAgmctZOtj5sMlLBdt9UIOhSo8qtsGHkW06+6oaaYV0TO04Pb6vIoA3z1OAQxdhr414iCNAVDz7HYA3KrtNfTzYGcaPsb8vzRdgBiC0uvArzhK9BYox7Bs/5OWSVPnX12+nv6Sj5xcF+Sh8P/gfeuOscIRUazgsQr6Ot9qwlF9wxBsZnwdDIe/ioHxoWBDvt4rZESsEb3YJAbSPsT5Glk3S1VYzdG2/L7hjUuCMjM2l0+msAyX8snHjlaw9aRE3UGOGjvetG0qpGkhmWEu0Wi5uHZDXnu21y933bq8qKr3pTt+FR438Ut4gKKv0vFgsbGd7WlmdBCzeyc3HBCTJxCHUtBUft/mseRmDuTUHxgvvTfI2c9pduAFnvKEPnqwHlqm7PdKjxm43Qxum+5kGgM1Bbq+XiWTqmstRma5h4yJRJ3znqWPu0j0x9sCQpxRw38L5U= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(1800799015)(52116005)(366007)(376005)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?nltk/jFVcjeldYqvipKC+finTdJUUmjqTU9Kb6xdy8WU8lM74WdKlWXQLfdP?= =?us-ascii?Q?vUj9BZZNyF1jPXk18YLy2tkiS44jxgeydSfS1cbubey6Mp6ml/F37LS4ov4O?= =?us-ascii?Q?asT6Ht9dvhpbsgmrGbsNNRydFNacs7Fvk5EFa2NFZ3sUCdNBT0AwXTcbYQtE?= =?us-ascii?Q?F58cpkvZJFz57ZNdzD+DBc62UZRvrz60U3NgFKGBZOSnQMeIOy8PtTLwms2j?= =?us-ascii?Q?vNewFG5AP39ImefkD/zeCq5G0ExXzgM/7NpwUs0EYbREUOG1I7blfMys89+N?= =?us-ascii?Q?JYlHU8qtvh7U58pTin2iIk4slvmECYuduFsQGfz6+Y8afl1dUyCQHESQONr3?= =?us-ascii?Q?V4VoeTTdQ5HYAGDuXjgY2w1DmNMagokQe6l8fCnT2Iy3dr0/cZgFVIpr9225?= =?us-ascii?Q?r7rFITnVMP9lveROvdEO4WVjSlkG2A7NYLA3VQN0uJ5kporeLdihaYZOeZzM?= =?us-ascii?Q?IhA7JzzZxc+l8iTyZBoeB2KmBEcoDCIfwRFI1yHwzR+nuM5RPew0B+E+w1K0?= =?us-ascii?Q?KdkfQhp+4kL6nPHgVKFJTNalHlll+AW8fejQ53whuNAafL/HNNbV/aPAwRuX?= =?us-ascii?Q?1e2/pZo4lWau/qpy4f0IGkVpGiC0RcaWoTHgpIcQKPntvG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gPiE1d26/PnHTi2qJayyzEwo3HRH/G?= =?us-ascii?Q?n2kixOhQgTXI8+dX9wtz/b1b4cNnO8xXvCoEixgBw8x4wmsLqpq+O678WXNV?= =?us-ascii?Q?YA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: b126ce27-ef05-41bf-52ed-08dc49741a46 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2024 06:56:58.8475 (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: FtPPK1Sm4AWUkNw2Plwz4vs9dEthLi8gY7YEoMTFKmC1Hy398W+GhyQtb8fk4zsikA4YeSivrUH6cCMWGmCf1mdYLTQPgdKUyuGS61vOjHI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR13MB5215 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Long Wu Meta data parsing should be controlled by meta data flag. So use flag to determine if receive function can use 'port_id' meta data. Fixes: 580ea0b09a7c ("net/nfp: fix Rx descriptor") Cc: stable@dpdk.org Signed-off-by: Long Wu Reviewed-by: Chaoyong He Reviewed-by: Peng Zhang --- drivers/net/nfp/nfp_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/nfp/nfp_rxtx.c b/drivers/net/nfp/nfp_rxtx.c index 65ae19212d..1aee3ecb3f 100644 --- a/drivers/net/nfp/nfp_rxtx.c +++ b/drivers/net/nfp/nfp_rxtx.c @@ -518,7 +518,7 @@ nfp_net_recv_pkts(void *rx_queue, if (unlikely(rxq->rd_p == rxq->rx_count)) /* Wrapping */ rxq->rd_p = 0; - if (meta.port_id == 0) { + if (((meta.flags >> NFP_NET_META_PORTID) & 0x1) == 0) { rx_pkts[avail++] = mb; } else if (nfp_flower_pf_dispatch_pkts(hw, mb, meta.port_id)) { avail_multiplexed++; -- 2.39.1