Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6889306ybl; Mon, 23 Dec 2019 14:06:15 -0800 (PST) X-Google-Smtp-Source: APXvYqyr7g/jBxqP003+Cy3gHyGWR32Mku3tP2ISHgaaweFHrlCxlIGVz7hfkez+n37G/NS6kP8F X-Received: by 2002:a05:6808:251:: with SMTP id m17mr354278oie.15.1577138775181; Mon, 23 Dec 2019 14:06:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577138775; cv=none; d=google.com; s=arc-20160816; b=IOISjgDh0/0oZixAiT+dc4abZP1HB3wl/qR1xCcilPLGOCE/BJuK0kXL9e2uUH2d4O i2bBnAo2R2tjrv3uyI41L0it2Iivo8vT162SgHpFCoG1nMKd8J6Bb47B4xVy5AxOzJz4 qRLhq+/LFohcRpwufbIlHCofLc2+4cWU805CpssMEB3XQFypOsT2GkTBCmRTBqSGECSH u3xHbIw4SWJUC1OqX7MxSusRLk+ZnfayLl2e6Bv6DSd0qpCXtsBWN4G3UiBgw31n+s9x qudPFFJKuX7+yU/p1CsQBPqX/3tlxe348hnw4X720B859HMra03wyp/Rl8OY+4tovPt6 mIYw== 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=qJP0S9QMgtn9w4cAHLerL72vgBuO59TgZJC/G44uOis=; b=VAHxs98QFdQol+AGu8jiMF1OdFSmm8oPxcI5wT//6L5dOczcUortRSLznV+Yo93vn7 GUngjcbVpYGkVzttW6ANLHdvZghrPTIhvdWeVrhirjLlIQCrs6pv/OJe9YernOhuKJIz IO3ozvzzJJv3MHpeQ403HKVpcVW9ii02Wm7DFfjD3bqWYWVBK85hiDp/iGnM/wTfptqa M4H5mpFPmprP9QXr/pvK1YP7YUBGLa+wY6vOyowYyPsQ604aHKScu/D+/BY4GjD6qkAc 4b/0CqF8/SrBwnC3fNq+OwSfKjZdp8/y7CXDrUMFugKeEvzXOt8qp1c8F6pRtELmnCnr ZzAw== 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 u191si6391954oia.86.2019.12.23.14.06.03; Mon, 23 Dec 2019 14:06:15 -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 S1726874AbfLWWF0 (ORCPT + 99 others); Mon, 23 Dec 2019 17:05:26 -0500 Received: from mx2.suse.de ([195.135.220.15]:48238 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726832AbfLWWFZ (ORCPT ); Mon, 23 Dec 2019 17:05:25 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 7728CACEF; Mon, 23 Dec 2019 22:05:23 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id EEAC3E008B; Mon, 23 Dec 2019 23:05:16 +0100 (CET) Date: Mon, 23 Dec 2019 23:05:16 +0100 From: Michal Kubecek To: Florian Fainelli Cc: David Miller , netdev@vger.kernel.org, Jakub Kicinski , Jiri Pirko , Andrew Lunn , John Linville , Stephen Hemminger , Johannes Berg , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v8 00/14] ethtool netlink interface, part 1 Message-ID: <20191223220516.GI21614@unicorn.suse.cz> References: <884c1d40-c0ca-37f2-4149-8c7189dbca3b@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <884c1d40-c0ca-37f2-4149-8c7189dbca3b@gmail.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 Mon, Dec 23, 2019 at 08:52:01AM -0800, Florian Fainelli wrote: > Hi Michal, > > On 12/22/2019 3:45 PM, Michal Kubecek wrote: > > This is first part of netlink based alternative userspace interface for > > ethtool. It aims to address some long known issues with the ioctl > > interface, mainly lack of extensibility, raciness, limited error reporting > > and absence of notifications. The goal is to allow userspace ethtool > > utility to provide all features it currently does but without using the > > ioctl interface. However, some features provided by ethtool ioctl API will > > be available through other netlink interfaces (rtnetlink, devlink) if it's > > more appropriate. > > > > The interface uses generic netlink family "ethtool" and provides multicast > > group "monitor" which is used for notifications. Documentation for the > > interface is in Documentation/networking/ethtool-netlink.rst file. The > > netlink interface is optional, it is built when CONFIG_ETHTOOL_NETLINK > > (bool) option is enabled. > > > > There are three types of request messages distinguished by suffix "_GET" > > (query for information), "_SET" (modify parameters) and "_ACT" (perform an > > action). Kernel reply messages have name with additional suffix "_REPLY" > > (e.g. ETHTOOL_MSG_SETTINGS_GET_REPLY). Most "_SET" and "_ACT" message types > > do not have matching reply type as only some of them need additional reply > > data beyond numeric error code and extack. Kernel also broadcasts > > notification messages ("_NTF" suffix) on changes. > > Thanks for re-posting these patches again, would you have ethtool and > iproute2 branches with your latest ethnl patches applied? I did find > your ethnl directory on your github, but it applies to a slightly oldish > ethtool version. If you could maintain forks with an "ethnl" branch > there, that would help greatly. The iproute2 patch (adding display of permanent hardware address) is in iproute2 "next" tree. As for (userspace) ethtool code, at the moment it's not in a presentable state. As I wanted on getting v8 out as soon as possible, I focused on making it work somehow so that I can test the kernel patchset. So at the moment, the userspace series is still in the form of an older one (implementing older UAPI) plus one bit "work in progress" patch adapting it to current UAPI. The userspace code also still doesn't look the way I would like it to. I would like to spend some more time on it in second half of this week and then I plan to also update the repository on github. Michal > I will continue reviewing from there on, but also wanted to give it a > spin to get a feel. > > Thanks! > -- > Florian