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 612AB43E73 for ; Mon, 15 Apr 2024 04:40:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 28B7B40293; Mon, 15 Apr 2024 04:40:33 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2102.outbound.protection.outlook.com [40.107.220.102]) by mails.dpdk.org (Postfix) with ESMTP id 0E440400EF for ; Mon, 15 Apr 2024 04:40:31 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YmmqN/f4gVG7UwRobxH5bKyp/zP1u5Wxg3MBKfOge9ixS/vOY9IXfelwl2jCqtAoIoFv7fyjLjsDv0ysCLUaQxKBW517rpFE2a9nsw3yp6q9KsRmzUWhI7imZXrtU43wvsNyiUAPrZsKorjh62YfUTURwRKe4fcJ8Bw7wTfz0uUQeLZEE2fq8Ukuc/N5sOC2eHC8iVxu53YVl7QqecimPav1lgu7XAse0PW2TjDXWvFRLEpphy3MBctstoFaTgVfw8lyqQ2Zlkbjxdwqgp0SI60zwA3hIKAeg2jtU2VF++mXOd33xrOYInK98/zluc/7GU3aLvd85l6yb1f+90oH/Q== 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=gVmUuj75msQiwHBFEF3uwT2AcoeJ5NHtGAtA8Hfg7FQ=; b=W+w9tkBSA/NJjZ6BV4hRZ6rRwU9sE5c6NJo7M3vtzKJ0UzKJa7ZmRcwcdoDvhQKoGwWQD+R5XaiQYN18fv6cuY7Ie6xGoMUcTxetQLKGoj0Mys4/S/qF6AAqITUk1GBU9d4K7vd+XjYFLJyv4lvpSjNpzNFRt097zN/Q5BKejUHNj1Za2cfRDINORwD2kFaVx3zlCegeYdi8AT+lgual8yoSJXVbrUr3co81iXf2iD1JZs0kH3V8sDH+0EmLHRHM77U5hZp+dZo6N84FV0aTUhLpMhlQbodMACJ2PAiWK3UPCt/7Nsb7xZCKZNE9AwEif1qokLzXuXtxoWWEGLlPqw== 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=gVmUuj75msQiwHBFEF3uwT2AcoeJ5NHtGAtA8Hfg7FQ=; b=UXbH3kWbR7dqKuLabxWIUhddGSJAkQEW2e0SytJBhiLY6yZBxKnktt9z1aZ5Rbkv1cKc+cWRAvoYfGIP7JGIuGUIFRSTRuLdROOfNxHp2SilO8jtMXyGAMOdImWy1wS3xD0EnSlOvc9kTHw4bntGaGAfFZc+kP20uiBnCB/jq1s= 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 SA1PR13MB6126.namprd13.prod.outlook.com (2603:10b6:806:335::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.49; Mon, 15 Apr 2024 02:40:28 +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.7409.042; Mon, 15 Apr 2024 02:40:28 +0000 From: Chaoyong He To: stable@dpdk.org Cc: oss-drivers@corigine.com, Long Wu , Chaoyong He , Peng Zhang Subject: [PATCH 23.11] net/nfp: fix port ID meta data use in Rx Date: Mon, 15 Apr 2024 10:40:08 +0800 Message-Id: <20240415024008.1000358-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2P153CA0009.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::18) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SA1PR13MB6126:EE_ X-MS-Office365-Filtering-Correlation-Id: 465a9e71-11e3-4daa-0de0-08dc5cf5691a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?G2Z88E4V/yQC6G2MQ31W0iqQPONPV+Jtz6/G05BU3VL03PPX5Axs2dbtEono?= =?us-ascii?Q?rO9cuk0CTxN9w9+9IOKZ1ISgIDX0jTPNlc6qtkCOPsyA5AHsMV0BMx5UVzjD?= =?us-ascii?Q?BdcOzjENw3IApq4dcMS1KhqgoTy15r2SJcf73jJm8RsDLSYshjRo4tdhMLNI?= =?us-ascii?Q?DmTtrjdg0BLTWn4YaQcGkptlvvaWv8A2Rx/W02YLlAE98vf6CXtQLod1duCp?= =?us-ascii?Q?zIHhWa8blhgykjt+Alh+CrN63CWpBSzL6UYp4Au+c1TQUMLx5yV1S7hUH9+V?= =?us-ascii?Q?q/Bol6+CP+ALOAki2+qu/irHiPkre43KLy9qXrMol0DH7nfTrgrWt3Es/W3R?= =?us-ascii?Q?wsFKSKYFo8fe9r/IzoK3KNdhSIoL5YmziTM/l+20wf1VnXLtMcVOATUtK04/?= =?us-ascii?Q?Nhz73H1YCm73hE60zfa7POTT00pV1gLM5Q/Ts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DwZeWtmelERKVsXmxdTWg59H0UStiZk9+PZYpYVZd+g=3D=3D?= 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)(376005)(52116005)(1800799015)(366007)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?7nBut0Br+p1U5W5tzguGDdx9TkrpKHxGyG9chMwQJP1ssZUN6M4BxGFVZ2Ry?= =?us-ascii?Q?lcBWket4iXNuwFHc1XXbYXH6lgnuar9W3iTHvW3WI84lTVFGkkgKwMN1OTu4?= =?us-ascii?Q?pRrnQm6Eek6qWqMQ0Fhw2l1tBiC6kTfd8jmkX9N5Bkoyrl8fvQX+jM/zHk42?= =?us-ascii?Q?B4izmzm9CkFnpEios7HtGICvC+o4c1dQTvsF8Q/uoUe6yC2DAiFB/KjN+tdD?= =?us-ascii?Q?hVhyElnfvWty8aVZAJhy8sKeJ4A6kUx0EHwdpmKwzP1/aiDjoT8+5OZPAw0J?= =?us-ascii?Q?x4g07fi517aHFZMLP7IAHa+Ok/giRmdy+9ud20U1k6yH7zB6gOuTnxGIhcUA?= =?us-ascii?Q?AqvYyPlWlO8UUiKxq7IHUYsS6i6DztvzODAGH1QTJ0XINNelOuosQhPkPB8y?= =?us-ascii?Q?CPs3jGvgxdwtozQbLefdpQRaEJr/aCfQQOggyky2/0pFiiIEs1yw8CVFow2/?= =?us-ascii?Q?r9+D8UpI2TR5/d2/GgUYx04IM5bI7K1iifxA9czMMUb+JgCrt25clgTgqxmq?= =?us-ascii?Q?TlOurhvKSj8O67+uD9F3xigN7KMEPSvq+07r5WeOv0s6DsxGgfUtnQAPsPBN?= =?us-ascii?Q?rF+i4NXyiPNB+/YjAoLdrZ3z6NvnL8dHgMf6wMvH7YaysaZVtI/B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vX6S9rlkHWT773Yd/j+nYaiX36KeZTRYI5TTHS44/6sfSEUvpTUo?= =?us-ascii?Q?bLxW4hZ+V9CjrcA9cO+NnHuhnZioumYyfFHmQ5UL4hPYH9mI9gTvdzmgQQL/?= =?us-ascii?Q?Iw=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 465a9e71-11e3-4daa-0de0-08dc5cf5691a X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2024 02:40:28.2937 (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: NxvllzAWJkJjTCDuTazJlH/7ZTMBPytiWJkTDnrVz3A+dd5VD2LI6fR8trKeRAydfsRaVn7u5q5bqh4L5NfhqEK/ZREMBAOHZpp8rOCALMA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR13MB6126 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 [ upstream commit ddc84b53f38281ff2c15f7feb7e3a0b556dd92b2 ] 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") 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 8ca651ba55..5033d659d3 100644 --- a/drivers/net/nfp/nfp_rxtx.c +++ b/drivers/net/nfp/nfp_rxtx.c @@ -760,7 +760,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.27.0