From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] ethdev: fix link autonegotiation value Date: Fri, 5 Jan 2018 12:47:07 -0800 Message-ID: <20180105124707.602256c5@xeon-e3> References: <20180105173855.25473-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, ferruh.yigit@intel.com To: Thomas Monjalon Return-path: Received: from mail-pl0-f44.google.com (mail-pl0-f44.google.com [209.85.160.44]) by dpdk.org (Postfix) with ESMTP id 029A51B010 for ; Fri, 5 Jan 2018 21:47:10 +0100 (CET) Received: by mail-pl0-f44.google.com with SMTP id n13so3705235plp.11 for ; Fri, 05 Jan 2018 12:47:10 -0800 (PST) In-Reply-To: <20180105173855.25473-1-thomas@monjalon.net> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, 5 Jan 2018 18:38:55 +0100 Thomas Monjalon wrote: > There are 3 kind of link data in ethdev: > - capabilities (rte_eth_dev_info) > - configuration (rte_eth_conf) > - status (rte_eth_link) > > A bit-field is used for capabilities (rte_eth_dev_info.speed_capa) and > configuration (rte_eth_conf.link_speeds). > Bits are defined in ETH_LINK_SPEED_*. > > Some numerical (ETH_SPEED_NUM_*) and boolean (ETH_LINK_*) values > are used for the link status (rte_eth_link.*). > > There was a mistake in the comment of rte_eth_link.link_autoneg, > suggesting ETH_LINK_SPEED_[AUTONEG/FIXED] which are 0/1, > instead of ETH_LINK_[AUTONEG/FIXED] which are 1/0. > > The drivers are fixed to use ETH_LINK_[AUTONEG/FIXED]. > > Fixes: 82113036e4e5 ("ethdev: redesign link speed config") > > Suggested-by: Andrew Rybchenko > Signed-off-by: Thomas Monjalon Thanks for clearing this up. Acked-by: Stephen Hemminger