From patchwork Thu Apr 13 01:22:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Rameshbabu X-Patchwork-Id: 13209699 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EEC4C7619A for ; Thu, 13 Apr 2023 01:23:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229616AbjDMBXH (ORCPT ); Wed, 12 Apr 2023 21:23:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjDMBXF (ORCPT ); Wed, 12 Apr 2023 21:23:05 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2062.outbound.protection.outlook.com [40.107.94.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D514E5A for ; Wed, 12 Apr 2023 18:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UM4o/JvM1SUwHlIEfLJprvnrnVYdK1lgcgI/yfYgPVHW0NO93FqBayMLNkh3XFkRJO9RUTs1cAfNZJNrN5QRBrjU6ZKgfTIiVoc/q17/TspaMrrYNziDJCh+HByjdnpDmDQTlJfzAqDH9VhOpDNxKyDKkjjS+w6N75cOU6eWvWnXqyUoumcYarn4R5hAjBYqS1guX3KxWm0kpbZYjPAKpUgmzjYl8UkKZ3fdmOzEEZeo7FJKRg7VsK3fxASMSZQQiG2So+irWLz0qK1Gg2z1YbkZvvdaBkpPT0UeTn1BKzwbzNc6MMh9d9NAeesGdDCuCDfPBqkO1LM2NIhuP2rdSg== 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=gloabLsSSs4Hq+luZzNnDgMd0uPPUoDv5pC4Rd9lFC0=; b=ip8Ll4mncARCsUCXqCrK8NQyTfM6YL2U/+DYaFW8llbxEfaoQayaj1ggKn5zCKk2oy38wovqr0sXKKAxkctchPOyALo/ZrBC2qmYeTjKmmu2MxBv/dZCGNDI+8LP7hEeiTgYEYo+/Cgau4LY75f99Yd78KwIlQUr6lkKwiy+CXCkS+rKjlTq69JHNwHguCPvUkVYvh/mvxKwkIAHlHgZusRW6mYeHS2QpF6NCL7mGbB4BHehskVL+IFAU7eiscr8lVPcaAvvGfUxghZxbE98uJPJ0y5/iVm3ErSI6jVMx1fkEtu4yh8JEMTBCJUcPn7SQbQEMRhUSj5nYsM1BheEYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none 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=gloabLsSSs4Hq+luZzNnDgMd0uPPUoDv5pC4Rd9lFC0=; b=c+sCLUKBbEW65X28xl9SED53+5VfAWkgl2QzSNkwQ/DupEKOMAAYiWpdChIdYcvvpMN7ctDpJjr/yMEFs61yWW+ksxsbA6T2kgmL/oPTjJKuDIGhnuzXSG1YMbUY6hJiDuG4+pcJWuTXpnzzdDBKOKQG41saBLaMcqkd7zUJPbjYuZOIUqyOO6f1+JtJ70+WFe0+PeOofwsrDFKRUrK8ORUhoBbph0wpod7x2wcsEBTjQxSy+FRSRYpkeyuzAoz1jIous3IuU/Hy15xpMOZYft0vWIxt4ZzcX2G2kmGBLu5feOc5CewlwAN/EhmZyvAbdXE5cCjTRBbSWAivL8Q2zw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BYAPR12MB2743.namprd12.prod.outlook.com (2603:10b6:a03:61::28) by MN2PR12MB4335.namprd12.prod.outlook.com (2603:10b6:208:1d4::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.28; Thu, 13 Apr 2023 01:22:59 +0000 Received: from BYAPR12MB2743.namprd12.prod.outlook.com ([fe80::f6e3:c3af:67f9:91e9]) by BYAPR12MB2743.namprd12.prod.outlook.com ([fe80::f6e3:c3af:67f9:91e9%6]) with mapi id 15.20.6277.036; Thu, 13 Apr 2023 01:22:58 +0000 From: Rahul Rameshbabu To: netdev@vger.kernel.org Cc: Saeed Mahameed , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Stanislav Fomichev , Rahul Rameshbabu Subject: [PATCH net-next 1/2] tools: ynl: Remove absolute paths to yaml files from ethtool testing tool Date: Wed, 12 Apr 2023 18:22:51 -0700 Message-Id: <20230413012252.184434-1-rrameshbabu@nvidia.com> X-Mailer: git-send-email 2.38.4 X-ClientProxiedBy: BYAPR21CA0016.namprd21.prod.outlook.com (2603:10b6:a03:114::26) To BYAPR12MB2743.namprd12.prod.outlook.com (2603:10b6:a03:61::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR12MB2743:EE_|MN2PR12MB4335:EE_ X-MS-Office365-Filtering-Correlation-Id: 8ac64842-2643-4cb8-efb3-08db3bbd9dd4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N5neT9lazse+9rgLRbDv6iHm1vj5esssaSwlS6i3/5V6DNVKNoNJEAvaLgnFStN8sZhr2Q+DqBhCJrr8YRbaSf2RMweVTi1FUQ3gE3FTUnxyA5qW1UePQzBs1A0MfEPfEhid3Cs3OtoVi3n1e2aIzriSm/kML+OQ9gY3/LXQfNPJyDCj1rHPli1V6+KM4OXMdnv/xBqTILcCkhfGEyI/3cCOrvp3T/TqEfxwosk0krOu5Gt79Jd3TqWaGrF9YdUcXItHViaayMaj0t5B1yNA559LCOxGaPOfxZAq+SbwoOPVfoV8sZ6TSb1mZlU66IzL9ZD/TqvJ6mTM3YaNeJ4aC7dEScVo0Q/HK0cNA+cJKtW2oWEiH99AF+MC+fMVdxQf0yaVdBwRIHs4sYOPfW4rG1Y+sgYy10B2YvRqTlH41pXFD5IFLbCz7KbMnhKLfCffj96alDTqvqp7kHcZ8sc/b6xRqAPFOOPZvnY9yC4Mrz5KC4+5AVXs47/uR1UU8+lgru1JwTLDRGimk12zBaO+rrzyTq+DYz/COD3AZ1QFlYF8kYv5hvzjXPfN4E9Ie3L+ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR12MB2743.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(366004)(136003)(39860400002)(396003)(346002)(451199021)(478600001)(36756003)(38100700002)(5660300002)(2906002)(316002)(8936002)(8676002)(86362001)(66556008)(41300700001)(66946007)(6916009)(4326008)(66476007)(83380400001)(107886003)(54906003)(26005)(186003)(6512007)(1076003)(6666004)(6506007)(2616005)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fqWuRG65nJmw/dgVrUha8XuMo2RO9iyM92SYgMi17d++sjC0Dv/nozOgBWDzA6Ct1DhuzPhXIVrmuJwEPdNojFz5xwwieHsgbCj1f5RpftrOHG19UepJlS6n2eN/APC0Gqenfx5tRo6o3kVk1XTBqiN+uWGXk8VgDXwVnPp/WPMCjmhnuvbMsEI7gRH6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/Z8E1IuQIJdcYeEziCsyLwwt9ikktrTyavOtxiuf5OZNblEjzw1mbxVxRdRflU1eZfP1iwQInTxuusqKvKXNWaqHJb7DQtkO3SRMSqdDpAaNpR71pP/2ACJMg2sFkRBt+QqXOBGNVFxMwdSoKpxppXNXMArQYwRa2OurgXfJhUAX17129KK7QwyH8Mmk46/OaxgN4WpSP6XujyexCZ/dutvBqeAU6W9xW1vodu5mtsJeu8s9EDyWbrIdEvLHSR1j6cDJSGJdChDsjtMB8JEUsZ1cg/taqVLjcLYGHumiAnnemzkMr4M7Em4uqMSafVaCITiaFl50nQqBH9EB51C1VnL3ywwLw3JK0Q3g== X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8ac64842-2643-4cb8-efb3-08db3bbd9dd4 X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB2743.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2023 01:22:58.7311 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1Dmz6BgyMrRNlR/7J2GuYjyGhnPAiivLQyxtw7x8L3oxue2xhoC6r5cZwGVzJhQuBsS6YErHLZv0Bt7h/ijODg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4335 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Absolute paths for the spec and schema files make the ethtool testing tool unusable with freshly checked-out source trees. Replace absolute paths with relative paths for both files in the Documentation/ directory. Issue seen before the change Traceback (most recent call last): File "/home/binary-eater/Documents/mlx/linux/tools/net/ynl/./ethtool", line 424, in main() File "/home/binary-eater/Documents/mlx/linux/tools/net/ynl/./ethtool", line 158, in main ynl = YnlFamily(spec, schema) File "/home/binary-eater/Documents/mlx/linux/tools/net/ynl/lib/ynl.py", line 342, in __init__ super().__init__(def_path, schema) File "/home/binary-eater/Documents/mlx/linux/tools/net/ynl/lib/nlspec.py", line 333, in __init__ with open(spec_path, "r") as stream: FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/google/home/sdf/src/linux/Documentation/netlink/specs/ethtool.yaml' Fixes: f3d07b02b2b8 ("tools: ynl: ethtool testing tool") Signed-off-by: Rahul Rameshbabu --- tools/net/ynl/ethtool | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/net/ynl/ethtool b/tools/net/ynl/ethtool index 5fb1d670693a..6c9f7e31250c 100755 --- a/tools/net/ynl/ethtool +++ b/tools/net/ynl/ethtool @@ -152,8 +152,8 @@ def main(): global args args = parser.parse_args() - spec = '/usr/local/google/home/sdf/src/linux/Documentation/netlink/specs/ethtool.yaml' - schema = '/usr/local/google/home/sdf/src/linux/Documentation/netlink/genetlink-legacy.yaml' + spec = '../../../Documentation/netlink/specs/ethtool.yaml' + schema = '../../../Documentation/netlink/genetlink-legacy.yaml' ynl = YnlFamily(spec, schema)