Message ID | 20250126115635.801935-9-danieller@nvidia.com (mailing list archive) |
---|---|
State | New |
Delegated to: | Michal Kubecek |
Headers | show
Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2049.outbound.protection.outlook.com [40.107.94.49]) (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 2F9C1156C74 for <netdev@vger.kernel.org>; Sun, 26 Jan 2025 11:57:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.94.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737892649; cv=fail; b=NwRxs5QxxrHfabAah2L2xLZv5Hy/MzfNtZaX3SVT5fyG3ASWDrfb1orXt2C7sNGvecrVHx5APqrmtKbCWRRQsWkSfDSqZ8X+Mk7tH5Y46o/LPVexGjOzdBNaMwiCZQQA+otkHFqzUvGbLc6mziVaYpyDhzqZGSUn+G/9PfM4aE0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737892649; c=relaxed/simple; bh=+s27ckSxv5R4b5IXEyTeaLoK8A+EmA/6gnpXd08gpkg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BKbDJFRUk37S2lvj3r1V/l2v9XcC7r+a60iv+s7o8VlYPIBvnwF02oCfp9qYWiUqIc193m2Da+7UXSV6dn7RNeZNScBFmgpUv8xFGWK6G3C5WPkYCjF6PrVLm2MQ0GzT3oJtNQjGp8iMbl2qPxz66oZ2UL9TYEjS9ZD2lekuOcY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=Cs4NChS5; arc=fail smtp.client-ip=40.107.94.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="Cs4NChS5" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wB7OJVMjlcejBj/93NNyn7zyF2VTCjsl/FzaTHNECMHlHrDlccPA7B0PYpE3VNIRIgWf4jddk5bjrft2AS2vPCv8aEz71w+ku3B7ZhF6vSxbHcwpmAMKr3B0eM+ZgenvHe9OvSAczLgAkBi3hrJQrwalqtS80KmSskCArH34m9kgWC88r93GY7BnOVszVhwc9Nit04UbMGHR+JhNdf5q/SgSl5rn0Cuw8qIMb6jUkeaCApRW/lclOaBKknn1YaNZTL4C2IhDOBNoFEhOwSyrjlvvYR5wkXIxk2Pk+f8vfbZ6Y2L+JWlR295m2RyO5j/6sCkKQuFVG5GM47PDTrFYTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=sKngEn9AaMNgYYCf05Vro7CLiYOiYY1CNnKdPACSSxc=; b=jx0RXnLEIMexnTRkmTuIhr1aKri/qcxmopwYM9/xn7oke9XwaRmpMLoahgoQ/rRr3TAoRHt8chkO98fkMy09/JRxTO9syZOEZb92x1rG43T0SQeIJ3eD8puwsN3iKabgGPfn145fUfjZ09TcdjDl+dP/0Dc0+8OBakUQ3UW2zXe0kFU1Onje+Q7NXOh+WOk0pzc4eiqFk2+WKBhc8PBN0d0RhOTHG8bX455A9vVIbnhOcLmdxna8AufZ4a4VVVAwGTn097QYjFh+hBxCMJ0WWL6Iz8WXxJgMjC/Ff+LPPyRtlUL9KalE7Lb+p9UjrJjFW5NG50jqYKt3FS62+ipi4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sKngEn9AaMNgYYCf05Vro7CLiYOiYY1CNnKdPACSSxc=; b=Cs4NChS5VxxveS0ZPlGL/GKvP1ZE5wJ+cE6F89a9bUHX3JTpxpBxGxSHg5Z0A77voBDpQ+gal3cY1u5FP4nltHyk9su9MQj9/7/M15z/TT1S263oOS8I1s4D1aAe6DrD/5kBjN85D17DvOphVpnstY9ysEtnetzWzhzMlKuR0VcuEqp8wPR+ch5HBSQvNfs6HIVnRIHLL+PEvMXhRedIDWwNQFKzYGS860wfY/pJZE0tpn3AVu2TMC4jcKC1g1/QK1x2Im62Vmpe8S7LGgjfXFKJ8rZfpmPJlH0QCAe41TDBZKX0yqv/dsplhDoK4xcd+09jfQwP1Gcdf3FhKe0AOA== Received: from PH7PR17CA0063.namprd17.prod.outlook.com (2603:10b6:510:325::27) by CYYPR12MB8750.namprd12.prod.outlook.com (2603:10b6:930:be::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.20; Sun, 26 Jan 2025 11:57:24 +0000 Received: from CY4PEPF0000E9D1.namprd03.prod.outlook.com (2603:10b6:510:325:cafe::c2) by PH7PR17CA0063.outlook.office365.com (2603:10b6:510:325::27) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8377.22 via Frontend Transport; Sun, 26 Jan 2025 11:57:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CY4PEPF0000E9D1.mail.protection.outlook.com (10.167.241.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.8 via Frontend Transport; Sun, 26 Jan 2025 11:57:23 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 26 Jan 2025 03:57:09 -0800 Received: from dev-r-vrt-155.mtr.labs.mlnx (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 26 Jan 2025 03:57:07 -0800 From: Danielle Ratson <danieller@nvidia.com> To: <netdev@vger.kernel.org> CC: <mkubecek@suse.cz>, <matt@traverse.com.au>, <daniel.zahka@gmail.com>, <amcohen@nvidia.com>, <nbu-mlxsw@exchange.nvidia.com>, Danielle Ratson <danieller@nvidia.com> Subject: [PATCH ethtool-next 08/14] cmis: Enable JSON output support in CMIS modules Date: Sun, 26 Jan 2025 13:56:29 +0200 Message-ID: <20250126115635.801935-9-danieller@nvidia.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20250126115635.801935-1-danieller@nvidia.com> References: <20250126115635.801935-1-danieller@nvidia.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: <netdev.vger.kernel.org> List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D1:EE_|CYYPR12MB8750:EE_ X-MS-Office365-Filtering-Correlation-Id: a4f6186b-44b7-4525-a833-08dd3e0098c0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: tc/3NNSBA4nXR8bxpZCQs1IxrQH91sOmw0dBbsf982FY8tZBBqFBtP9xjFfFmIE1T20Fj8WAwJmKnQZygcDYMLwaskdiYCQT2cpJfM9OreMgFtO+8AWkt9oJy6eAUOjLK25M04MXazXfWTZJgPnPlSVZNOu4tEt9tMFBLhIC3e8i6F0K+NPXeHIlxcVYTVRcIGDMkaydyJv7BKzUziqHza9m8yN2NIgAn/OZm6rDycA93C4dfGQxw088hkGhaoeBg42NxQgqVHHcitSTcyVKIN3wcD62aiDkpLfmn88ulzKkXeX0FCHeYTNz1wwauBlvBKwmJQfAi6fWNep67OTU6YB+Dkhfz8mE7TNAXrpB09C+BnGkNGpxgFXobmalS2VZoMd1Wegszqvs1oBc0pyfFqTKWiiG1RYim3BflZZofEmKyKDY6gKUeVCgpHWN2db4ZGFKqla/BZLkuLGtFFJYM6qB/Jb9v9cPh5RTAPyOCIxzm69AzsULZ3UIjvl24jwJszSjAzM3s/EhUdh0vZFzJ7Z9QJsPbLbd5HEIN6Y7K/u3yhExQr0hXSfC5GBCB3z1V9KYmgwyc+X5E3m8pffUCYnUtWv6tMCpCBgxEaFvowvB+2Tv7Ih25srWoQHml3tqHUZtRgmqvxyz/3Fx/Su68U+3BZcdT/oTkw4L4zbSV6Qh8zabPp+36fGz5XVNTwz1IjFTp8OIuE5cImvekfdZjB+QyNFY/TXa9MFY+GA1Kx0fc2Dvquaun0JaeD1cXiP4HC0qIQV9aRrfgZ5xPqe0WuDB4NOkbOyo8Sn9vQaxbTN1n7DqY5mVpWIo8H5jjo3acXr9I4zNesfp9ab0pv9GC4AY2AhWH6+O0ljFXv/llzhmM12Hd+gUowmTnjB+739kRzBMg+FfYi3Km2rI4xFgEATR91f2Zy14rv5mbHk5oejj6wQpYahSPDwdRkGsChhqaoxuZJABTurnbcYOSiSwzNuVVW7X79aSQ0FMBrBSpwHsJrrJ9fXd8NVS4XdALFQw1eM1anDvGvGoCnwtwSjV7yRJMDI/1N3L2u6QymLVQmEt4fMhVgN9G/dAoDv2Nf3kfM9FkLuashn3kHYAZ2IxLOzbBrZjS9RY5kK2dW1E8OsdihQ/RspvUPasxc5gdaaGGk6Dl7D/tBuAWNwvwcjMr0tFtX1qBBtPm9OyJH3m5ffuP2vu3fjGdr/IkewxafqadJ9qjwNYz/DIutxGS06aMUkpUqjVQDaD7RG3Luk9KXtBN95mCUj3aopg9m6yxLOeIj56JwcQAtUtxP5kbWCIwtI/aGKxRPbAncHB53QXe1EfxDH12jEjRmhVs0iuQskW3mbr6BdoWSWXGzCj3s60TEDdGLSSQEXayrJL/S9/AgXVzVwwIQR/0vk0crnCFsXSICTRTbWBHChe39DWu9w7Dc1g07ibVN+YLQabdqtQ1Ymjh0nxWF9yCqO5YMCh0Oiyp8+HOKXiTp0vZww5eXlYdxmoSF9cl7a+HGcN+5I7U70= X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230040)(1800799024)(376014)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2025 11:57:23.8757 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a4f6186b-44b7-4525-a833-08dd3e0098c0 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D1.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB8750 X-Patchwork-Delegate: mkubecek+ethtool@suse.cz |
Series |
Add JSON output to --module-info
|
expand
|
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
diff --git a/cmis.c b/cmis.c index 4901f57..f12548e 100644 --- a/cmis.c +++ b/cmis.c @@ -1129,10 +1129,16 @@ int cmis_show_all_nl(struct cmd_context *ctx) struct cmis_memory_map map = {}; int ret; + new_json_obj(ctx->json); + open_json_object(NULL); + ret = cmis_memory_map_init_pages(ctx, &map); if (ret < 0) return ret; cmis_show_all_common(&map); + close_json_object(); + delete_json_obj(); + return 0; } diff --git a/ethtool.c b/ethtool.c index 225f3aa..2818206 100644 --- a/ethtool.c +++ b/ethtool.c @@ -6044,6 +6044,7 @@ static const struct option args[] = { }, { .opts = "-m|--dump-module-eeprom|--module-info", + .json = true, .func = do_getmodule, .nlfunc = nl_getmodule, .help = "Query/Decode Module EEPROM information and optical diagnostics if available",