Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3456131imj; Tue, 19 Feb 2019 03:58:19 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibpwj9B5QlBb+zd9vFHaBrcZG32f1Y8zXvyfW8szRM/nWIQt3URROb5I59NA0t3J1Y5wKat X-Received: by 2002:a62:2c4d:: with SMTP id s74mr28829567pfs.6.1550577499151; Tue, 19 Feb 2019 03:58:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550577499; cv=none; d=google.com; s=arc-20160816; b=YpLY6XJzQy6Af84qmYsX1wqooB5nIZq9V7XVW2Amf+p2pYAY3u++B8uIJoD5Ja23LC QTuli0YI42ADaPzxwJkozJAgqT1zQRJYxWGSc2KjxBG1vhXuaaDuewyrOTEXOGasGrmh CD6KtAfXYrRVvINxOftq/H2IoVsHuVZJess1iInkfS8SThDhU6uMOKiZMRXpM1KCY/LP V6WLRRfB5u2nz/7qJeppUyEbMZ+vKqYEEDFNKaeod4YWiRKhmsUDQbEvu2GUAexpTK9t JD7cU9xlaVyPKQuk4zj5ucr09L4w6EOH/fB2SW0VQn2WHXK1J453T6jqgkAKfZp8eTd7 zzuA== 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=AppxgWgFnZexIiAxtKYiO6d4c32aGkTPeEvwezSd5g0=; b=h40a1t6qq3VnuMm5qmnzY0joUR4DOI092zW5+px1F5GXqr1H1zA2AUVyMip2fxmNlv KTeU0/9X0lTIMwt8OZuUfMkotFqI+iueiUvI79rPZu1JaNAnArS6r2aRNnC0Mwj0s0w6 KvycJtz2v+Ok5I64iyePxapFRN4xAtHapZ/aPlEYGR8h92Wuq8ls6CRx/Zxc77nBe1aK MnGvcnGxUgFHlXoyvXndA50tCrXAgVKRBU4vHO4B5R/8qEnKZWAbTwbF15Gk0/bpwloU YAL3sS86fcaKqbZmhFbFXl477WKVo4B1fUdGYi5XztAmy2AQ+fb4enYAZuqOR+aBSAS2 KVSw== 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 k190si3369858pgc.264.2019.02.19.03.58.03; Tue, 19 Feb 2019 03:58:19 -0800 (PST) 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 S1725767AbfBSL5a (ORCPT + 99 others); Tue, 19 Feb 2019 06:57:30 -0500 Received: from mx2.suse.de ([195.135.220.15]:40194 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725805AbfBSL53 (ORCPT ); Tue, 19 Feb 2019 06:57:29 -0500 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 5F57DAE65; Tue, 19 Feb 2019 11:57:28 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id D2561E0122; Tue, 19 Feb 2019 12:57:27 +0100 (CET) Date: Tue, 19 Feb 2019 12:57:27 +0100 From: Michal Kubecek To: Jiri Pirko Cc: netdev@vger.kernel.org, David Miller , Andrew Lunn , Jakub Kicinski , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH net-next v3 00/21] ethtool netlink interface, part 1 Message-ID: <20190219115727.GE23151@unicorn.suse.cz> References: <20190219103508.GD3080@nanopsycho> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190219103508.GD3080@nanopsycho> 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 Tue, Feb 19, 2019 at 11:35:08AM +0100, Jiri Pirko wrote: > >- some features provided by ethtool would rather belong to devlink (and > > some are already superseded by devlink); however, only few drivers > > provide devlink interface at the moment and as recent discussion on > > flashing revealed, we cannot rely on devlink's presence > > Could you explain why please? What I mean is the problem discussed under Jakub's devlink flash patchset: that he couldn't implement only the devlink callback in nfp and rely on the generic fallback to devlink because it wouldn't work if devlink is built as a module. But I think this should be addressed. If we agree that flashing (and other features provided by ethtool at the moment) rather belongs to devlink (which nobody seems to oppose), we should rather try to make it possible for drivers to provide only the devlink callback and gradually move all in-tree drivers to doing so. (And one day, remove it from ethtool_ops.) It doesn't seem to make much sense to have devlink as a module in such scenario. Michal