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 B969E4240F; Wed, 18 Jan 2023 16:34:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 519A940223; Wed, 18 Jan 2023 16:34:30 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2087.outbound.protection.outlook.com [40.107.94.87]) by mails.dpdk.org (Postfix) with ESMTP id 795C2400D6 for ; Wed, 18 Jan 2023 16:34:28 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MELN4RbUgf63pdeYE7/64pGbi4uzfH2nioYJjmclNFkPS7elhBFMXqXwRe66bGiDFcR6tItM5JgIgoEkQf0wpRZFjfGqevX25zVwpkOdtwaHvdnFtifa3JUa72UyDeXgFj1PJrP5q6V3iuZ8TlbOCB1U+L23PT8YxwUh7RUTCYOKdRTCpF2WeZQXsD4WiooBawPozShJwWeQ0MEM9CIMzJKV5xCbcFoIK4P/bu/yuTx6HqgqPHkiPc5kPrczxAK5ABCzb3uq+LGBvp4E/ul8TPTrVZK3Nx2VP0F6aMoQBGTp1Q2DAASNdkEha3kI98kaDpdyH9dmzZC1ooQw13ZUXg== 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=tQyuty/bUFcYPmc55Ry5nIQAKmysaG7bPPGNUeSgp6E=; b=O/weqnAknGRXM/fIjKt5lpC+6gN709k1MrzWEhBAZ3E+DC+2NsEkP/lvfFBXzv0AOrKlB/deEWZL1rKbufyMCLdira9Uan66zMC+Uq5mCIGRWujPqij/3SUXFxYYCYNwHeK2XxFZ002AIXRvee3Y0XG5ClZIwDZ32GBKcdEHtPhyM5nC0eaKHDwdYwnXG0gGZqT5JxMveJB2NLjL9tgJ+wVKbjti8qIdfbCcXtEAH6N4ySNJY+1C9qOgtU0zWco5DQqYqG8BZMFIkYYagjPeuGYcj1MYCwn/Ca+LhGeS/MQ1PS8WOMTXXHLjq+pbLKPjpHsRPsCl3/iMHi+AxZloCQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tQyuty/bUFcYPmc55Ry5nIQAKmysaG7bPPGNUeSgp6E=; b=VBhW1+3Go3wI1vZ0pFapFWCzRFdE4zHSkqVXK2rqv8VKit3zp8BBFslzgCW/KY3gWhe0d/1h8iPRcFDZ81W04VRBUfmqlyWqqvcFhPL3ZrGCnoWVNloPQr+pfPCRL4QMETocIzDHiemN6QRPlL6kk4N9WqIFRsYE/jWjrldO95s= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by CO6PR12MB5396.namprd12.prod.outlook.com (2603:10b6:303:139::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Wed, 18 Jan 2023 15:34:26 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::4807:1f44:5e04:e05a]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::4807:1f44:5e04:e05a%8]) with mapi id 15.20.6002.024; Wed, 18 Jan 2023 15:34:26 +0000 Message-ID: <1fb00c71-7192-5337-f579-7d078588d89a@amd.com> Date: Wed, 18 Jan 2023 15:34:21 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] net/nfp: add support reading linkspeed from port table Content-Language: en-US To: Chaoyong He , dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Long Wu References: <20221209024359.15245-1-chaoyong.he@corigine.com> From: Ferruh Yigit In-Reply-To: <20221209024359.15245-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P265CA0132.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2c6::13) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|CO6PR12MB5396:EE_ X-MS-Office365-Filtering-Correlation-Id: d837c7f3-faf7-4059-3e8a-08daf9697b41 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pSfGIlUfFrgU/WhlaUwhF/BBRuXmrgoAl2Pb6waIZIlwYxpXP7kqs6VeCRwW2+XVcouSNZary/fVPZXV9XCEPctkOEeDeunU3uPrS9NA/suAYzVG1jRJm61H6//YJFngMv15oGfKXJ4qifzGW2PwqZwh8kw/9gaRqWTI54u48J6dmID21J+xnWKgjAaL/liZpEDGS94+oh58bQM95dawJkALY6asW9COL2mVrPjZyDxsk36k6tfYcTps5/xpZKmcGO6zpaXgkBlzGiI/bYU6ek80gTPqjGs6rAUPfxe+yA7HzZUPoX3ZbfjwFhlZOpfk8ffJV1bYVYv/DJzEyyEaYr9mfvGzBORHLrWYCD1oJ2Isa3XJpunc8poupjedzkFBc5G8zkIelCjtCORchh3FlQpdYQKwXFgG3GkpkuaGgAOehabghXWKdsT+1PK5/6YdSLPZt4Bf8fA1dufW8Xe/pQexu9116kcUHgaPjHRhqc5/fS/HSGPm/tLq9Ow0aeegzTSH6TJ74HaW6mTih17/cJb6DI8ljM3S6qNu7rUzCjF+v60zFkZbvNMjOtE1jurPxh/XKNBm4JzEv9gbEwwOs3+tg5k0v5Sqh15jv0b6EJvRobMrM/3WWhBr9qEK7A5wv4bQBOIp3Gm368UldglAVzj3BH333Y00b2dTKHN44CiCpxZ7LwiYw8N5Z2nhrcI49kwhwZllZhc7pbjK7IDf+WNQEtLCWGLDIiT9VxascDE= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(376002)(346002)(396003)(366004)(136003)(39860400002)(451199015)(31686004)(36756003)(86362001)(66476007)(66556008)(4744005)(44832011)(4326008)(66946007)(31696002)(8676002)(5660300002)(8936002)(2906002)(38100700002)(478600001)(6486002)(316002)(6666004)(41300700001)(2616005)(186003)(26005)(53546011)(6512007)(6506007)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ekR4cW4wWDBmekpWaWprU3JsZXc3cmt1RXA3RWgxc2FuMndKcDlqN2RObm5v?= =?utf-8?B?VkdQYnBGMTVJOUE0RkpZMEdnWUE5WDJvZDB5MDFBMGVmRklGYTF2S0RXYUlj?= =?utf-8?B?amdlZFZaOW1xbHhyVGZsUE5uK0dCQWVmaXpDekk3NEZvVVBGcmhJRmt2WUUy?= =?utf-8?B?c0lJdjI1ZzRqMDZmOGlTVW1VTDdSdGpnb09OSm5tUjdhalUreE4xclFLc3py?= =?utf-8?B?dmEwYUtVd2ZScld3TENzUGhReUVhNkFFRDFqdmZQa21vSUxMMkZVaFljdzd2?= =?utf-8?B?MHlZS1NxYWRXRUNkOC9IVXB6MXo4b00wbVJIUkR6MHZUWWZ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ZX?= =?utf-8?Q?ef3uKdHLeLfDfs1s1Olt4rRWQ?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: d837c7f3-faf7-4059-3e8a-08daf9697b41 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2023 15:34:26.4382 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xVbDl7aUqbsM9IcjLDx9qDpal/EXYFipzIhng9X2AKwLz8voV8ns/3w2fmqfyigy X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR12MB5396 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 On 12/9/2022 2:43 AM, Chaoyong He wrote: > From: Long Wu > > The NFP PMD driver retrieves the linkspeed by reading the > NFP_NET_CFG_STS_LINK register. This register is not set by all versions > of the firmware. > > Add a second preferred method to read the linkspeed from the port table > instead, while keeping the old lookup method as a fallback in case that > is not supported. > > Signed-off-by: Long Wu > Reviewed-by: Chaoyong He > Reviewed-by: Niklas Söderlund Applied to dpdk-next-net/main, thanks.