Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp312595ybb; Thu, 28 Mar 2019 03:06:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRWUp4QlDxDQepnaNVZSgblpOePuSMDD1s6kfmQoSeqEtKVoO+/Qf3+JMuGiCl+GvKziq6 X-Received: by 2002:a63:7444:: with SMTP id e4mr20662889pgn.261.1553767594824; Thu, 28 Mar 2019 03:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553767594; cv=none; d=google.com; s=arc-20160816; b=aA1yomS73jHkZnOxWSiLeUSJKoNzQLakXdbkTZK5I2KaJw2nHBgnZniHO3aQz7+y1P t1Ku8GGfRd1X0+lYeLXotPLhEyKbI+zmrnlXCW/1s1pC+CxBjhEEZhidJkjWmdM2Pt2v lB14GaAJXhbZgCwhdw3G6XSA23VWtOecMUwY8XJbQPI0jPQHa5eWzIMWE4tZyahipWbu e1AMFIQBM6si/X1jVrc4XXfM/rQCn2b1I4GvCf0ULbHgcbq31msc1lNhj8OPyWKK5jR8 /IwRpLcbNcHDkP6GV98HNiwD8A7Pu/QoBcHBvTb6vG2fQpLsLM6zQjh4yl2T+bjnG4bn Pt3g== 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=1KcQtWHCCpsWJHTBMHaGNNM/iXvJyaULN+vhXABMGzA=; b=DrhGil9Ozr6Erp3D/Mr8oyXRlzDGfyTTea5JoFVaFjlQ+1ORb8R1zS4dqITTx6Vlm6 udUoE28tI03MOmiWpG5uO1VlZvbckedpZppR9XI+Pewi4Sm8NxmqAbO1cvA1syenl/LY vf3ZzVBz7nV5KFPH3UmtDt0vJSazVRY+jdbo/8/6NqoYBZMCxPH3Q+42Ib3c3QBEGWNJ QZCxnVe1u24U/HLfNG0JLIlDDyPN9Y9Zk+ogqDG16ojqcHoK1CxPkBM24AaOVrsidPUd qpWbSqwnnWTfro/QNXiA8mWqFN2+7HaopBkD8f91DzrNNGV54B5bkNaoBmUnIKLpLfwC Jtsw== 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 d18si6960025pgo.525.2019.03.28.03.06.18; Thu, 28 Mar 2019 03:06:34 -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 S1727221AbfC1KEP (ORCPT + 99 others); Thu, 28 Mar 2019 06:04:15 -0400 Received: from mx2.suse.de ([195.135.220.15]:33774 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725815AbfC1KEO (ORCPT ); Thu, 28 Mar 2019 06:04:14 -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 BD106B160; Thu, 28 Mar 2019 10:04:12 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 6E67AE1404; Thu, 28 Mar 2019 11:04:12 +0100 (CET) Date: Thu, 28 Mar 2019 11:04:12 +0100 From: Michal Kubecek To: Florian Fainelli Cc: David Miller , netdev@vger.kernel.org, Jakub Kicinski , Jiri Pirko , Andrew Lunn , John Linville , Stephen Hemminger , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v5 16/22] ethtool: provide link settings and link modes in GET_SETTINGS request Message-ID: <20190328100412.GD26076@unicorn.suse.cz> References: <0ae3153e1816aea673f2ec8b4bd3898638aa07f7.1553532199.git.mkubecek@suse.cz> <8fe118a8-2a51-5740-de68-300f52a81861@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8fe118a8-2a51-5740-de68-300f52a81861@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 Wed, Mar 27, 2019 at 08:44:58PM -0700, Florian Fainelli wrote: > > > On 3/25/2019 10:08 AM, Michal Kubecek wrote: > > Implement GET_SETTINGS netlink request to get link settings and link mode > > information provided by ETHTOOL_GLINKSETTINGS ioctl command. > > > > The information in SET_SETTINGS message sent as reply is divided into two > > parts: autonegotiation, speed, duplex and supported, advertised and peer > > advertised link modes when ETH_SETTINGS_IM_LINKMODES flag is set in the > > request and other settings when ETH_SETTINGS_IM_LINKINFO is set. > > > > Send notification in the same format as the reply message when relevant > > fields are modified using the ioctl interface (ETHTOOL_SLINKSETTINGS or > > ETHTOOL_SSET command). > > > > Signed-off-by: Michal Kubecek > > --- > > [snip] > > > + ETHA_SETTINGS_DEV (nested) device identification > > + ETHA_SETTINGS_LINK_INFO (nested) link settings > > + ETHA_LINKINFO_PORT (u8) physical port > > + ETHA_LINKINFO_PHYADDR (u8) MDIO address of phy > > + ETHA_LINKINFO_TP_MDIX (u8) MDI(-X) status > > + ETHA_LINKINFO_TP_MDIX_CTRL (u8) MDI(-X) control > > + ETHA_LINKINFO_TRANSCEIVER (u8) transceiver > > + ETHA_SETTINGS_LINK_MODES (nested) link modes > > + ETHA_LINKMODES_AUTONEG (u8) autoneotiation status > > Typo: auto-negotiation status. Will fix, thanks. Michal