Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936583AbdLRTja (ORCPT ); Mon, 18 Dec 2017 14:39:30 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:40010 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932764AbdLRTj0 (ORCPT ); Mon, 18 Dec 2017 14:39:26 -0500 Date: Mon, 18 Dec 2017 14:39:24 -0500 (EST) Message-Id: <20171218.143924.1623602664707226147.davem@davemloft.net> To: linville@tuxdriver.com Cc: mkubecek@suse.cz, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/9] ethtool netlink interface (WiP) From: David Miller In-Reply-To: <20171214210755.GG19705@tuxdriver.com> References: <20171214210755.GG19705@tuxdriver.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 18 Dec 2017 11:39:26 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1724 Lines: 36 From: "John W. Linville" Date: Thu, 14 Dec 2017 16:07:56 -0500 > Even without considering the ioctl problesms, the current ethtool > API seems a bit crufty. It has been a catch-all, "where else would it > go?" dumping ground for a long time, and it has accrued a number of > not-entirely-related bits of functionality. In my mind, what needs > to happen is that these various bits of functionality need to be > reorganized into a handful of groupings. Then, each group needs an > API designed around semantics that are natural to the functionality > being addressed. I believe this is essentially the idea that others > have expressed with the "move some of the ethtool bits to devlink" > comments. I think that probably makes sense, although trying to shove > everything into devlink probably makes no more sense than keeping > the entire ethtool API intact on top of a netlink transport. Anyway, > I think that with a reasonable set of groupings, the semantics would > fall-out naturally and implementing them on netlink or any other > suitable transport would be reasonably trivial. Thanks for your valueable feedback John. Let's keep in mind that really the core impetus to move ethtool stuff to netlink is visibility. Someone trying to monitor network config events in the system can't see anything that happens with ethtool currently. It's completely invisible. Even ancient ifconfig ioctls generate proper netlink events. Ethtool is one of the few, if not the only, network config mechanism that elides netlink event visibility. And I think fixing that core issue is what is driving the focus onto a pure 1-to-1 conversion, be it to a separate netlink/genetlink family or to devlink.