From patchwork Wed Apr 10 11:26:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louis Peens X-Patchwork-Id: 13624111 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2112.outbound.protection.outlook.com [40.107.237.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33C2B15A48E for ; Wed, 10 Apr 2024 11:27:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.237.112 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712748479; cv=fail; b=WJgUAmaJ1361NW9n0QLQ1ui/e8pmV4HQo80/kNm00Z3j6ni9H0spLPQGSuW143eua7d9ToVLchxE67e1dAlBZtE6zgdLZW2vruJ+NDy9+RZRjMjxhBYLiIL5Q/OCUojXg+MHwMJNpqC/yM7aV+oJMYxat0ckv49w/bziCzioMpo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712748479; c=relaxed/simple; bh=0wAm+fV5r1fyt+9n7vjdEYTnpEo7z/j9RfeoDI/l9Fg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=n3uNz3mlRh1pdCYXsZoWH/u1AXn8CanR1va4gCKsxiNtOG8BrnoL1zZJo7853t5Beuyqr1kUXURXHPAPqT7KaQJVn6L/Eockq+mjLLwDiYGKU/QOpn3DxBg6UwxouQAht0N/kSv1hKKQ8Ucu4spehtuy1iFH/eK8nOgRv5QvrpI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=corigine.com; spf=pass smtp.mailfrom=corigine.com; dkim=pass (1024-bit key) header.d=corigine.onmicrosoft.com header.i=@corigine.onmicrosoft.com header.b=r/BvLiIr; arc=fail smtp.client-ip=40.107.237.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=corigine.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=corigine.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=corigine.onmicrosoft.com header.i=@corigine.onmicrosoft.com header.b="r/BvLiIr" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RDTFM88eq2vtqDVrj5nuetM9vbg+lZA3l+jPntXVWA3ClsfuuWIXkYdcH6Fc6w/BI7KqbGWXNr9Sp4n0G8bdvgGHg9SOJhk/glwYXU1HaTbsnZ3mLoK3mPrtzFlBs3IbFfSycBU43WYBtS2Zq/X9BxThK+h8m7wS1WJNk6UVTbCToSFdaC372xhCs0MCyt9I1L0aAbRClE30lEgNcaGleUHzuOz0vBS97hb6mJrx16rU6IOr3CaUVh+v1mPR5nJRY3iCMFbse+lQcw+ochNgzLcROni/uiXTnV2v1Agp+a1/an6IlnUS2qUNJUVDkycJZcS/t8ImnqvzvHjXUmbcvQ== 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=EugGRKHxuaJL+g5+nWPqO7caMH/chJB/w4m8dy8JstM=; b=aYUt1Qm/uPnU1uPjlMappJFxr/2MTx4HtOsU+x8SBhiAOQuHIAQ8JCVhXq8gdK1YZ83OdN4i4YOE3c5/4hkEZI6V4KNGtGUftY9HY0D0PsBEIIs6zKH6VPuSQfvjbIdnNSOShXP1Jr5I6BAu6rq0UEWTYTVoHio0Ual3IW5QpMVh/DzNkKPNkeCFkkiBpp0o3xKiw9fRluvXvMDRY377nIzHlaxS7cv2j4cdZEiFt8AtIcdo1rBfv5uBsJP/a4ue7ILocRkl+Q+trLDRMWWzW+w8ZO/vfAlPBzLeEMW3QU/ZNFGjhqeeWNxNLpFMgThti9zsZeo/AlVED3om8jF6+w== 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=EugGRKHxuaJL+g5+nWPqO7caMH/chJB/w4m8dy8JstM=; b=r/BvLiIrsTcfot0iIW3LeeU0qBCqcbd4oC0XEByrvatfOsb1HKA27QYSitCTpJTGKsmnLKf7n5lzF59QeME8WHEryUoKgmV2XyekZPM6/VLBA2WCp21eYoGqN84NmC61cjcYQ3x+QsNHHopTIY17tEPgmbGkwwLAFHKBrfwtdi4= Received: from BL0PR13MB4403.namprd13.prod.outlook.com (2603:10b6:208:1c4::8) by MN0PR13MB6665.namprd13.prod.outlook.com (2603:10b6:208:4bf::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Wed, 10 Apr 2024 11:27:55 +0000 Received: from BL0PR13MB4403.namprd13.prod.outlook.com ([fe80::bbcb:1c13:7639:bdc0]) by BL0PR13MB4403.namprd13.prod.outlook.com ([fe80::bbcb:1c13:7639:bdc0%6]) with mapi id 15.20.7409.053; Wed, 10 Apr 2024 11:27:55 +0000 From: Louis Peens To: David Miller , Jakub Kicinski , Paolo Abeni Cc: Jiri Pirko , Fei Qin , netdev@vger.kernel.org, oss-drivers@corigine.com Subject: [PATCH net-next v5 1/2] devlink: add a new info version tag Date: Wed, 10 Apr 2024 13:26:35 +0200 Message-Id: <20240410112636.18905-2-louis.peens@corigine.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240410112636.18905-1-louis.peens@corigine.com> References: <20240410112636.18905-1-louis.peens@corigine.com> X-ClientProxiedBy: JNXP275CA0021.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:19::33) To BL0PR13MB4403.namprd13.prod.outlook.com (2603:10b6:208:1c4::8) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL0PR13MB4403:EE_|MN0PR13MB6665:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pKARExtzU4ANXuJWS/HssMjvdvf1ODqxjvV8v8njPk8YWVWYw90Lo6JJr90CTF1JWbFWdCBJNgLqa2uxtyw0yJdKBuKCmy98sfty7XG8v62QK5RiS/tNmng4lDrnshks/Mb1l/iOsFgH4J2Pnh/2GUt7SkssgkVzWLYrw8xxNofr9nHL5XlHsVI/zcnTd/Mkrf+ZxXaUgBlMiRQXPTE8sT0ieqMEEUykp943lDqmo8PKCu1GpdtvZwezn2Y/vgVuZLXq8SulOlSV3ER7He2HGwzOXLmMeS13ygteBUNgnnP+cM3euDTC8bFUJHoPagieqO15PIW8A3XsGoIR7fnvYr6Gz9QLl9EwaDmK7UoxoJW+pRhxYpnpG94d/rb5IosiCKVnq1P/46F4qtW3SzmJlRaZ1zxCT05ce9dFgLqAQllUXQyLpEkmG4f2JVyyy1WIwJONT/54q/sE/sz265yk5bUQCn+fqRMUICK5IigR0qtPuUfJVDvG0tK0Ht0JNs72MOVNXcOWvuRxAgUxLDZk/CvWOn0pVbdjlbqjyauzhkETeEiFF4Jc5Nw7MXXufnJZPASIwVcgPAn3y0+GcKJyA6X03o8/JbXVVMAe1ID/+OdTCH5BYUQ+hv52T95zGGx4L/Oc4wNiZSa9GEi9y27VF6ocJt4nXh2RyI0Ye0GRv9C6thUYpBtO39SsK4cKoBTFV1snDOJgxf14p+Ja8Si48wJdQPmevrumr/Z88W+pyvo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR13MB4403.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(52116005)(376005)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ptanPUfR+dhiFlyCge1V4HyLAYKkTwyaoL7o1gOZDuSgItwQNfGYHH2Iz95QFcVpH9OXe0+yGpL2an+mHn9ld/aAhiCD1lBVuxW3FJgayaptIT9lCRuZS3OJpLeagoyou8sDsZPfsrUr0uiA88qGiEcnTIhy+MZt6WGNKHvW6ccQYsgeUZtXvKj8NQwbP8w2rz+mGigoy0LeVnekAwujnNHg1a2HUkugJOyIIQRVSxiKtph2j5vodXtA0oj2JX/NW6Xjap6ZJKgcWELJAbymXbVX9mVNNxVXmMzsfA1vETGGncQx5Swfi2U6LZGRxdSlwnWg2xyBWFfEz+D6mFFO7802TcQ1Gx6R53bWg5zPrvEZdlemkq+RqSo27uDWEfQ3mZaaLNZFvk+/e5e64eh8RhhRH8iJw2dqIkGyld0DlaB6q+Q1L9Z1QR2BHGkM1BrcCjbDFxTQ3ONKcCO70+dVN3/uEvU/R9NDvaHlkURE7tS6s51UMNzIkgqiwyyVOucszk+cyxvLD/CuB0ZYwLTQZFpYfQ17QGz96KjD5nlusys8laaHoXP+cWPDa3zBlp+/11ml4+OmaeLkzueozZ//SN4yHDY1HvGhT1mjMJvMo8j532NxLn74MllENnNvDKYSzGXJpmg9fXUVH2BEikB6q5QUiBuF7fFkjWyY+6zQ+xzyrv9HV3CR+JfO2SjyF5wlGdbw6powj1s2ualjGXQvcrhavIQCZHn1XqDdDxvtuN0XEdhEQ0O6TH+/r4YyOvbnV1Ygil9V5tHBdbERRpUonGH0GdhvDgR32/5N3f5xzjlpXfIvjKNhUKsJJYMREWlOwhAY1YfFKYHkQLGDubu5A2rA6v/h8klvCn+Vb60GgXarzrEXEhJxPwmgIiALshtay/JDUUH7UqxHas6d45C11BOXEtD2Fv3VRNGcI4gdHhrw6yaW9+XTfRH8GSMbG+a4NxcqEGL8lDJNm+ZrjGvQyEpNU8k0Pg+KUF3DF++E1V+VIcviO2BV7IGFYKi/GIrsa9+SQBdlxbudFe4mb3yaY3WOQwi2OnkWz/s3lLXCae5HBQDalknSr3TCw+DbZf7jPK/PgY3sto+YTnrm1XCFrBkHradxdsLoHYOO1ULGThVtZprq6L10nrmmWD7A9bQYZJkjpXW+uexlP9LSAYpjqEYCJKthMm/QkmS2m7uS9/7RurRtNwpHb493Azm0UaIDn2X4+AoYFrx12rir2ODe8RMJ3+ixS94ZwqWnGT5tqMC7716lu1AylTrcZrLzqYwgdVZjCNEaFBR0GG3KX7aqGGzF5kD7kcQD/tVu17Krp/QbG6t6nJAiSi2OL5fw4aUK1j8o+z6Wnfz3ZBGnki9rdJlwfJdjWC7VvKJ7d1X39g7bj7ud/tUEMVeijV9CmtCV3Ls8dYunog+oMeHIqufkWgwjNolSrYgGG79yTCuR4GJF1eCFV2pvldW7so1GdIyGge/eOpuKkHcFNSsJtJcBxV2Gmmgod4OvPsuOQf6fSpqHYRKwC1LVJ90ke50xfPWZlJCFsFKGTF4iDYhYo18D2T4s2XlBsysOuvqPdrdbU/a6Emw4Ksod8ub6S2+DBHsqxXgFN0EDEPzRGxj3GoLftA== X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 058b274c-8c49-402a-8c71-08dc59514473 X-MS-Exchange-CrossTenant-AuthSource: BL0PR13MB4403.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2024 11:27:55.6360 (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: NDWJxhTfvZPcqjwGr4JpoEXfI7wBHZywB5O+AIxi6W7XypB/5eRZ2JIEro9uhcu9I/b4caZEaAIRp3xab73/pm55kem1fMAFO8upPj8e5PM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR13MB6665 X-Patchwork-Delegate: kuba@kernel.org From: Fei Qin Add definition and documentation for the new generic info "board.part_number". The new one is for part number specific use, and board.id is modified to match the documentation in devlink-info. Signed-off-by: Fei Qin Signed-off-by: Louis Peens --- Documentation/networking/devlink/devlink-info.rst | 5 +++++ include/net/devlink.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/networking/devlink/devlink-info.rst b/Documentation/networking/devlink/devlink-info.rst index 1242b0e6826b..23073bc219d8 100644 --- a/Documentation/networking/devlink/devlink-info.rst +++ b/Documentation/networking/devlink/devlink-info.rst @@ -146,6 +146,11 @@ board.manufacture An identifier of the company or the facility which produced the part. +board.part_number +----------------- + +Part number of the board and its components. + fw -- diff --git a/include/net/devlink.h b/include/net/devlink.h index bb1af599d101..d31769a116ce 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -599,12 +599,14 @@ enum devlink_param_generic_id { .validate = _validate, \ } -/* Part number, identifier of board design */ +/* Identifier of board design */ #define DEVLINK_INFO_VERSION_GENERIC_BOARD_ID "board.id" /* Revision of board design */ #define DEVLINK_INFO_VERSION_GENERIC_BOARD_REV "board.rev" /* Maker of the board */ #define DEVLINK_INFO_VERSION_GENERIC_BOARD_MANUFACTURE "board.manufacture" +/* Part number of the board and its components */ +#define DEVLINK_INFO_VERSION_GENERIC_BOARD_PART_NUMBER "board.part_number" /* Part number, identifier of asic design */ #define DEVLINK_INFO_VERSION_GENERIC_ASIC_ID "asic.id" From patchwork Wed Apr 10 11:26:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louis Peens X-Patchwork-Id: 13624112 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2105.outbound.protection.outlook.com [40.107.237.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4344A15B149 for ; Wed, 10 Apr 2024 11:27:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.237.105 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712748481; cv=fail; b=Vv69BdUO2nh6PSpoQVIVf3eBcVEr5GEJqanPVqwIu3FbbTc1s9s6RAyMvKGOO9m/cSIiVNC46Kn/FxWYYjQxGGvKakDeDA/dM1dCiEBD81SFaraxfQnHv78psmd8c7NsRVgP5O9wi5qygdUwtyYEIrbKvTXXZq9zSS+9wYSs05w= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712748481; c=relaxed/simple; bh=0zwGfWqKaT/Qc4bIZisiGWzIvked8VFmzgazivox/yE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=pAYUpKXIyz8j8ourdj//9VDdwvMcrzqtae3tzQe4g4dOA6EHSc2DXO+6+COg1I4+BuFinxJLZ4BbQEferQg6/vAOa7MpVHPlz3CpNYBUpn8jK9mtaLY7syViU9oLYPw9Pw5wl6Y2LAWppT240xaNGTPgxrpe9ieKPuVvZ5B5Dis= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=corigine.com; spf=pass smtp.mailfrom=corigine.com; dkim=pass (1024-bit key) header.d=corigine.onmicrosoft.com header.i=@corigine.onmicrosoft.com header.b=MZ3YnOUO; arc=fail smtp.client-ip=40.107.237.105 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=corigine.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=corigine.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=corigine.onmicrosoft.com header.i=@corigine.onmicrosoft.com header.b="MZ3YnOUO" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TuuB/b0SLedlGR4M8k6bH9Ho/I67i2TgvJjGXYB46Z7UH13P7qX6GisMtN336czdMQglc09twjX9vVdWHmhhU1lv92VunUol3St8dnpV6CO3PEtMrudVChc7ScsvpOFI/ARdxZrz7GmEvSjl1ZNjQ/v/KjpaZ5SjntZg09mUeHhlthKuzSvxhK9X9xXcx0LTMdJf06ZeqeAKg1GlYqa5ye/4Y+kFfc7KeVVk3ewK1D61u3ib678LeIL2A59R3szVrB/BnBM+IIzd5UmPTsFXAf9XSDLhAJef7SEhVvZaSJpjNMpq8lJB5TRrAL5p/Zr6mNYvq41k2vMhBY/8NR6Hfw== 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=JhtUVw3+Co6aGJVR4JGY3Gu/jHGmKbMR5LMSmRymCis=; b=hw0xNrczOPNFsIOmaUWR0YsUZP2CmN8gg/PJb2PoCagQpMF4OMLnfszWE2e1Sj7zcFdbImuoznxswrEdoTfDXQDTNt0fOs7wina1mas6NjpFjRrAClAO2HRdO4Z4U1++JY8gDh3ErGoRaXmqxbYyCJ15CJisuJSETBfHgLUV6J/3OG86iEaPhTGyijwU4DQPSMEzEUFdX9MxvW3X7HMcDeAUy2khSZvG4NSqrzg+4UY1fFSCa/ztFAZpzoWBSdccp9cYUPTpHpbg4IO9L/3whgL3l2Ycf+AQh3ZV/ukt4JLOLUMwLeRkJq3BznCPFFHuWK8dvcHK1iPYiVBK5uvCig== 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=JhtUVw3+Co6aGJVR4JGY3Gu/jHGmKbMR5LMSmRymCis=; b=MZ3YnOUOXu+8AtXzjS/IHkblmPSujPfNQFAQm6VFqp1PDk4B8BROK80tP4QOLgB1XgnuowFR+JurnLoVXjozKYwQFBu5vu0oz4/lMwah1eU6JPq8dGV9uSfmM5N2ZlIMgaMBaqo+m5WXOQSEaXNeDNnCULMu1+dPh8580gjmJIA= Received: from BL0PR13MB4403.namprd13.prod.outlook.com (2603:10b6:208:1c4::8) by MN0PR13MB6665.namprd13.prod.outlook.com (2603:10b6:208:4bf::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Wed, 10 Apr 2024 11:27:58 +0000 Received: from BL0PR13MB4403.namprd13.prod.outlook.com ([fe80::bbcb:1c13:7639:bdc0]) by BL0PR13MB4403.namprd13.prod.outlook.com ([fe80::bbcb:1c13:7639:bdc0%6]) with mapi id 15.20.7409.053; Wed, 10 Apr 2024 11:27:58 +0000 From: Louis Peens To: David Miller , Jakub Kicinski , Paolo Abeni Cc: Jiri Pirko , Fei Qin , netdev@vger.kernel.org, oss-drivers@corigine.com Subject: [PATCH net-next v5 2/2] nfp: update devlink device info output Date: Wed, 10 Apr 2024 13:26:36 +0200 Message-Id: <20240410112636.18905-3-louis.peens@corigine.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240410112636.18905-1-louis.peens@corigine.com> References: <20240410112636.18905-1-louis.peens@corigine.com> X-ClientProxiedBy: JNXP275CA0021.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:19::33) To BL0PR13MB4403.namprd13.prod.outlook.com (2603:10b6:208:1c4::8) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL0PR13MB4403:EE_|MN0PR13MB6665:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uEs7UIqNxdiYDktdw2s/2+ZvOLGkAMquPerV17QLn+4t0llyWk6BVKosiN+Y8Q7A2OoPZC2zIAo/gbQLx909OAcN2T7MGuTt99dlsaVeLgzuMU2DXoof7Gek2WYb6rgNg6MMTdcyr/8+LWJ59zIvEOLuL6TpdwHBj6gZz4ZXPQc01c4ZD36ilDnO7G5WPNWlUt0cb1t40qtThM62nGE9E3Uo7lnBQsQHubh2VSBTEpXRIQOw0Fbx5yQYJGGhYzYqkCmOriVmwivRaFHyoL0xGxufJSTS6RJmLTfbMY6TW2Y/sarjNqyb3RY+mPAGuf09XuKpmMGyCHjysN+zfhYzLQltbDD4I/J2htMS4T55vfT714DrLmpHa8TLR+cW5TkMbwdPaaidN5vyA8EGSNNpJtK7Ud2zjMuhkgrNmq62XSeh2DpsPPI3YeKnbQJM4DLFZ+TfKyLoe9ibbsuFl1hF2R+Oqv8HLDFIWzM2McdGG8SZ4HIVuL/FNnHKaL9Re/pQVtj0y61v03erhSLUP3mSivi861APtlXr53Zn14eTlUt6xCMbm0/2EsZlPdCp3KZ4ahCvjLfnhD4anLNjAxPj2mozDA+DAucHMGyHhHAGtwH2mweszmn93VVmKPbwQnk2eUhKHLwzy0TspfgjpGS2F+bHQBejWzHI01dR6Igp4VIRLfK7EUI80Aadzpi/Y3w0RQB+O3N5696nRJtCE3tEbGAYiAWCOcSiuxH4ToFjBUM= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR13MB4403.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(52116005)(376005)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: e80xEIK7v0GSRwQaeMT0U5b3IPDjExVc46C02KJjfUtjs/DS1KoFQlQQty5MTcpNB1uVgVBMqpof68UP6viOekkgnra5aezG6UVJhT7wg2YGQexLBlfDWe6lmAq59hAK1FsPefD/Ko13GGQU31CQQc4Ja6IV+aOa0j13vdqda1D86xl+FvYq6Z84Um1tbQ9uIWyWJWkZMqBCH69JCteqPnsvFnUzxqKPlk/A3qUqxos0NpqPCdfr9d90QvdGBL9tfyRJcjTbgohkwsu254zWRLREOPrOt17/ru4VpfKEmKZcSobHrWih2srJtzIxVzlKnghiViFHsKyjcBzdcE/A9XiAa0xNEKDFTUPqC8qOPjTSttFFs1yptcyKy0tkofvKM3eMsl42XYH43/CI+22fmQb0ZyV8moQZvcJ81u+GFWZLD6XMZmS9RHFR6qD1pc2YyI5trsyX5vRGRyTBZ2VWh4N5YsKBjU646NjCkwJLah4aeT3rv9wfrRFvKbMSNzLQ0BXmq6f9IzeUj0W2GhRoYgXiDiP3gYB8C3xgdPeiQzaYOeTMnEUJxtuuUJLJumIfNOsZ8RJJeHIvEjaIAkcF4FdHZGrjsnhtfugyYq7vYlMLCh2AyLwz8NQkryLjIkto0pOqYWUz32xcchPlvyBCH4FUof6VKou4BbLlC/gbZAtA2LQGEW3QxIaXPi1+LC6OmMheAVQN4Bo9rKvQ3iiBylNSm6AIkNhOFgfNdtWKoWS47S16662xR1SvZiEZER+yz3gJnLY43JDroTua0YRJnU9cXmZnvsvJq7J4okDhUi4pwpJ3RxQiBufsseCmoaLUjr7c/WdOzwQ390UJGfzan8C45bc19hm2BNKxfpkUTLzX+NHzbvFB8F+XrREgLJ0ayeBfLJMlXUgtHzARa/QNubaBrlScT/sufZeGnytHc8hhN4DGrfjl8oOPhN8e2kXoeUdU5LFlPl8Wlfbv9h5Y+SmbTBHpo4WMxbbYtfJ1XSqc4Ot0qYT284CpWpiDDbG8daNXOpkw20w9v49Qz3IiLpOAo6N6NZ8JRO6HZ3q8WIoy8jLSvSTYDJKimIly61RrbMeOVkrp6oaHPGxgPv6uv0c3oIZLuDPlcpUUpJuvaXTMPCc+snG9+Ip1ETcz/UX0BSf9AfAE3XCMj46b85iBd4qgzyn70cbMiqMVdftSVMaD2IR5EdFpCVIhkOUgYi0lmIY4xujddKQ4pntXAXvfwdfDpkBce8JoBb7kTZWCJV0qSqcaRVXMS2aChie7HCEM5MCaFWbPy96f9Ez1N7MmWGadYl3b+xoAZdQPA0SvRy/3K46bIDr49tUJ87+ySyXAvkLj1h7ZHLAGeapILVQXCXKUQ/CUC0vMrdRav8qWhNMtJOWXezyd7ku6YmhYECRDhelah7L57CfzENvb1vcx8ca65YOEQnvCB72aWt9Wkn2KuRj5dZ3l73pmBpsVsEoTX8gkQUUPCPShWi0rpPIh9WtoSrrWrh3wA7P+TSJTPUb6l1dQWJN9vDsBzMN2sTYxFIGhdJOfFWYv1GnWqE8RY0+tMDIzGqQzgEeFLa7X39Gx/WhMAhfXKkvXnzr/n+yOi3MQOodmZedUv/62qwdKFA== X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: e0453a8b-4db1-4d74-129e-08dc59514600 X-MS-Exchange-CrossTenant-AuthSource: BL0PR13MB4403.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2024 11:27:58.4547 (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: kse8H8WV5OhDD6tDOeBzFkA+Vw5O51UpvYICqsPx/UDcV28mSDUG0FHo1Yn8gJx4lU0XEU49uDWLe4ce8j6lavH3gGgRcwtPA6jj/oBV9Po= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR13MB6665 X-Patchwork-Delegate: kuba@kernel.org From: Fei Qin Newer NIC will introduce a new part number, now add it into devlink device info. This patch also updates the information of "board.id" in nfp.rst to match the devlink-info.rst. Signed-off-by: Fei Qin Signed-off-by: Louis Peens Reviewed-by: Jacob Keller --- Documentation/networking/devlink/nfp.rst | 5 ++++- drivers/net/ethernet/netronome/nfp/nfp_devlink.c | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/networking/devlink/nfp.rst b/Documentation/networking/devlink/nfp.rst index a1717db0dfcc..3093642bdae4 100644 --- a/Documentation/networking/devlink/nfp.rst +++ b/Documentation/networking/devlink/nfp.rst @@ -32,7 +32,7 @@ The ``nfp`` driver reports the following versions - Description * - ``board.id`` - fixed - - Part number identifying the board design + - Identifier of the board design * - ``board.rev`` - fixed - Revision of the board design @@ -42,6 +42,9 @@ The ``nfp`` driver reports the following versions * - ``board.model`` - fixed - Model name of the board design + * - ``board.part_number`` + - fixed + - Part number of the board and its components * - ``fw.bundle_id`` - stored, running - Firmware bundle id diff --git a/drivers/net/ethernet/netronome/nfp/nfp_devlink.c b/drivers/net/ethernet/netronome/nfp/nfp_devlink.c index 635d33c0d6d3..ea75b9a06313 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_devlink.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_devlink.c @@ -160,6 +160,7 @@ static const struct nfp_devlink_versions_simple { { DEVLINK_INFO_VERSION_GENERIC_BOARD_REV, "assembly.revision", }, { DEVLINK_INFO_VERSION_GENERIC_BOARD_MANUFACTURE, "assembly.vendor", }, { "board.model", /* code name */ "assembly.model", }, + { DEVLINK_INFO_VERSION_GENERIC_BOARD_PART_NUMBER, "pn", }, }; static int