From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC7DAC282C4 for ; Tue, 12 Feb 2019 16:30:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A989120842 for ; Tue, 12 Feb 2019 16:30:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Mellanox.com header.i=@Mellanox.com header.b="yRAiU+X9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731027AbfBLQaH (ORCPT ); Tue, 12 Feb 2019 11:30:07 -0500 Received: from mail-eopbgr10041.outbound.protection.outlook.com ([40.107.1.41]:30784 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730851AbfBLQaH (ORCPT ); Tue, 12 Feb 2019 11:30:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RpJDI0iN3EBEL/cWeAbDTW536ZEXuYDJvqgKfdjo9GM=; b=yRAiU+X9JQXpRt7LfG/+NMwgjNYqeJ1fk2lCg4LLxKzMze7gfT7eUEb7PY2C5p48p5xD06JAPqHNK8DSaNjTP/dniUCReLVNFfem6mZb87gw4MtNfyvEK2YyfqR4iJ2CKyGKQLeqwHg9aV9Ab7CNM/ReDRCJ2OQc+5b+x2Q3ufo= Received: from AM6PR05MB5240.eurprd05.prod.outlook.com (20.177.196.214) by AM6PR05MB6597.eurprd05.prod.outlook.com (20.179.2.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.19; Tue, 12 Feb 2019 16:29:55 +0000 Received: from AM6PR05MB5240.eurprd05.prod.outlook.com ([fe80::3542:889c:3a85:3866]) by AM6PR05MB5240.eurprd05.prod.outlook.com ([fe80::3542:889c:3a85:3866%5]) with mapi id 15.20.1601.023; Tue, 12 Feb 2019 16:29:55 +0000 From: Ido Schimmel To: "netdev@vger.kernel.org" CC: "davem@davemloft.net" , Jiri Pirko , Nir Dotan , mlxsw , Ido Schimmel Subject: [PATCH net-next 4/4] selftests: mlxsw: avoid double sourcing of lib.sh Thread-Topic: [PATCH net-next 4/4] selftests: mlxsw: avoid double sourcing of lib.sh Thread-Index: AQHUwvAvEKYUcjK0u0a5iK3K2Zrljw== Date: Tue, 12 Feb 2019 16:29:54 +0000 Message-ID: <20190212162924.29777-5-idosch@mellanox.com> References: <20190212162924.29777-1-idosch@mellanox.com> In-Reply-To: <20190212162924.29777-1-idosch@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LO2P265CA0277.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a1::25) To AM6PR05MB5240.eurprd05.prod.outlook.com (2603:10a6:20b:64::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=idosch@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.20.1 x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM6PR05MB6597;6:R9MfKAaKu53WvJBq0QrszGeIHxxV7hRmu3Z2iOhvBS0hhBybZsIFPEyKgyWiW93kDNYmxYtMBtqjLKh+tHhjLPbV47U25pPQuS+4vy1uA9HmS9bzZKZfLp05vLeXUCJu1di07KP19dyM6ja7EDAHhleT8v68S15Ixty+lqWPS7xqfY50YR38+7mknWLOMi5QVJa2bndlfkBJpVvUj1s9feECl3YNIjkb/o/U/3FphCukfp0PDxhMCqcCGhmdigyFZN9TWqBYxHQGjK3apKaPNmznlo8jA8AKFXBdSYoFNuSqlM6ZSdyzt3qt8uMi+M50K55pdJW7bERzFQHkYaBjygftaPGYxP/DvHETdjaNR56tpsUo+5+l5qvJFN/EeGZMJBwPSy8u9eQxwFNx0B990OWBKPfsx/gGW/54DHn/agnDc4yUJ13ul4q7KwP09anSkLe5QKNJ25a0q6WZkbqmBw==;5:iazoMcCg2xSXZgV4Hdxz7b0R0FHF2y9/ozVzdhubNeXTdjS39zsBnYN7/VMROgAYnnuNkSJ4mkSzg4+SpWooox4ohPmi8MdwX8nDWf4aJJHi8+HYTlb/bwhWw5UpGcnD3ObjiCtsBVpTC2DehFtBO/j485YmLmn0cS2dQCGZ3KXHvgWJLMR70lxwzZMKL6drd5ldq7ZcY3CHAyitdXBeYQ==;7:oda8gHVhrY5eOtr7lGs/WNpb37MRa33QG8WnpQHQ8AMlxOz64/aMTMdQRREdH/DWPP2DUbe8nbfEHqr1WBetjTB9zbfVWULWeEmX3Wy9FZ2jQOJNElc8pjSYz2EouTe3lQkhnUUZk7MnmzZPfJV0yw== x-ms-office365-filtering-correlation-id: a8f1c88b-83f5-4afb-3112-08d691075206 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM6PR05MB6597; x-ms-traffictypediagnostic: AM6PR05MB6597: x-microsoft-antispam-prvs: x-forefront-prvs: 0946DC87A1 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(376002)(136003)(39860400002)(366004)(396003)(189003)(199004)(478600001)(2351001)(36756003)(14454004)(6506007)(386003)(76176011)(99286004)(4744005)(71190400001)(14444005)(71200400001)(256004)(7736002)(97736004)(2906002)(305945005)(316002)(8676002)(54906003)(81156014)(8936002)(1730700003)(81166006)(6436002)(107886003)(50226002)(6116002)(53936002)(3846002)(25786009)(5640700003)(6486002)(6916009)(446003)(86362001)(6512007)(2616005)(4326008)(476003)(486006)(105586002)(106356001)(2501003)(68736007)(52116002)(186003)(66066001)(26005)(102836004)(11346002)(1076003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR05MB6597;H:AM6PR05MB5240.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: FJQKbXP7Jy7MhoeiWM7MZ8CVDidVDYOrw5gK6rQ5pEw57hfrw3YTcn1xEZi+DC+7XwlyP/UJ4Oq2JqgdOzg3PnDKZEal/ajLQmLc9RO2Sty07CpjKICygiEcpBtsqL4thFh+F3R9bvaqpEjxA2A9zisF+nizMRMax//FbSlm6BomRnarnYgvCmhnMhqG8XCjlk5nKJWpObnQtDTKj6KV+tEq+x5irOafTchJBqTrniBlUwp1ptPWr3m/eYdK/GjH9q3tPkWAydOZpz44SjowpEltySFAlHRg9hM6EXMBYNXq7lZVbd6Jyyx0oaL7nWodFo7iOlB4WASB0tzBN+i7udS4X87JUCrfgJCCMm5sctS4LnyMLPNwINZVN0ZuEmfMqa6Gwn3Zk97S7GLVUmrpmCAQy9LWLzEbn2Vx+SmmM9I= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: a8f1c88b-83f5-4afb-3112-08d691075206 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Feb 2019 16:29:54.0525 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB6597 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Jiri Pirko Don't source lib.sh 2 times and make the script work with ifnames passed on the command line. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- .../selftests/drivers/net/mlxsw/spectrum/resource_scale.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_sc= ale.sh b/tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.= sh index a0a80e1a69e8..e7ffc79561b7 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.sh @@ -2,7 +2,6 @@ # SPDX-License-Identifier: GPL-2.0 =20 NUM_NETIFS=3D6 -source ../../../../net/forwarding/lib.sh source ../../../../net/forwarding/tc_common.sh source devlink_lib_spectrum.sh =20 --=20 2.20.1