Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp508821yba; Thu, 9 May 2019 01:18:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNem9yiMHmehr0hyWUXedquROsPzVjyMxxlvz7Gf/UO+0k4inLxjbjhqDteZHe6rnP60ua X-Received: by 2002:a62:d286:: with SMTP id c128mr3198743pfg.159.1557389908069; Thu, 09 May 2019 01:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557389908; cv=none; d=google.com; s=arc-20160816; b=C4I7dzzmDiqL2pzAumxodORB0AgWPIPY5WI6B/OO1YQkhbv7VdW51m5A3bV4mXwf6q T9XWefhr2aTmJ3nHBLTsU9kvfWbnqaKwIJT1CMaPKC/Pb267Am+0o6vscd8CSWrpTkbW Ivzrz4Nqo0ZIDF3L27EsgM16788OQwdEGMKUT+Bm8+Govu7k6naXUH04bb/3Or6DDe5j 21SMfP1V29VYGG2iLuL/iseVHm1SAhq4NR26CkMFPXmWuWQyA8jsoI8jyVUuWp0RCBI4 /qlkq1oBjx3vp9H8xETXnhDv9cbezlfnRG91a2SZXCbQZ+z08qEwr4KAZSE1FQ+YLzeA c2cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=KVkC7d4QjPBK1EC0kVwM01yp4aDKRnFF2agQ0ZEmdos=; b=msOI9WMsBHyC2cvZ5wHBujOPcgE+jjfYFX/Z8/P6mqHZSIfpLOC8raTWqt3Uadc9mM 3HXDxsmRI2gIyrUR+tn2gwt+ls01g6foE4wwthy/uyH+2Hxgcw2ySNffwiYTG6dyYkq1 w2/k2qK2ZUeMrtut606Ay+Yuv2thSc75F8J/E9YmB6j9bpuJgSe9D5AisvVXKir9y0nH Gd/wdZCnGyA5cZp/L42983TlXnNOX+9S/tVFQ5psgwkypnxPo40Z3Jy5XeVOA/jHZpwA eH3z5XynIgM0ubP/IpQxagLY3LTyj19jwf2QyOgaLSjzEVHSjv8755xaZ6k3WOpTYGxk ENxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=DP3elEC2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 141si1879968pgb.178.2019.05.09.01.18.10; Thu, 09 May 2019 01:18:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=DP3elEC2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726561AbfEIIRH (ORCPT + 99 others); Thu, 9 May 2019 04:17:07 -0400 Received: from dc8-smtprelay2.synopsys.com ([198.182.47.102]:49386 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725822AbfEIIRH (ORCPT ); Thu, 9 May 2019 04:17:07 -0400 Received: from mailhost.synopsys.com (dc8-mailhost1.synopsys.com [10.13.135.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 26E2BC00FF; Thu, 9 May 2019 08:17:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1557389830; bh=/rAPkCX+h3mO5IIHf8mYqsYYjiVjat0JV+HA8HZ9cZQ=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=DP3elEC22Raw6u58ZxKE6cHYO4d/vP2PxC4Zrcov3iVLEq/foyaeZFCp+dNRRmzqK 5okKSktu2buW2yf6QoVRhUtEW1cLTFmwTSHGYIOu8CINxDWvOOwCSbT3NLeCbixZ2f xeI42f4Od30xnZfYrAcUMRzT321E72HrLjXMkO/jVYpyE3MHzuA1wRxpvduZ2tcxKA VUCUHz3PE/+CtviIyNuFT8SPknWM8Rg9szSwmo1lWCK+i22U/9zb7vQkRmzexGwTmh a1F7CJ+McQN1N1rzsdX0W3iijq4J1gvPijzT25lrDwqB8IPKU4x2m3ROx7cJ/Um3Ds +bhzcEfMPX4xQ== Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPS id CCE96A00AF; Thu, 9 May 2019 08:17:05 +0000 (UTC) Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by US01WXQAHTC1.internal.synopsys.com (10.12.238.230) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 9 May 2019 01:17:05 -0700 Received: from DE02WEMBXB.internal.synopsys.com ([fe80::95ce:118a:8321:a099]) by DE02WEHTCB.internal.synopsys.com ([::1]) with mapi id 14.03.0415.000; Thu, 9 May 2019 10:17:03 +0200 From: Jose Abreu To: Andrew Lunn , Jose Abreu CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Joao Pinto , "David S . Miller" , Giuseppe Cavallaro , Alexandre Torgue Subject: RE: [PATCH net-next 00/11] net: stmmac: Selftests Thread-Topic: [PATCH net-next 00/11] net: stmmac: Selftests Thread-Index: AQHVBXLZwJ2RZgEDF0CNP6MWY759gKZhghGAgADw7NA= Date: Thu, 9 May 2019 08:17:02 +0000 Message-ID: <78EB27739596EE489E55E81C33FEC33A0B47AAEE@DE02WEMBXB.internal.synopsys.com> References: <20190508195011.GK25013@lunn.ch> In-Reply-To: <20190508195011.GK25013@lunn.ch> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.107.19.176] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrew Lunn Date: Wed, May 08, 2019 at 20:50:11 > The normal operation is interrupted by the tests you carry out > here. But i don't see any code looking for ETH_TEST_FL_OFFLINE Ok will fix to only run in offline mode then. >=20 > > (Error code -95 means EOPNOTSUPP in current HW). >=20 > How deep do you have to go before you know about EOPNOTSUPP? It would > be better to not return the string and result at all. Or patch ethtool > to call strerror(3). When I looked at other drivers I saw that they return positive value (1)=20 or zero so calling strerror in ethtool may not be ideal. I think its useful to let the user know if a given test is not supported=20 in HW so maybe I can return 1 instead of EOPNOTSUPP ? Thanks, Jose Miguel Abreu