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 5154F454B8; Mon, 24 Jun 2024 03:59:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 98AE740E27; Mon, 24 Jun 2024 03:58:18 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2091.outbound.protection.outlook.com [40.107.95.91]) by mails.dpdk.org (Postfix) with ESMTP id 7703540E09; Mon, 24 Jun 2024 03:58:15 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JJgZagtA4wWlr3Up1bbhBKf/jmXCZKwFeV5bdPzsc8abtKNIfoZO+LxGo2tBjo6OujyWORhGUQ0PQQ7e2V01duL1CitqmS5aHiWb2VovGpRMfbotNfYdL7u/xEmdxhMWTP40cEXiev9fXnbyZOPRmxEBWe8t7Ql6RZhYhB7im55+7R2yBKSr9Ez8t6JTG3CPnSh+Aj7TawCWtcgSA2sbFZHCxMZYXD2V+K2RSWJ4ZvMO0LvuvHnCsxrvgBZ704miuQHfSar1289bR+SaSM1ADzsUK5Kfv+gM/7OS0sPuTVLwBehf69WtMfFF434gkIQL3tazQPhRMxSxN3nAj5ivUg== 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=AgMPr9vCsWubtK3WNjiedZdmrbydr6ZA+/kc5LEF2Ok=; b=cd2JlcRWvD7ugXHMcBnLlF2AoU5Cp5+WIgDPnx2Q7erVSalz6hfG5OD/p+Mriyw+kLUPNnjKnOY/q4y2ovNxlZS7Q3UJw4Pc+y6LzUtnu8brRgTpCDxJVHw8z3GnZM7p/YKDwWjS/qWwScvhxDQzBeypdLidL59ei7GkGZOqOnS+QKa4acMq69KQyTE0FoDhqXp3fLh3uKbon/I/Pm+gYqJUK/uHzwRiOxf2r/b931564mVD8xvsNlaa3cNrEzpdnd8RrQm2mY642RRAC1a9V4DSllCvBWHMUO5Jk+HIN+8jHZi+f1SMhM682iKJx5m41+X16cmxUaKGa55+1enmbQ== 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=AgMPr9vCsWubtK3WNjiedZdmrbydr6ZA+/kc5LEF2Ok=; b=ZF7p1sFmAFXssYzQgHKYbRjFQYLXDu8pTLdivnP4EPy8NxEFn9nkJiFD/d2FyIajXONUEErt0RUrzX7gAeoIE0tfMK65iQItgGV4X4N2cIjOnk6iwAXfyGSxvOUfHvC6jedARtY9avd5ZclzBAU+uVA4mrR8GuWPzxa6C7zt9g8= 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 PH7PR13MB5867.namprd13.prod.outlook.com (2603:10b6:510:159::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Mon, 24 Jun 2024 01:58: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.7698.024; Mon, 24 Jun 2024 01:58:14 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Peng Zhang , chaoyong.he@corigine.com, stable@dpdk.org Subject: [PATCH 15/17] net/nfp: adapts the reverse sequence card Date: Mon, 24 Jun 2024 09:57:21 +0800 Message-Id: <20240624015723.3712898-16-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240624015723.3712898-1-chaoyong.he@corigine.com> References: <20240624015723.3712898-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0070.namprd13.prod.outlook.com (2603:10b6:a03:2c4::15) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|PH7PR13MB5867:EE_ X-MS-Office365-Filtering-Correlation-Id: 0443e9b7-3d26-4f3a-edf8-08dc93f11b95 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|52116011|366013|1800799021|376011|38350700011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?IZN0nlAnp/VmbpX+GDccYxEB5AJg5nh9UW6Gp5el6kFRPRnd3srUChER9jqz?= =?us-ascii?Q?u0fIcsakxBQHY3qOXKPZdqk9zRyi9Lyj8uCXckX771IYhdS4y3F8bQ04o+Js?= =?us-ascii?Q?wH0UTkrXxpHfsvNENOqRRVSuha57n5ZhJqCwWb5UyOzX+JIimClx9dmdWFiS?= =?us-ascii?Q?0flkB2Pf+ekmF4OclhseJTVrK6C+g39sT21I62TSxgi5NCCKwkgNjCJf28ed?= =?us-ascii?Q?6x6G+P3FaWNW5vS4CG8/Pov/DyXb6Gfwb/UVWT6D6WMkC1jgV2sSiNO2AiWO?= =?us-ascii?Q?uVLbEDg7C+W9fhZ8konncnZ//LQIfN9uMvtIezLVh/Smko2myRZ3pRQ5inpN?= =?us-ascii?Q?vzJJM+pFCl0xdIev4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X3UNlHgXWG?= =?us-ascii?Q?u3pfKEZ9JAb2TCwa7BrtCbBKfwvd9sXQJVJlKv2nOZxdv/SYtHqzuBzDdMtW?= =?us-ascii?Q?2pYDQ2WmD07wFp1/4zqEPgRi452p7IlVkchrnWYve0SuPb8m1pNJezWOSMdp?= =?us-ascii?Q?dqsCHaA=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)(52116011)(366013)(1800799021)(376011)(38350700011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Jz3PAeiDOIwEE30RCzadQOyrnLQQqq0kuBbL4UkTXE5qlqlEkibnqsLLntu8?= =?us-ascii?Q?40qZKv3bsTVyxn9mCny4xyPHp7WvwO6RmAvKJuI6jn9nWemDhkvL+54/lPF8?= =?us-ascii?Q?3D7+Iw79rW35MkKQEV7Ez2cfU8HRC3RZh/0JGJpuq1iCFFaIYssotGSL/tnQ?= =?us-ascii?Q?nv499LL0rVfHvEZ8VHXYKALnXhK+JGhLseLVABTCtUqoI265ZOdkfsJ0S8s1?= =?us-ascii?Q?UUwaTah5rtnEn1ynTX7Mx+MonQbfBPQMI9laAbRL15eTH2/5Mxcl/w4wbC1z?= =?us-ascii?Q?TxVaqaNjlFdpGMgdfv6MOLD2d6JCR90gCaASYfCGNBLGRrrteuQ9Dmxflbaq?= =?us-ascii?Q?QWKs9TRGGloXDdwKcAwiHq4iOG6P12dq9c9H4d7bOJjYMzIN4pvrihtFG4kH?= =?us-ascii?Q?NizjoysdZSzMly07wH+qQBdgeLemVqmDyezCbkTqooEwF76Hb7Ee9AA40NBs?= =?us-ascii?Q?XOu8c/YwmwbnDonJgpjveT+jMjGTuKyHiK46Sn/E1FxMdLQ5JCRcirakXa6j?= =?us-ascii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ikxAynlibdS0t1rqoAj?= =?us-ascii?Q?2M29fxweXJvHMpbk6S+GSYlmZz6S3I20/3TRkjivB1ioNqdIo2gxrvALqghE?= =?us-ascii?Q?e88/ewMKlqEj6rIxN5kbzLA8QjDmOGnIcg8yMhY8iblof8liijF0lI51RwSP?= =?us-ascii?Q?rqU1iQEqZGiVjyypOm4CYfsu6eD3TVipEj7MEBJx31XCTZaao5sdMuiJoUfA?= =?us-ascii?Q?zA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0443e9b7-3d26-4f3a-edf8-08dc93f11b95 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2024 01:58:14.1588 (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: Ske5kU/AJexNrqOHkyanTjAXRPvr+6zZHu0jrh2CodYC3iqbtTvhQIDkiS5JIClbnXQn+gudbVFPEz1+A7bf9YKuzmA7qAaGC79X4O+XkHY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR13MB5867 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: Peng Zhang The NFP chip-wide port index is 'eth_port->index'. In the normal card, it uses 'eth_port->eth_index', but because 'eth_port->eth_index' and 'eth_port->index' have the same value, it doesn't have any problem. But in the reverse sequence card, the value is different, so it will lead the 'nfp_eth_config_start()' failed. In this commit, fix this bug by using 'eth_port->index'. Fixes: e1124c4f8a45 ("net/nfp: add flower representor framework") Cc: chaoyong.he@corigine.com Cc: stable@dpdk.org Signed-off-by: Peng Zhang Reviewed-by: Chaoyong He --- drivers/net/nfp/flower/nfp_flower_representor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/nfp/flower/nfp_flower_representor.c b/drivers/net/nfp/flower/nfp_flower_representor.c index 086dbc58e3..b1589cf78c 100644 --- a/drivers/net/nfp/flower/nfp_flower_representor.c +++ b/drivers/net/nfp/flower/nfp_flower_representor.c @@ -845,7 +845,7 @@ nfp_flower_repr_alloc(struct nfp_app_fw_flower *app_fw_flower, eth_port = &nfp_eth_table->ports[id]; flower_repr.repr_type = NFP_REPR_TYPE_PHYS_PORT; flower_repr.port_id = nfp_flower_get_phys_port_id(eth_port->index); - flower_repr.nfp_idx = eth_port->eth_index; + flower_repr.nfp_idx = eth_port->index; flower_repr.vf_id = i + 1; /* Copy the real mac of the interface to the representor struct */ -- 2.39.1