From patchwork Fri Apr 5 08:15:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louis Peens X-Patchwork-Id: 13618616 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2121.outbound.protection.outlook.com [40.107.243.121]) (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 F0ABB145B2F for ; Fri, 5 Apr 2024 08:17:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.121 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712305026; cv=fail; b=CNQh8dhoE215Aen67+n37bT4mIhx1V84liBs7hnkxTul2GnNyEIu3CYcIkyC25krEzpaprELnOaC9U9lYIrTk9Qmw4deN8fwdyjEWy3aeFNx00AvG+IEdZqNWSYb83gyk8d66TKVcs3hiAmtL/5QQsSBdA/eagpbDMu/crdTZWg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712305026; c=relaxed/simple; bh=wHR/qVd+ENdSfFMi4yzxWHex73x31JIdaA2BSPTN8AU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=HqnbqnO39AklWJvfdld6aj3fyvw1EDomFrwyuFmuJC7XNXqaL46HCOw7z0AfN3IPQjfxyL4eE535J3FU1ZoshzXPTJsQ2v/wcfLVwtcrPergZbXLH43m/Jwn26WB/R1rQ6HJyjkgDAlhbV3JsPfsIPVD1vDwhTi9o/NsLCoJDxw= 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=DCLP9VQI; arc=fail smtp.client-ip=40.107.243.121 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="DCLP9VQI" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gljKtPgYod3xaGDQdDIUgAUhxZlG+SdvA6Qk5MOzsOZhDD17rQ8byJjrfguo4lmmnpnKeF5f/rUSfMK9jP0IkCwfjoC23PvjQxZ4KoAFuZjBtGx+9fKX2WIdWxcD113NeqV4DMjRNjb0FnxcZJDlv8LnLi8NVQftOTqo+iP8H1JPPb45Ha8lFFl4aEoOIRCLO6xYtrs+mcVww0yp9hVqenn4VfzJwnsRaEsc2jgUjBCDfFxeScLWyRa6Mhutr/2OjoAZ9nfnbl5s4VubBYxfEfV3GAxpC6cOKxrVRVFLMwxfDJe7wUIThf0+LWUh5EDvlVwpEY1VzgKbB4Usl0uQzQ== 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=P2kHJyvDGKeWWeHWrgvdmaNDJgQjJmCKYdLwgYvWbcE=; b=AFyh9d68w+wC8FI8jlsOSgCSi2CCYFMhDBmBQ+kfEWEFP00iODcVYWVN8P2bNMxOVNLnUE1D9P7gFPCCZI/bwVFGUqcj0FJcR7kVH7HxsPsGFaAOM2HwmbFPFaC/0pppRryAaRql+3leSFQSZuCGjaKA8kdPH6sY7YZKbvrT0WNe3vX2tNxSBYrr00BvPldgvnMeRBwSi4mSSNeC+cqcanxquBg4eGJMZh1h++Ba/1M7YsBarylnC5GH2CzHyBD13D6qNGmHeGPCIxPpOD934Jeq2V7pBWjotZ2AyhADWDk+MWCfDMOmrXgBzAOM/+RPPim62x5la3TPtMmI4wdj4w== 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=P2kHJyvDGKeWWeHWrgvdmaNDJgQjJmCKYdLwgYvWbcE=; b=DCLP9VQIfBwEUyozm5oT1GyvBARkbezjErliioMOoXWrmDRnnkzGSRKVsLe2GAXNVxBteu8L1209yHRanqVnoXnO44B2ks47oVlfmFlAIOhxEY+9VPSF8287JCA5kdcLdOe5N4rfCU7tPL6wRSepMtlU4fDS0vBxERTs5VQtbaE= Received: from CH2PR13MB4411.namprd13.prod.outlook.com (2603:10b6:610:6e::12) by SN4PR13MB5678.namprd13.prod.outlook.com (2603:10b6:806:21e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Fri, 5 Apr 2024 08:17:01 +0000 Received: from CH2PR13MB4411.namprd13.prod.outlook.com ([fe80::cd14:b8e:969c:928f]) by CH2PR13MB4411.namprd13.prod.outlook.com ([fe80::cd14:b8e:969c:928f%4]) with mapi id 15.20.7409.042; Fri, 5 Apr 2024 08:17:01 +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 v4 1/4] devlink: add a new info version tag Date: Fri, 5 Apr 2024 10:15:44 +0200 Message-Id: <20240405081547.20676-2-louis.peens@corigine.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240405081547.20676-1-louis.peens@corigine.com> References: <20240405081547.20676-1-louis.peens@corigine.com> X-ClientProxiedBy: JN2P275CA0019.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:3::31) To CH2PR13MB4411.namprd13.prod.outlook.com (2603:10b6:610:6e::12) 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: CH2PR13MB4411:EE_|SN4PR13MB5678:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VOhGgOZ0I7ZHl7SGP36R1HgvEadpWys1uM1JY4/vOBOuZy96y3SofuAna0I9lwzBLNAo8P6I0OxUHa+Quv7PfCRoDN9Ezis7hQsql7OXCjsZJgcgu1miwTLbTVZI1avODUBhBrO1rpCBQs1CNWX5gqBBd4uPA7k3iE7bJ7uglbcGAOM0KanCvalspHj80x43pspO1vMetjToPIUTvRSzX3f2pRSViRcQRBzED3Ktp+HIhBctwUwO5sRDfnBMe+K6YOK0OHuXfJrecFngeDH+qLmSN+joC+nWzoPaPlPQhxxXpEBFFW0s1xEjnwLmkBsVsq08eldubexGXassC8zFil6QnAhPqDrSliB3ToUYCaok/qxAei6kqE7+RSK/p+aETPHFgL7oclO3D8eQxff8BLsYgd7mF5c3nezipuf+knwyxWxlYyjanY/2WsDviqU2EYYcg+ieLbD5XVtuBZvhTswI82PQUoNUYHU1b0CmaIfDr0hJq1E2H/A9EsQtdjfhqqyaXBqjXAsSs5UUqwxpmm79J32YrivGRqVv2OPcIV+lxnWwohvysPHCMxLdAwToraS6JlGwU97Ojl/ECE3fuRtu4QwUXcjnV8m/6pblXFLxWtK5albIjpCxV/juwZp1zRjEE910lCWvXQQ6SObT2j1WFqrlIiyv8WT8OVRmmqQMMha/15BbFn0rP0RPh2flypRC8GaKseqFt1Sq6dwz+5LrmmMGmEue8PBSWiVZlm0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH2PR13MB4411.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(52116005)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: auARjjQXAt+5o7pN7SfUsDul6IT+ftMTtdypds0JRYXlfPWFJiVXukwxQX4U5pMXFhJUfLlgUHoIV4LCgE49T3i7ecqivdqJeIXLTnk3dmNETWaF5Mb4rCRt79IVOXnSc2vvEQdSm7KHoWbS6iEoGiYvTEsoxaCBWSzhGSzYVpTkkROc7RzfwIumvqfZi9xwsNteserFaiNoLA2KTwYhMrFINzpK8TtQ8Egl2D9ftsS1H8t7XIg8GP1wi7B5vaxX7F0PWWg1hGQ6b9Amq4XGopVChKD1bMIxFHRaXQybmzJTYRE8LSAcz2/Tya6pFygaQ6Eo8Pl/4URU+xfvhfzyqu9+e9srG6UluZfSshw8vKNbLje+4+e+PfcInEr29utSA/iwC9bqb34liMuLQeN9lWp4RSEUJRvt5xeb0gstvE/jGcjs6ehGGqpiKa8/RPTVTr7UEmsGOoKKIu2ji9PCD61ksknx1Kx6F9RWOdd8RIQIPZ8vccEg/JWg0NOaK1GDbGaxWpl9DjNIR6g3hfUZS2cU99MXSgTgEql+2ALRgt7eVGdLvQIuvBWEN6l8GcxTY/t03fvgHawaCXH6nmcwzJEYoSz8ueGGx0wyUCSh5rgG9C7JSPNafokuTuPNGGRuMoD/1sNkK0XXzippOrNtL2S53DOwt1FQZHCyytC7jAVjM0GLx9HdrM7Ur0r1QDmihRav2P45sTyhGGSFFRUNTfbMG8Bp08XFzawXBZWaQfgZ0XtuqnD34B8wxiUcJ6d2In1JOmFzBoSGq9W31oGk/2pc8qTvUJ+8Ix9re26xIahoG9Tb+3OmZ2zoSWnNrV+THt6mYQEU2vRjyz4I0cGGA/1NfxZfOVGGxUINNoSPrqncKcK+Qd11mY5mGinnLQTMh8B4krzdJCHK/Vlp5elRXJD9gn/GAy09n0H/tqIjx9F0Dz7ueSYt5RJx4d68TGJw7Brqe6B1QbOQhnaqM2e+VY1nk1HP9UhCDWFG3QJqN+KX1FF04t2rB8uadXg2Jr7ZFMxrBiyAGaNLovaIjuqrIV0ib9DDt/bHpQmp3ooM+Wavib/9o6Iyj/HeyigTgqjPnzO1wLY8/9zy6zdHtc80uTLRqbkfzdrmq8KWr/75C8DJ85xPe/NPTxA/9PlpcsYtNMkiAlyVM/DUvhYTgt5psapmx16kyySLLZrvSrh30Uk/ZrFaDzX68syhVH3dclmmBAmoKDsbwuJJy/TLC9D8EL0lRvA/PNDswxM9Ig0ff4Td6e6y0FddfK9/LQpKRZuYNnQ+dXhiQZsd3DRvWVpzqqf/DV5pcQmOaMfAUSzxF5mtXllc0lRMuoyphbO6POiJpB656K0hXZTRLD8Wn4oGYwQocO30+G65NFT3z6e4fiWHeC6M4wwyyj6CHgsZNRe3CnFJnB8/eaqbTlKOkpBkDrisI83U0GyVhylfOHZYsaAXI+GY7Y1jLX8dAgeBTc0/6ov/wlSbxZro2/j1iccZMerEKh3gqaodLs4SHmx4lOPEe6xfXVcCu+1nrHHuyuRBgRPOJfjaikMb753dm2mw9WENcARVodIf8uy+43bBRjZ84eoBl+Rs1Q3xLk1HFdZ5Y047bpbs7840PTtH+3qCwQ== X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6eb23991-adc9-4084-0516-08dc5548c55d X-MS-Exchange-CrossTenant-AuthSource: CH2PR13MB4411.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2024 08:17:01.8202 (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: I4vFSkXcIz4NFbNNe19g2IhD8+2r7tsDAbtT5ZdLGeDwlkbHRN9J01TQ7ctNC/WLEsY93yo/KwaZUMP8TSqaA3xmfkHz3AsNSAOyZhKn/FU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR13MB5678 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 Reviewed-by: Simon Horman --- 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..805ee673113b 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 design. + fw -- diff --git a/include/net/devlink.h b/include/net/devlink.h index 9ac394bdfbe4..2100e62c2c2d 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 board design */ +#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 Fri Apr 5 08:15:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louis Peens X-Patchwork-Id: 13618617 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2121.outbound.protection.outlook.com [40.107.243.121]) (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 CE78D146A66 for ; Fri, 5 Apr 2024 08:17:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.121 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712305028; cv=fail; b=TNBYlHtPZC7Mx7GWTFwiaGf9Hq2rPNL/ktwF0K+xm8SK2katmwJmOJCycPd4spauUS9DH2CkVwvmLwsP+tRcbkEDUMHKa0ndTfDG+aBdD18T4zrOzmPaMUwgm0kneMWl8QGAhy87oLMij27Xn3GYI2F/uEjH+QN8+WbfFhMOWZs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712305028; c=relaxed/simple; bh=J5lRiAM4DHYT6LOGVg+wAMetr1qYO2vAICV+ZbXxed8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=oGuxq7pDZ8NG3FY5mjMgtq78bKSrOH7LNdwuOljMSNEOTdpEk09EXOyvc8Vpy/Wq0T1Pz8lQ8fjJc9YUj74HJ1sXvuv80ZJmfi5h+E5pDxCwbowZ1QpwPwWHKoVaX0w37U5Z+2m9qJqQtCo3aby2Z0w/TV1YUJP6NNFgzikzmW8= 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=buJxws7V; arc=fail smtp.client-ip=40.107.243.121 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="buJxws7V" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ALFStpH8iK+mgWm7UyTCTO7LiRDYi86IDa4TeOh4yyAwIJayvGPvIWQ20l1NhrGUnwIDgTDyR7rIEGRoZS8Cf2gNcFExCsmrH+JAdIDka0U93WcGIu+FnCaJXpKvNfc4/VaHeb7dadfgxDOQd8YA4W2lhyEnR4JwrnhqdNznRN+RKpzLRCOeqVaahV3SiEfT4aLJyNimDiWp9mGy0vbNt2mcfM85kKVKts3+spacXzT7xNZBvtdhFcugqTpCRwD2aC7gfhA2YTJezNNK5iyf+mJtetXJ3nMrJYglVM4boDTkezIr5piSjzjnd3FwuZnxOcELf2nZWpGOGsIBGBs7Pg== 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=q9l8r+G1BzZPnbcvK5oAV3wVtxHPXYyP8fMI8yDwX7o=; b=MllQZ8x2FyvSS/Z26+jHoHgR9aysg7HkFlQw079J/7Tb2zY10odEscjRrwGRC+1ys2KF1mvcuTdNmXY5CfK+gBT5xID8PfTgm37ikbVhaj3D5FcZsz3bC/hFjfH/kbXwR/slSmQwPJNgjyWAcohkC0eKsNvcATNc3VXASYHkOvJn9aFAr2cAeOA7U3ZSUpyryF//QeVHCNkMt+KeWVK9gmU0zppb4/Btu6PI8y3O4s+f9OMxtrWIP8GYd5a/zaehURF0LlvaHyw6Mq4GcrPrLjKJzeb4Fn268sBvbQHf2Z+EbQ/LcgNS8MvSNaFFBzPTSLiHEgeAHUau2T6auAk0mw== 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=q9l8r+G1BzZPnbcvK5oAV3wVtxHPXYyP8fMI8yDwX7o=; b=buJxws7VgynixydUBQJpMKcxP8Qy07orUi4GTvlhu0Y6CwphMfqt1RJYCkegwBnNo8dqVEUGfnPqJn0DiOrdMVqlOv6BTZdDZ0ZKKWZOrVJXnWGKKMJeioldacjWfLQ35dO+PMhozE0YBsDHZY5Vv0VgXwJ4l0AU1LNxZQymJsU= Received: from CH2PR13MB4411.namprd13.prod.outlook.com (2603:10b6:610:6e::12) by SN4PR13MB5678.namprd13.prod.outlook.com (2603:10b6:806:21e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Fri, 5 Apr 2024 08:17:05 +0000 Received: from CH2PR13MB4411.namprd13.prod.outlook.com ([fe80::cd14:b8e:969c:928f]) by CH2PR13MB4411.namprd13.prod.outlook.com ([fe80::cd14:b8e:969c:928f%4]) with mapi id 15.20.7409.042; Fri, 5 Apr 2024 08:17:05 +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 v4 2/4] nfp: update devlink device info output Date: Fri, 5 Apr 2024 10:15:45 +0200 Message-Id: <20240405081547.20676-3-louis.peens@corigine.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240405081547.20676-1-louis.peens@corigine.com> References: <20240405081547.20676-1-louis.peens@corigine.com> X-ClientProxiedBy: JN2P275CA0019.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:3::31) To CH2PR13MB4411.namprd13.prod.outlook.com (2603:10b6:610:6e::12) 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: CH2PR13MB4411:EE_|SN4PR13MB5678:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0b2GnMtGK/Zs6y6PaMOFiKYU/zFW5v+gZZE4QZbtGMBKAv8q73b6+UKhKdSL+wMP8ZJVvNHIVTgoIESu4Uofu1QksKjpzUypOhHOq6eavGVO6ynHPs63Cxm7ZNSwvrwhl9lE7P2WMLquBWUQmAjF+gFP7Bi7NhUtvwGl/saaEb+1DwaYtJiE9l8d39pRYWBv4nFQC1je1V5DM3Aa0meUlLIeJkeOblJx0EGnzhMo6PYhmT+MiZmsnYT4CELHTa+60IRnkhNliXs4ZEQ/ryA79MnEwEoSiG2uV3LiJe1ndnYJCG0higJhu15io7LJDB1Z24Al47MBBidTj3Nbb7udX8P842VmY2T8QZ0Eaoxa3iY23jz2j7sbu4htpBSXD7f5X3zczncvAeJ0EtSoV0njK+yHTp4RtVF1vyU0ZVOhztwHn45wtvrhIH7pz/5M4p+QXsAltVk+QpEEPmmwgxwmhXPQ6WXtCsRjUgfEBKuqS05bF3UmaHYccbKZLtZGlvJenNjyawl89SD5KFZPgWVGXe4kbsJWgz5YgQ8cNfOKLIuQduPYYvMJ1MH9dVySHFg7jxIttcB75awq6gSo+DitTZKwuSDjjY/zbVXok219R0Kndc9D13kemWsx6odTm7/Ui8sZemfpwGeVVYKPw7rMa8s7LAOD4bZR/dDQ8mO8iCcC7JqnxN9mG4q05gPzl2DD71moIpPqnGbqu49GTolu8/jwLMBof+n7ka7tIsS0H6w= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH2PR13MB4411.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(52116005)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6xWAY92OZ1ymGkz/GNsZMWmwCKaPU5ih6Amx0qCGDtYqXaL6pSpAwfoc31OMNreqVFp0CvtmvY1/Tv4iUBdcqDcLdGWhlcre3R8i+CXgifyKLc8r9vbG6wRIWPrNh9X2l6osrSU7Yp/TOFB6aj9bSHkG5ISPA/Xt1gyim+G6M5QffAGJoYjyU57dcXo4x67MPd5ROErNc1ZeNFJYRC+JzCU1EZA+PrYZ3iUu4lOXbX8VBbzQyLM568i0/yFfJtRdoeVvypS2qKW3Hn4+gwzZI7gkaMdfxdy2MDA+UIr57VQhavNgq1f4KzXgZuMQ2Bq4bgk5abeQvo6JZEq4vwECvEArGWANhfebFvQHYHBUDpcyLWpcEV8I4vruF65GWKIfOdq+zdopgB7EGCRN983hRHhcFO90WjOdB4bpwU4CmCsc38ipw++goQjWreXHMJLVj7qVQloF2jKCO5YK+qkHmJR5AhigAdt4edwLEydnkPgRFgPnhz2du0OPxdxsIFaCHG/Acrxtu6z8WtR+hrbdxbS880AGRi2AQWt8PdHUrUthbMq8GilxbOTyNVvHRyKpjzrlVG5QUzh+EkrD5cKhzMmjp8/Q805gut8XmPCB+lXRgooU8Lr8c9CDBQAnY6R6oxNbZytjruAAQ0sNVttyNTOlN8RlRkgGLygtaJN6qf4aivloASftLLbUSJOy7q0INJSREEyJXo7RP0K8T3/y2z++EVsCnMTopsO0/js/P4Jw+OfVFBpRCwKaNSO2XL9PAb0925N4eCocesAJ3C4ZtYL0VpIQna9zHLW8JFjpdJmJZ1YY4rWSAtgoaJpDgSqoAuoTmKt79i/bioHiJT6tOVoXA+WUYHtyrh2Zkijhtx/wMpaP5cguzeXZ/vpeZbPxysa/TS0w24NWke13hdw094jaXpjOfSfgbv7MPd2Ueajgg7HiBRSBnwOjCuxX+Q6uV+c4OpDeZ6cX2dNGfAkDnUFzMEvBhB7arP1rx4Fz+R6EWiW1FEsDvV26Tf1G7YvQSX9jqK2QdqtVp3rRAsfhja4XNhe0uat/9/ST4+SjGVAVN3hPKc7K1o1eENu1cPIxEmIxYdD5Au9pi0YOhnaGcpIYoaryDyU9Qbyc4/v1i8X0EGnoqZzTCt5Sz1/6fm/H/RTgUjrMxyyx6Hs+jT61DZmiOUH0to1SRoECccM15Oi/eO32FpJJFHTeJPTu4qY9OUGf4chjahaI37qN+mr9zokysi6bypQgNCjOa9qU3BII5NHf5SjMQyB3RAk/rcnQJjmRL0+gx0h61blM0Jbt48/b9ppSTTn74NZ5Lq0bt7Y4kfqZgWqpo6dlB5JEnvQ06R3kTSb+YiQiwUpBxwW4bW/HmKFeKpWPDF3i6BvvrWeWJ+5DNeKWPUnE5gw3fG6W9MeHZIvrsDhAHuUc5rytBv4lN1s+DbPoLzSEwCNSptiUenLHh1Zu5wXOffpKzby0484jCPfsogfDeKc3Y7qMlNo6bL3/zcNGosMseErA5g/MT+F2W6HT13V4aLMkHaJqaaRiVpqyX4ASKHA/1WgombgzmIVeejmVcOPEEhnsb85xCPRny+tXTFPzeeuhdqImZAtLXFGvz0pYSL00FfE2Xg== X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90ffaae5-9c8f-4408-a0c7-08dc5548c740 X-MS-Exchange-CrossTenant-AuthSource: CH2PR13MB4411.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2024 08:17:04.9548 (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: Bmdon2wtSr17HwGqslCIEFynRjb9z26olVd0gWvN1WSJEBV9Qm5y0iW24VXqoQGCPL/oYPVrIGzulh4+BLDZzPyeb7OWByZhI01xjJv5YeE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR13MB5678 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: Simon Horman --- 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..a9bed03bf176 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 design * - ``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 From patchwork Fri Apr 5 08:15:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louis Peens X-Patchwork-Id: 13618618 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2121.outbound.protection.outlook.com [40.107.243.121]) (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 25EAD146A81 for ; Fri, 5 Apr 2024 08:17:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.121 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712305030; cv=fail; b=jgXXqLpi6ks731tlKtuj7QEG8Hkb2DUoVQ+uHsQ0zZFAIc5SpIM4OBRZ6pO3nkgiwMS50zpAZamSrMPYz26e2hnj4DBtA8OluTiK0CM5GlHoSyCz08P7/vJqtRaQxA/2+eaRXzgwkl+biWRu47gOAhXWrqeo1RTwmHkOBKvpGj4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712305030; c=relaxed/simple; bh=agzWp3VOVq1Oz/7kzQaEoLFDretFiqXdBYdFnynV63k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=GTBtXoD+z3j6dqSdEumLxZ47fhkSRTNbLl1QmUpVLxDcdSbBy3UiWiEQYzRXEGh+yWa8O1Omr5ggkJS9m3KE4+DcL1zBlxii27gws52S9MOX58ufT0O0LEPsIr5dc1MtbVzB29L0e27m05pMdNphCfbq54qRKeAO3g41ZksNDWg= 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=J5y3FARU; arc=fail smtp.client-ip=40.107.243.121 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="J5y3FARU" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EJvPKpGDNL6tKtWL4nfmhN5VRN58kt6ahSS9UZlGQ7NQDmN+/Ka8mXR8S2mrdnVDlN3aVcji3Hsr0jcSZzZklc3mz3GklI3RgICipEuCg4FwIg9ZYiWVAoxdRjwY8pG3pL1w4yMfj5+7jqlVqfNOb9o8pFR562CJu0Gj1LWJtHzhFix4NvyajhG4DcfZwq8eUNBON4zzvsD6XkESKuI6mQeV4f1bDoURxGQvpOej+58rfoowJ3nVGIBJog1Y0fUwVsApEbQFPxQS5QgQ3H43JO+XYDMkiDDMSFwuuCAfbCH3F+EdhQrQCzmYtdelMl5Zl7gCMlDYoBqwAoBNJhtx5g== 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=hEM9Ntv15JITqGwGVscksRiejSHFDqXaHiW8xgN6DNE=; b=JdwkPXUuubAuSa0ySMfiTc6CufsicLIGcUgSRZaUwMkjWjNydJb0FraiL1jBOXrDVeQyk1ze553k+EB51El2UJb3svvRe4RKx0hmsxeIZUKSpw3BGq+evgN5HXkQsqGSuC0FSiDMOtoLXAGvTaXyBjdBqYj/kwtL8qQaTQUiLpEEM1PVgLhD4kBk9SzXZa3lcJrQWfXFaE5yKIudY8ssOLJd17aDVqAC0YBTtjAxEFsTCosyw8iuRa0ZFL3w8b1J2lGRsibIihGgho3wjly+CzbLS58iE320EJoYYhiRCIHu/MD1J9Rl4p1TH9tfAD5VF3t4im12vKhbJ1C710vfyg== 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=hEM9Ntv15JITqGwGVscksRiejSHFDqXaHiW8xgN6DNE=; b=J5y3FARUpCrEkffCKfWFRnSzaOlRuk5nCeJg+2L1t2FGfl7ZTtNowciSJx9wHthtM1Q49dS3o81Jw4TfrK1luJn9OBGXHFovmfi/iFmCHC8/N44TJ9FSdUsXLHe45cwLiNcHP//J2yOJK8YpQsMgg4zGt9mPvXrtdsYcrdNnFIA= Received: from CH2PR13MB4411.namprd13.prod.outlook.com (2603:10b6:610:6e::12) by SN4PR13MB5678.namprd13.prod.outlook.com (2603:10b6:806:21e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Fri, 5 Apr 2024 08:17:08 +0000 Received: from CH2PR13MB4411.namprd13.prod.outlook.com ([fe80::cd14:b8e:969c:928f]) by CH2PR13MB4411.namprd13.prod.outlook.com ([fe80::cd14:b8e:969c:928f%4]) with mapi id 15.20.7409.042; Fri, 5 Apr 2024 08:17:07 +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 v4 3/4] dim: introduce a specific dim profile for better latency Date: Fri, 5 Apr 2024 10:15:46 +0200 Message-Id: <20240405081547.20676-4-louis.peens@corigine.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240405081547.20676-1-louis.peens@corigine.com> References: <20240405081547.20676-1-louis.peens@corigine.com> X-ClientProxiedBy: JN2P275CA0019.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:3::31) To CH2PR13MB4411.namprd13.prod.outlook.com (2603:10b6:610:6e::12) 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: CH2PR13MB4411:EE_|SN4PR13MB5678:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 23kCdEU78b2RPmztDvFuKkgPFS3QH9He5CF/YGvl2VAquBOJy7HSc6k9DHP88OGaZHsqlVAoisDbg2+yGGGjOivWve+vIt4zuFJQkqMKqZgdOTDmSa46ecGfHankrhW0TUwhEQKfOBOYtUJcNS9F1RW7Q2Iie+I3sSN4RTZiwK5SESAx0KxW49q+C2nrrB/ebTyEAPWMu5ubO3G+vvLR6LJ2trRbU9CO0IErQwrkkKWzb9mxqDmBRHK1VaDktOr6yiNrKOK+i6LrLL2iusuAKYJ9Gl9zmVgfufvJEccI+Wxlf1VOhRROam0SeoJpRAGcrd9wrZea7PnrOa4yHT7FKLi/AF27Sfq7Uy/d5LR9Lm15KRTbwf5LOCjNAR9qv3y9a7WtxS3ZlKSKf9rn1tMqImxLzi4um9nmY5wtNRPl6cv7BBv0hb/+nOkljtaeoKlTxlsuyvetZjb4qoq0exTLFj5T24VHqbRId6LaAZG6fzrdhygfnN4Q4xLNOfKMS4eiIRh/iq31e5F7FruUHkgoBrT/HGuqVjjL0MxySRx5veo38NpLLkFdspwypz+ZIy8xGzBIy4Nofy8wU5QE3/b0+FZKpgNd2xONYEJLzU3dsLXMJ12kIzclE/8246yhYCupbe2Y8pfkiIf0yZagTagkQBZwqv5lwWP+HRloJRD4ybgPovFX2419BebvI48ZeWUJl/kO3FYMfKMeOZPxa9/AMg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH2PR13MB4411.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(52116005)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6L5lAV80kgEGQtF7Gsp8SSy/mRhja4E3sAGd/1UINW+psz2SJl2+pwXT2CSFqDNZYhTVITqPXbMWlOKhBwq3qOoP4gzTU16OL3X7B7e3oTlUd5C0zHp0nM64ukXhI4gN9Cs9JV60LWj2DJ/nD3HSg/DU7VfpWqgIhtCgOZ7p6sfQvN3WQxeHJc68FuQ3qVsMFBZZfPn7QyZhixiesmag/8klwMXYXobAnvVwYuj6Qrcn+gcgP62pLyG83Ph4vWnG33WdsQaV4CDNclnJqB/5NbvrZI03v01ngHwcPXRDNiDibmzJD0gyFCGv4X+2Jfsn1EvZjayFMkpsdO+S87UgoYkaJWp1GRIlo8BPvCbCXivK7Zk5pYo10e/H24Kr9xuoXw2mCrCy+poxqUXW+MKck+Sn6x8FY0lIQQmSTGxs/JiNR6d2fw+T1BQznvIKQQHiR1/5F5UDIlTFNXsxR+vWGQftrdUeXUX5wr76gwNLUHQgNDLNvauAQJE972lWIEe4BEi4MOSMQNgeyy+NGYDB+uWWXzZ/CqnfSm150HbpfMp7MYNA8RyLU+2f5wfVtHkUfw1nD6++dWmxY7knai2RjePmnnK4WpfyRuGywMJEuT6SKg5zWAzZAMBvHoXDLiWhQ8+5INOc9nchB4Gc/sJriyzMD3hXOIk2fDTpjf49RhxQSfOIR/w60nqjgTpDXFpre3k14HFad+qH9pa6UdRryuJ5SvIxsXrKSo/AE7iHvLgWpCHbSFgy8ns3Qlv7DqfEplConGDWucfD65cKG6Dpdui70C5LRPgUSl6AWOX+xfmkHDDXWbFRotIkfIcCfchSTzBzbjSQA9U0Ohcvj4LdYgw/x5F7mO8vR5h57pNVUGZjP6Uq6aqrS5KfH3uNDkS29NNHRz2TlkWGX9tST+PmDxfBovXOXjl0NR1Qigg8WPQZ1+Rc2SvzMyzTYiLWy1ctxKYlKWUJNZINvNdKrr+CzHzk9F8m5FUlkgldvS2X6vkuNa9stI1yWZY03Dy6hw/llYUn5WliPS/cOdlBxamlW2J4kInLRseKgnQLDltwKdwYWpoukpeLhRWK2BMqVvs0SvA9eh+YYCfFlporRLNMGKznuUB/FP0DzNyaW5X+dG8FkX4CD8Zi4WrdDbPBMqq3LqTKF2xarrQDwZEH7FylCoKmWQo4gGmqxbdoGKpe4vmpSzzhlYXSl33q02/31/I7WgpKSbuRUxf4R1A3S8Y0dXizoxBG0KnqBXKpnRhkLY7DUoQsOVUYL7l6lOZuuyw74pcVk0CpUvTHJEhsrACV9z2UUoqzjoBLBJDW0WAYHWCP1bws0N+rQY5k2DXNTb5byw+JwaejuUVNDn2LNkaDsG5Xo8mOv62HfxvQ9x67z2fZjamzLsoKDuUiwOHYc98KimVEnO4OhDnV9sDYGCsffo0N2DTxS09Xr/ps9UYZGiTiPmP3BztqM1nmppGDKDCfdWalsBiD/54xOsWle4SQ55BlaKkDPhvoay873sISfRowwrZzT4D+pWO2m3jEX0iCTl58agzh3Nxl04F/YeVUXfJrqD84GdH9fhtgtF++l6uO/yztk/gJm81TZiWHE3Yv3kyLfETJtzrutyN/+4M2Uw== X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4a838a43-253d-4909-6e40-08dc5548c8fb X-MS-Exchange-CrossTenant-AuthSource: CH2PR13MB4411.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2024 08:17:07.9092 (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: b2dPQyqa3Xpg8YT2LWHtaC+USZ69/OHZhtXus6Ga3jKMOdb/NgGI+zFn2vuS8BtCZAVKoIWk314dsUozNuaRPjxBGTYSYEX3XAZJyF3SZ4M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR13MB5678 X-Patchwork-Delegate: kuba@kernel.org From: Fei Qin The current profile is not well-adaptive to NFP NICs in terms of latency, so introduce a specific profile for better latency. Signed-off-by: Fei Qin Signed-off-by: Louis Peens Reviewed-by: Simon Horman --- include/linux/dim.h | 2 ++ lib/dim/net_dim.c | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/include/linux/dim.h b/include/linux/dim.h index f343bc9aa2ec..edd6d7bceb28 100644 --- a/include/linux/dim.h +++ b/include/linux/dim.h @@ -119,11 +119,13 @@ struct dim { * * @DIM_CQ_PERIOD_MODE_START_FROM_EQE: Start counting from EQE * @DIM_CQ_PERIOD_MODE_START_FROM_CQE: Start counting from CQE (implies timer reset) + * @DIM_CQ_PERIOD_MODE_SPECIFIC_0: Specific mode to improve latency * @DIM_CQ_PERIOD_NUM_MODES: Number of modes */ enum dim_cq_period_mode { DIM_CQ_PERIOD_MODE_START_FROM_EQE = 0x0, DIM_CQ_PERIOD_MODE_START_FROM_CQE = 0x1, + DIM_CQ_PERIOD_MODE_SPECIFIC_0 = 0x2, DIM_CQ_PERIOD_NUM_MODES }; diff --git a/lib/dim/net_dim.c b/lib/dim/net_dim.c index 4e32f7aaac86..2b5dccb6242c 100644 --- a/lib/dim/net_dim.c +++ b/lib/dim/net_dim.c @@ -33,6 +33,14 @@ {.usec = 64, .pkts = 64,} \ } +#define NET_DIM_RX_SPECIFIC_0_PROFILES { \ + {.usec = 0, .pkts = 1,}, \ + {.usec = 4, .pkts = 32,}, \ + {.usec = 64, .pkts = 64,}, \ + {.usec = 128, .pkts = 256,}, \ + {.usec = 256, .pkts = 256,} \ +} + #define NET_DIM_TX_EQE_PROFILES { \ {.usec = 1, .pkts = NET_DIM_DEFAULT_TX_CQ_PKTS_FROM_EQE,}, \ {.usec = 8, .pkts = NET_DIM_DEFAULT_TX_CQ_PKTS_FROM_EQE,}, \ @@ -49,16 +57,26 @@ {.usec = 64, .pkts = 32,} \ } +#define NET_DIM_TX_SPECIFIC_0_PROFILES { \ + {.usec = 0, .pkts = 1,}, \ + {.usec = 4, .pkts = 16,}, \ + {.usec = 32, .pkts = 64,}, \ + {.usec = 64, .pkts = 128,}, \ + {.usec = 128, .pkts = 128,} \ +} + static const struct dim_cq_moder rx_profile[DIM_CQ_PERIOD_NUM_MODES][NET_DIM_PARAMS_NUM_PROFILES] = { NET_DIM_RX_EQE_PROFILES, NET_DIM_RX_CQE_PROFILES, + NET_DIM_RX_SPECIFIC_0_PROFILES, }; static const struct dim_cq_moder tx_profile[DIM_CQ_PERIOD_NUM_MODES][NET_DIM_PARAMS_NUM_PROFILES] = { NET_DIM_TX_EQE_PROFILES, NET_DIM_TX_CQE_PROFILES, + NET_DIM_TX_SPECIFIC_0_PROFILES, }; struct dim_cq_moder From patchwork Fri Apr 5 08:15:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louis Peens X-Patchwork-Id: 13618619 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2101.outbound.protection.outlook.com [40.107.93.101]) (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 385E7145B15 for ; Fri, 5 Apr 2024 08:17:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.101 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712305034; cv=fail; b=GLQjz4Y+uVdCwbLmIk8R2n4fPUBOwz4Woj+XfhdYaLTaZzttpXUM4EgA2sZcBVrQkEbXCj/UKErH4Bw5m/wjf91uEGSMunWyh7HkMPV1QR/1wBa9yvSUQEEkk9rtcHF7t8Kd+xWJ7Cvf9pNxbLMqknnNYft0ELIWtlAF2R8YCOM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712305034; c=relaxed/simple; bh=b+5yacpfrP6rKeFbIaZjklDkRK4FfU/QXr78SHgXO0o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=VvEL3hFiEnDR6Dehnro3cTL02BnFuaEQe34672iwLY9jEECao2X8a8qWi8jXzu18lJIAnbX5gQ81N7NtSeBPuURrn6Re95fgxC/tZdFnK04K+68/nxFlu2q+/ru7bmM0ICYV84FdUyl/zZZtXr3E1qZy/ObcfMfbRn24Y86lhoU= 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=p34noSm3; arc=fail smtp.client-ip=40.107.93.101 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="p34noSm3" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XkxZOo+n7E84m6S9bgVC3mG67NDzrsdZmfVwRhvD06kJsifdgcYAjdbaodRnYnTJLCjv7gyoPFbfDJHNQYetkpu8MrtL2+IPOlRiSyihiaVTlyDvmimbUkiOAC4Q8SprGmXnO8dzWtFk5J+vRcUAEUnh3LuQh1nv8HPi5XYXFj9sDVvbrXQ+Ua1cd/2rtk0TkqUzoKwh0fBHLq4F9CsJqs219nKUsIUX5wnmBqOuzP/hRcrKLIRx0ZVp6vmDpVtHU+5xhN/I4mDouR7uxe2VtOa77k5AEsLVI9/f6SQhIj+TYR6zmfnf9MA7lDSp/lP/9+zbvMaQlyJmTPytH0ZGuA== 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=AHUvb+RyJzN91AarShGLkXOSDuC04m8MpbCJ+S/Bgw4=; b=lCL0n7iNGC+Oy5iBCnPw+VSeMCdboODFbPiFmlUAVBpqHDV8+R94v6mY18qiq//cNJj+YPE0202IAttkWRvsrpRzO8hHnupRdRYwGW//trukAKAY2a8d6nw06Nz54u7qV9nAYRxZ5EGajkkSMNC7pZK3gv4K8lktddD1JD6Xy/lXT5I3w5Snndrt/Tv493gU6ghdUCEhQ17jsAnN2COrsQIofPuCRMPtw9wwcmb7Q3/q5eduYvrC/BgUIIqbOjPs8HAEy3G0vJSDDBBgswT2AehIcZERZ2EFLwQxAGWCL5TI435Vpud3moS96ASOJLKE8cxZMFBCkEiQ9jWIKfM8lA== 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=AHUvb+RyJzN91AarShGLkXOSDuC04m8MpbCJ+S/Bgw4=; b=p34noSm3x7jSb7xoQJPnx4iiKcP2oKXNJMqdDxcrvnDWFc9YXwwwT6SWdYQQ7kjCu6eTZyVESESCYa6tKNfMt94dp2+m+PekmxlcGfxbJtwKxwTJj/+mdPEKG/sISDfOz/20JfrfqDRCJYZx9lji4kQ5QQii3/Ta4dBwV+JuNkE= Received: from CH2PR13MB4411.namprd13.prod.outlook.com (2603:10b6:610:6e::12) by SN4PR13MB5678.namprd13.prod.outlook.com (2603:10b6:806:21e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Fri, 5 Apr 2024 08:17:11 +0000 Received: from CH2PR13MB4411.namprd13.prod.outlook.com ([fe80::cd14:b8e:969c:928f]) by CH2PR13MB4411.namprd13.prod.outlook.com ([fe80::cd14:b8e:969c:928f%4]) with mapi id 15.20.7409.042; Fri, 5 Apr 2024 08:17:11 +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 v4 4/4] nfp: use new dim profiles for better latency Date: Fri, 5 Apr 2024 10:15:47 +0200 Message-Id: <20240405081547.20676-5-louis.peens@corigine.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240405081547.20676-1-louis.peens@corigine.com> References: <20240405081547.20676-1-louis.peens@corigine.com> X-ClientProxiedBy: JN2P275CA0019.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:3::31) To CH2PR13MB4411.namprd13.prod.outlook.com (2603:10b6:610:6e::12) 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: CH2PR13MB4411:EE_|SN4PR13MB5678:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5jKfYCz37WlHsHGI+xbKxwFytV8J7+KhQ5hFGV0fqIwGSBZ9p+zGFMyiPLfC0VmlXBimne+eW6A0RRjDUkZo81+368yGi8opShL0lZ/BzxJ2aEioYXrR6QmFlFK2N70g8SRJE6AN1xHlzmHAJ1dS59zzgJt8cgMEU6qsIyeRgH83hDVQ607DaWiH+EVGk8DBrpA79fjz1hFJVo5U64kWUCQj9V3fefCO5enbBR5PgEiiRph7kLJFXQTW/3cw+nOLTs+LuJygy+jFWcKIkoTWnkb/Q/sts90gtj3wBiMcEGvA6rhT7oX5e5wyjXfXjp8bIA70tziOdbr+1ZX/Y9IbnG18pOiGkx6UU8EqrgDumfLEs0eCoPYrYRNIZh9dWdZoU8bSGb5NBVnos6yMhnlb97j6ZpgvB/SibYlidPcW7+8ecXbu7OPXW3G0M3RQLG8wUy5bXmpsFLyM/hC4VE06HCf8oR1rh+pfMMyAUVbAgKAGE+xqTzQ/YQZ4ebzVQZnCgNfcw24p0nsMD/IKY66CYVFAZyNdun4Lw52XOBvjMUuVtcHrAfyuVw8gWn+Q7ZsxCvQ5azy9dOwLefQuUeyhVl7z0kVd95z0dt9+dXStdoEoBzELIsohgpVaaAJStDJnoFoDlRc9nxtx6j40Moat8vc6knWXzgk0zcsQdrQQWfbs3zzeX9BoQF1D8ntLJChi4OZOu4AVZJ2pTZZyPwszib64oBiuOGPe+71+Oc8+HGQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH2PR13MB4411.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(52116005)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: z4s8PAxJVaQFy2MGw4Dh8wG2DDaXxwp4OAMG5rG1KFUiUuoRjeZBlPe8DyZILV03Pm8EeRP8mRm5VhxkMPzehXnZOCMNGilOrwEciwukj79ie4xThgBi6+gp0VUnEk0l5imuiOJqjJSVHBzQPpxM43vhnRO4n0GpM4w9BIVWkhVVaOmvqqwdrpdrIhm+N6GrmGoyLSGJ7mqIHjYylT5rfIH7z90qlCwdYMLuQzeQgJVVHpVsjX2yFaTGKBKjJ/znyp8P+eYO5IGqKCg8NWU+ztUK+YgdsCIvWMkP3QY9rbL+Bu48xFco+4VoDkx1Kwl8Dv56QPIxUCRQAcNWJWDIpeXglQ1S11/rb7mS4wqHRSlxsH3RbKDGK4e0wUIJVFALNnrLOYnFRfBYoCl8F5j7CfnksJoX4eKvDtMivcip00WZ2Vgv+zfyRm07GS+aLssrzQ7oTgCKWAQkHGH+t95QbqlFErDCXAH+MScyQcO9/dsH4wOIgYySeuXkviU3Zz8Ko9gv6wskp1eVo59xYXb7ZJjg2xbEkfIfQdSNYSOW7hFrKrl9V72GebbaTp3QfILVxCsH7ih3PTfaA9c12lN844rN18EV+9mxxp1ORg/UTUQxe5brAykANiwz30XBqKTCvmMN1/N3HKQm5BpaLY6/vWxXga8yv9m+2hvSeSZVzoZuk6g4rlMSPhUpIKyqdZUD7KHHtHteC5rlaHZPl6LgG/o206SD5ckl8k9JaeA0YAHAIIl0ITIlYLEVWjcUWDBVlWGCYPKuHnXdMR49kRDOnFVS06S4TmirE57fchRXYYZhdIoVxBTONvsgTuHAEoPKoGC6gkNQMxg8ti/MM+Is9zpzpD/WCQmq5TbL7evMNw97n8I+oRA9Q8gsiZQb6wPnTfmIgMstl6pf5j9q8dXl4jEHqvJpGDy6xea5Wb2jyZTDE9GMjGKQ0Lkx9k5QeJlOzbzdxlZyJTwZAfA/PSzNlbXDrzaJ20kAMG1Wa/w/5UXFmGMGIJuDroFSHYVNvWZaiFgYSBSySdLvCzO4zoiGmo4gSUQvU6dBnEgDRWxkYo7vTeuCQNCXfTcPj14PqFTxTcRE41MxLZH9mda9Pk332dE0i0nGyeqiuqnM27pmJt5xFaDLsSBaGUt7cVfs527gLSjAp4ln2kT+ErqIg1W+vIC5GSSJ0eq9rqwIbANng1gd+tAQKou/a/eleCH/Rnw4vuWntZAXr5BfZq6CjbuG0cAmEC6U5RSRvN+4rwfKghYPW7cEgM9/PZtq+dXZkXIHqMQTlelZEQKQJe0zd9h9Y9vPAdXdpUxox10rGesR8+DD+eie0GCWRdnOFGAqUeOPUP+XcPldYIpq+beXSz0uoprVZQ7UwkVBeHpibpa+4fceRRs0RxKcSGnm3v5O4R0JqjmH01tj47dlwOhChxVTgasL9zioIrRQ1XIa9FQ+f836rGyeVlLJ7EEgU7Lh3XOkuVIes9szQzqGBSBwBn9+jMiOocUZMlpjHfn+D0ledoJX54B1XsHgC7Qll4Q1VPazhDBqCvHjMx1B8Qfzpi4p9trpmM+bW5ZrV8LlEpsIZl0AoxkACAuX+u+fh23LErc3+CWIssVflQeF7KSsquDocQ== X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: ce0856b4-29f5-4397-1655-08dc5548cabb X-MS-Exchange-CrossTenant-AuthSource: CH2PR13MB4411.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2024 08:17:11.1083 (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: m3b3tifQRQDKYhqP7Uxbyf7nFesa8qH9mvBlNzTq5s5TKcsZLMVJoSglRGs3QlEyDSP1jxYful3oJgWV6PEFuMjzGca3I+9MunnYIIdN1gk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR13MB5678 X-Patchwork-Delegate: kuba@kernel.org From: Fei Qin Latency comparison between EQE profiles and SPECIFIC_0 profiles for 5 different runs: Latency (us) EQE profiles | 132.85 136.32 131.31 131.37 133.51 SPECIFIC_0 profiles | 92.09 92.16 95.58 98.26 89.79 Signed-off-by: Fei Qin Signed-off-by: Louis Peens Reviewed-by: Simon Horman --- drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c index 997cc4fcffdb..4c2dac1e1be4 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c @@ -1232,12 +1232,12 @@ static void nfp_net_open_stack(struct nfp_net *nn) if (r_vec->rx_ring) { INIT_WORK(&r_vec->rx_dim.work, nfp_net_rx_dim_work); - r_vec->rx_dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; + r_vec->rx_dim.mode = DIM_CQ_PERIOD_MODE_SPECIFIC_0; } if (r_vec->tx_ring) { INIT_WORK(&r_vec->tx_dim.work, nfp_net_tx_dim_work); - r_vec->tx_dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; + r_vec->tx_dim.mode = DIM_CQ_PERIOD_MODE_SPECIFIC_0; } napi_enable(&r_vec->napi);