Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp948070ybb; Thu, 28 Mar 2019 15:47:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqww1CF6LHTHPqLxtIepwrj0Qxpl5tBqhsqUOroUJP/EI4OiML+pdrloaXsXqDLOt+cMAsi5 X-Received: by 2002:a17:902:be0a:: with SMTP id r10mr31429761pls.4.1553813234112; Thu, 28 Mar 2019 15:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553813234; cv=none; d=google.com; s=arc-20160816; b=y2BCzp3R7zBnNs9pn9WyqIMoKvZYSom/aVGlIgRnHO/tkwXo8BqK7JSD9U8flHeJvH dYSddTAqb6VwVYW9ofeqOkIZN7cuAKGB7Tu++nJozD80w28vGCJG4cR/Q6MOtEBUEIYi ++cLoWCco/NGy1ca5vjeMrhHK+32EYNDAi/tX1yg6QxYWFJd594IFZb4wLdJnaGo0hV4 s5AzokL8eh10bd2TYTJdxiE6eJsy3DDvVCXL13Em3nM6DbbnBKXMZINQ+yHDjjZv9Mrx VRjYop4AYU/UyQHcUh1cQQprs9XY1HGrTOeIJ2HpqGDqhdbjIo7gE69gsoZc2DfTTPHu ieDQ== 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; bh=a4f4VHUMqCUF+DxVVguAjEdoOGBanAn/B9klePwQaG8=; b=oBRurflWWi/pN591l6MCx4eiU60YSEy01sT5eYMTsLaOarmtnQsvNO7Yl2uTirrSkn iZ/2YEg70/ILs2Izfwq9iaTm72XCLm48jRQY78VdvpEpwuJaJOXWnUnz8hsbqoGeNxmr zQK26ui+TNg0ZO3Yx5I1TdbHCZK5E2sBTz5Ze2fyRCRCDdD/k+B6pECtDUAq6WhCCveT UesqsPPabEVEVO4B+oRzzOUNHoLFxSnpF38w29jRTeUXdM5WLuIoYcgR3DHGPL16f53e YVvQbQDWPcl04wLlMlCw84NpCD9zxfXwKTsPFfLFcrHXxbe7I2/wnGG+1K43mkxIK+CW RniA== ARC-Authentication-Results: i=1; mx.google.com; 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 o19si305754pgv.355.2019.03.28.15.46.57; Thu, 28 Mar 2019 15:47:14 -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; 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 S1728356AbfC1WqV (ORCPT + 99 others); Thu, 28 Mar 2019 18:46:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:58064 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727120AbfC1WqU (ORCPT ); Thu, 28 Mar 2019 18:46:20 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8489CADA9; Thu, 28 Mar 2019 22:46:19 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id D06FAE1404; Thu, 28 Mar 2019 23:46:18 +0100 (CET) Date: Thu, 28 Mar 2019 23:46:18 +0100 From: Michal Kubecek To: Jakub Kicinski Cc: Jiri Pirko , David Miller , netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , John Linville , Stephen Hemminger , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v5 13/22] ethtool: provide driver/device information in GET_INFO request Message-ID: <20190328224618.GJ26076@unicorn.suse.cz> References: <20190327201411.GH14297@nanopsycho> <20190327222554.GV26076@unicorn.suse.cz> <20190328092126.GL14297@nanopsycho> <20190328095347.GB26076@unicorn.suse.cz> <20190328163439.GP14297@nanopsycho> <20190328130904.48905338@cakuba.netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190328130904.48905338@cakuba.netronome.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 28, 2019 at 01:09:04PM -0700, Jakub Kicinski wrote: > On Thu, 28 Mar 2019 17:34:39 +0100, Jiri Pirko wrote: > > Thu, Mar 28, 2019 at 10:53:47AM CET, mkubecek@suse.cz wrote: > > >On Thu, Mar 28, 2019 at 10:21:26AM +0100, Jiri Pirko wrote: > > >> Wed, Mar 27, 2019 at 11:25:54PM CET, mkubecek@suse.cz wrote: > > >> > > > >> >I'm all for implementing new features which are are related to physical > > >> >device (ASIC) rather than network interface only in devlink (at the > > >> >level of kernel-userspace interface). But for features already provided > > >> >by ethtool (userspace utility) I can't help seeing the state of devlink > > >> >support in NIC drivers as a serious blocker. > > >> > > >> What I'm thinking about at for some time now would be en explicit > > >> default devlink and devlink_port registration for every netdev for > > >> drivers that does not support devlink themselves. I need to think about > > >> it more, but it seems doable. Then we can hang appropriate things there > > >> and make the ethtoolnl/devlink separation clear. I believe we need to do > > >> it. > > > > > >That sounds great, such "generic devlink" implementation would be a way > > >around. Kernel could then emulate features which are not implemented by > > >an actual devlink handler (i.e. "generic devlink" is used or particular > > >handler is missing) by falling back to ethtool_ops handler so that > > >userspace could rely on devlink API for things like device information, > > >various dumps, flashing etc. without losing anything. > > > > Yep. Plan to do that next week. > > The problem with the main part of dev info - fw_version - is that it is > often overloaded in drivers and becomes impossible to parse for users. > I'd rather we didn't dump that nasty chaos in devlink info and let it > die with ethtool IOCTL. If I understand you correctly, what you are suggesting would result in "ethtool -i" through netlink not showing firmware version for NICs without actual devlink implementation (which is vast majority of NICs at the moment). I'm afraid doing that would make sure ioctl ethtool wouldn't die any time soon. > Flashing can also be handled at user space tool level. I'm not sure how to understand this. Michal