Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10928847ybl; Fri, 27 Dec 2019 04:48:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyiSuB4aAF4VrMDzE++O5BuHLf5CW/zyz3MkOEGszr/MUxio1U8wpL+tkmwCUlSzRX7qO9y X-Received: by 2002:a05:6830:1d91:: with SMTP id y17mr53668398oti.276.1577450931062; Fri, 27 Dec 2019 04:48:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577450931; cv=none; d=google.com; s=arc-20160816; b=Eou1zYlWm5wP38BOoE37cV78gH/F37WSIGqNAGq6gUwDnbII7ZkibDxc88W/XC6p1A UkaTw96cXU7rMhLSqpOoAN9xdkknd5yzktG6tQUNGmJloPrb2+h2BTcPM4uj05aA5CX9 S69Awat/WOV4YkVl7pX3CJfGsZegwCQOBEohXqU1KWCytSAERyd9hVzlSzK5ufF4QN+f XwOYv/OH4hK2o0q2xLDwrrq0lHXwF57cBjKFY12cEzPpx6RjlrWtzM+Lyo9o3SKju2XZ m0I3yariu3gWwKnp7Z1qO1JpksZs9hm6RUUzaW9JSzFgDbZ48r6wpkLo4r2/175+BWyl DHzg== 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=y1FZL6OrUMZpEY0VjZE6EtKgjj28k3TOtRE452coth4=; b=KdGbljsZokmO0vZf+Su5dJ5bv9SZz4YGQcCC96QN+wSV6hP6Lj9A6XTGnm53ki5l7l SZ3Z10Tdq7v8vxMrZKKz9H4DNRliKPdUsOLfcjaV6rs+74qEi33IKVNh6A9G3JL7uDyC 0FUPMdcvDWrMZ90JPCbONxSrjxENOXDT6jb+aun6vzh/s4aDWqBfAql8HJJcu8vaNZLj AUVnUIm0vHC+C/Gcd/HDKBtDfMWlT5GdoodUQMAzC6yFr1bu1K9YBdi4ST27QeEO1ggC wOphPYZClN2OxjfRvMGAimkbVZxfgzo6/eExk8g4qWTx5AxqUZGBgX6Up/rgEbdq8iOg foIA== 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 q126si16004522oia.8.2019.12.27.04.48.39; Fri, 27 Dec 2019 04:48:51 -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 S1727060AbfL0MsE (ORCPT + 99 others); Fri, 27 Dec 2019 07:48:04 -0500 Received: from mx2.suse.de ([195.135.220.15]:47610 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbfL0MsD (ORCPT ); Fri, 27 Dec 2019 07:48:03 -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 BEBD8ACD7; Fri, 27 Dec 2019 12:48:01 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 11E7AE008A; Fri, 27 Dec 2019 13:47:59 +0100 (CET) Date: Fri, 27 Dec 2019 13:47:59 +0100 From: Michal Kubecek To: netdev@vger.kernel.org Cc: Florian Fainelli , David Miller , Jakub Kicinski , Jiri Pirko , Andrew Lunn , John Linville , Stephen Hemminger , Johannes Berg , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v8 14/14] ethtool: provide link state with LINKSTATE_GET request Message-ID: <20191227124759.GK21614@unicorn.suse.cz> References: <7a6c4161fc6d29620bdc95a919e03f8be8b91e48.1577052887.git.mkubecek@suse.cz> <918da8cd-7ebc-b895-85c8-afad9eed6036@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <918da8cd-7ebc-b895-85c8-afad9eed6036@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:44:19PM -0800, Florian Fainelli wrote: > > > On 12/22/2019 3:46 PM, Michal Kubecek wrote: > > Implement LINKSTATE_GET netlink request to get link state information. > > > > At the moment, only link up flag as provided by ETHTOOL_GLINK ioctl command > > is returned. > > > > LINKSTATE_GET request can be used with NLM_F_DUMP (without device > > identification) to request the information for all devices in current > > network namespace providing the data. > > > > Signed-off-by: Michal Kubecek > > --- > > [snip] > > > +Kernel response contents: > > + > > + ==================================== ====== ========================== > > + ``ETHTOOL_A_LINKSTATE_HEADER`` nested reply header > > + ``ETHTOOL_A_LINKSTATE_LINK`` u8 autonegotiation status > > ^ ==== Humm, auto-negotiation status may not be exactly accurate > especially with complex devices with SerDes/PHY/SFPs/what have you/. > Other than that, the code looks correct: It seems I forgot to edit this cell text after copy&paste from LINKMODES_GET above. Fixed in v9, thanks. Michal > Reviewed-by: Florian Fainelli > -- > Florian