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=-2.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,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 6FDD2C282DD for ; Mon, 10 Jun 2019 08:41:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2B23820833 for ; Mon, 10 Jun 2019 08:41:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="MBVZAyJR" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388058AbfFJIlj (ORCPT ); Mon, 10 Jun 2019 04:41:39 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:37177 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387979AbfFJIli (ORCPT ); Mon, 10 Jun 2019 04:41:38 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id E388720D12; Mon, 10 Jun 2019 04:41:37 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 10 Jun 2019 04:41:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Ua6vYOh1KhabBgJd/ qvWKbPuYg4dumXPwEs6r21B2Z8=; b=MBVZAyJR1HTK8tQ1GLoqKnreTmPpPsE0p zEyB5jHbGmaUYLbEQW9zDFU4YDSB+E7dKQ9TQxXoivtKDHa0LV9njCRgfD44zTev p8fS0ooOOtyGzFf7ntG4NRqgVwONr1IXCJ4VWBIkrZGvceOgWmR8iorot8LK++Pn ZUjRe/PItClSdd+ZlZu8upLyCdNe6NmeFiXP4a8Sgm6Cp/ALTF462Gel+e/nx1IT s17k2RCGBci7BfNWzKbXyTL0BHwA5u4CGKhEA/W08/WBwYavUePa7pFxM0oQbq1x SDN/ID0evwVa1PLIfLmIgoxhiocMgZTt3hEDHAxN0oYONkXTjOb2w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehvddgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepkfguohcuufgthhhimhhmvghluceoihguohhstghhsehiughoshgt hhdrohhrgheqnecukfhppeduleefrdegjedrudeihedrvdehudenucfrrghrrghmpehmrg hilhhfrhhomhepihguohhstghhsehiughoshgthhdrohhrghenucevlhhushhtvghrufhi iigvpedt X-ME-Proxy: Received: from splinter.mtl.com (unknown [193.47.165.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 61CA980060; Mon, 10 Jun 2019 04:41:36 -0400 (EDT) From: Ido Schimmel To: davem@davemloft.net Cc: netdev@vger.kernel.org, amitc@mellanox.com, mlxsw@mellanox.com, Ido Schimmel Subject: [PATCH net-next 0/3] mlxsw: Add speed and auto-negotiation test Date: Mon, 10 Jun 2019 11:40:42 +0300 Message-Id: <20190610084045.6029-1-idosch@idosch.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel Amit says: This patchset adds a selftest which tests different speeds and auto-negotiation. Patch #1 Adds functions that retrieve information from ethtool. Patch #2 Adds option to wait for device with limit of iterations. Patch #3 Adds the test. Amit Cohen (3): selftests: mlxsw: Add ethtool_lib.sh selftests: mlxsw: lib.sh: Add wait for dev with timeout selftests: mlxsw: Add speed and auto-negotiation test .../selftests/drivers/net/mlxsw/ethtool.sh | 308 ++++++++++++++++++ .../selftests/net/forwarding/ethtool_lib.sh | 91 ++++++ tools/testing/selftests/net/forwarding/lib.sh | 28 +- 3 files changed, 424 insertions(+), 3 deletions(-) create mode 100755 tools/testing/selftests/drivers/net/mlxsw/ethtool.sh create mode 100755 tools/testing/selftests/net/forwarding/ethtool_lib.sh -- 2.20.1