Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp835795ybb; Thu, 28 Mar 2019 13:10:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHVZvRgAiVrl/1ZPAegihTBo0M7lPGl93D5IwL5h/F7qgioda1dyjFt9YmZ0BhNmP0JWjG X-Received: by 2002:a63:2a86:: with SMTP id q128mr42137090pgq.424.1553803844133; Thu, 28 Mar 2019 13:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553803844; cv=none; d=google.com; s=arc-20160816; b=nY+d4iNMLrtNKRagCejazbiWcQ4HOfXGgpygwQKVa/OWqXaNEg1A+PZQLhtP7khbWo mvd240ZuJPNDNnmEMPrul9xrqn6opOC0GO2MnILv2RmwInhYetBWMW/no14SqWOCuiOI 7z9uC9G4BuchDS7iD0gbErr6iZwOSHsPu6OtpzqSixfTSwozAnNaq30O5yaLhzpi1pfU qGeCIeTNauzRkcPN1koi4KNl8n4uikRlHdugJS6Dp/Ly/lWnJwQc5qdpSKXqf/3lb6+/ vCGq2ZD1Pe4SWT/EobDIpAuCruPH0XQcoX2z5PLLY7IaoGzHnVLQ9MCPQ0FO1TauyYV8 RZGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=KM/9zV7nhJZEhAyIMaWFpkTTeCClgzq2ygC/6x7ljpE=; b=naTnLIwE9KuCGEC7W6iiXMVIF3lW6d0CNe7ALfnrkHavxZKqqiAEkYRdE+oqdVfiAV sDVcOygtxy431yzBW//ucGl1PCiucvLioFBC42BvyDvxfRgrtevgzax2jZLwA1z6Q0vH +NeS5ndveyyC8t6ZpS4a/IUAATHeww46s8KLeR8GypBOdOHP+NdurPjopjrUniftLddD Ug7trgs/FkpKsOujoOjV4KLsKF6+uV1ys/+l+G4InHXM+baWfmpKmQ/qw0g5q6oZenuG TMvHHXIBrF/Br8o2vGFn//LxFrJWqm8zRMazMXNtlUcLmWQjYQz76yUO2xDE6xhD6FKz R5rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=yTKvytau; 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 b6si31810pgw.70.2019.03.28.13.10.23; Thu, 28 Mar 2019 13:10:44 -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=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=yTKvytau; 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 S1726601AbfC1UJN (ORCPT + 99 others); Thu, 28 Mar 2019 16:09:13 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:45327 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726136AbfC1UJM (ORCPT ); Thu, 28 Mar 2019 16:09:12 -0400 Received: by mail-qt1-f193.google.com with SMTP id v20so24628975qtv.12 for ; Thu, 28 Mar 2019 13:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=KM/9zV7nhJZEhAyIMaWFpkTTeCClgzq2ygC/6x7ljpE=; b=yTKvytau4zyswCWSQU553tv6x8nxUbcs8dwvf9dRyY7CspwTWvDz9FtXm8l9jV0cXI gZ5m47YjN1hyC42Zre/ksmv4kLv/D69sDqnHfALdO+CeVdOQJEZojtPvqQlKYNo+KDah x8fEP4GC6b1oJA5BgEYKjsoPsn7aVk2F0XF75q9q/S9shzG6ISsajNOCXtN6K++cFwNT 1RQt/68m/swdhHMSGmg33zbHA04fZGi8W0W6Dru8QAcZSoomZGAytFnhYm8uGtpiIW9d NWdpChwctw1QjINS52NjrjN7RTya46M+Ax2HpCJnxwMZiKhMFckFJ807BXwKyupFWLfu YujA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=KM/9zV7nhJZEhAyIMaWFpkTTeCClgzq2ygC/6x7ljpE=; b=IgeaZ53ciuKZu84bQATT+UoQMQN6hbabuJ6KoalzSFzCIMtD8E1g4wr45HLYr1yJ2W AG8XuXG1bPS70hay8uWy1kK85QNan7044GaCxWj9qSCIImLy+70AyqnbdYOCBv0KbTh0 V9nzP3Yfa62ST28A/G1USD3rIJ1pHDxHZSIJM/BFOpqsfSE9+c2wWkv3hdvqVrkN0/PC WuAyrXKxlzlxNoblrCyvYn30X6B0BF1Ur99CYSMfhuMA1RhuuLTS+nOdrLZ95uUttsup LWmA99RJllZz8ugLY5WG57/RaK9J1Jv9XenSAAMVHUrHWLtdCP4OqGh+BrbtPHOjSNEW fS7w== X-Gm-Message-State: APjAAAVW2KmHLKZ1sVvVB1KxHJvM9DNlfolMPPHSYut6PVZJXwzQvEVb iNnYJmzemWSgtGyuKks6TVbjDw== X-Received: by 2002:aed:2267:: with SMTP id o36mr37660116qtc.366.1553803751009; Thu, 28 Mar 2019 13:09:11 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id n46sm3445937qtn.75.2019.03.28.13.09.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Mar 2019 13:09:10 -0700 (PDT) Date: Thu, 28 Mar 2019 13:09:04 -0700 From: Jakub Kicinski To: Jiri Pirko Cc: Michal Kubecek , 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: <20190328130904.48905338@cakuba.netronome.com> In-Reply-To: <20190328163439.GP14297@nanopsycho> References: <20190327201411.GH14297@nanopsycho> <20190327222554.GV26076@unicorn.suse.cz> <20190328092126.GL14297@nanopsycho> <20190328095347.GB26076@unicorn.suse.cz> <20190328163439.GP14297@nanopsycho> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Flashing can also be handled at user space tool level.