Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4109145imm; Mon, 30 Jul 2018 08:49:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdRvvZsIhBH100fsJ92mEPsIQvmo2v0b5JLFlrOpnJmOxZNX9wIpuV0hs8Y2AZ8GpkxLnh9 X-Received: by 2002:a62:3856:: with SMTP id f83-v6mr18499151pfa.48.1532965766534; Mon, 30 Jul 2018 08:49:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532965766; cv=none; d=google.com; s=arc-20160816; b=yQyeEeILN16fh8ftgiq+ngWrb7v8ArP4N2UdaeI3V2v1n/zUHsxgm2UEKF5Dg7OHni CwcJMg90GrMDoTEW/6jAXQNKsf+aB4U/Y7P7mC3lYAffrCCxprMr1wIVL6hD+Y9UPavR TUyqtFiCZqQsPTnLxzPMgEoZfmJ9Z3UvHC5UrfdKlFotmZeluabRof7zyzdRGIwtj/Ij RAK1xos8oN/Y+5acjNho3n1eX2N1hZN3nDbjf+rU3SmjYlHmRDcz7ODr0cCYVVuWs72Z X9yoI2+6ZLQDSTRSmxaVRX0LKeKZmMlBNri9nID7i01kd5SI3T83RAFIlDb6cgohQ5+e T+Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=FfiSEAIq+tAAv2IxgftK6KqQ7hG/A5FrRS7L0mX3qWA=; b=F8TESOxu5Cz5tgYZauBTRTFx9bOWzpwMeHFLizIBBm5vCQRwStoom5b5pgjoSPAYSg 64tQROyllg6OBhX53ZkT93mwAYspW37BNfPwj7pxgGHr+YzYEiU613KuS7ZGHPBghJip ut+92yYJjZRnwWkUJJ6OzpBEMRqeyVpMjRmBVQO7RrDuKFGdYPMDay+q3XlaQ5ylTcvk KgF/FsthU8Rc7wnlfo4xv3FYo+bjTpoAd6MEV91tq0awtC6Tl6BSQxaVSl+iWDYlEOcI a4YtwUQ2srqgV/UKFfcoMbaSdPywEuhkXHIPXR7NTb4kQZBajV8fpMyInAUAdPXbpdCW zosQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=T66+5UXT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h21-v6si11434715pgi.430.2018.07.30.08.49.11; Mon, 30 Jul 2018 08:49:26 -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=@lunn.ch header.s=20171124 header.b=T66+5UXT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727509AbeG3RXn (ORCPT + 99 others); Mon, 30 Jul 2018 13:23:43 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:50582 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726668AbeG3RXm (ORCPT ); Mon, 30 Jul 2018 13:23:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=FfiSEAIq+tAAv2IxgftK6KqQ7hG/A5FrRS7L0mX3qWA=; b=T66+5UXT5GAQXACoMeZqzcE7+xxUNryASVsjpFRyXSsPpJCGJMrl/HoMROQfAX4/SSHo66dWOM9iPNWY3z0l3uwBB04g/qGveD5Mg2FQk/vW76hZWnpPBPzGP/ht9hIGApETggLwPVV2YyRKQyIgBR7zXAHPFCUlMBl53bRcEmE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1fkAOx-0000yZ-Hm; Mon, 30 Jul 2018 17:48:03 +0200 Date: Mon, 30 Jul 2018 17:48:03 +0200 From: Andrew Lunn To: Michal Kubecek Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Pirko , David Miller , Florian Fainelli , Roopa Prabhu , Jakub Kicinski , "John W. Linville" Subject: Re: [RFC PATCH net-next v2 09/17] ethtool: implement GET_DRVINFO message Message-ID: <20180730154803.GB2983@lunn.ch> References: <4dcd60f25efe368ada4e0c035dc1d7612ab59132.1532953989.git.mkubecek@suse.cz> <20180730142825.GL13198@lunn.ch> <20180730144644.r3utyf4toqkjcxwd@unicorn.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180730144644.r3utyf4toqkjcxwd@unicorn.suse.cz> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > This is interesting. It would mean current (ioctl) ethtool approach with > string set may not work correctly either. Hi Michal For the statistics, it is a bit of a corner case. One of the Ethernet switches in DSA can have two different PHYs linked to one MAC. One PHY is built in, the second is connected via a SERDES interface. Which every gets link first is used. However, the SERDES interface has additional statistics counters. So if the SERDES is in use, we return more statistics. If somebody was to plug in the cable at just the wrong/right time, the count of statistics could be different to the number of statistics. Another corner case i can think of. Some drivers return statistics per queue. And there is an ioctl to change the number of queues.... I could also imaging tests being similar. There are more loopback tests you can do with a SERDES which you cannot do with a built in PHY. But so far, i've not seen anything like that. Andrew