Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1775940rdb; Tue, 20 Feb 2024 06:47:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWy/R+XJ7BHVBkOielbsIGXxY3a+YP6FcsAeui8CbQUBIWJkNCrpKPufjeQ1piJDZCbzonh2NUO06Xyyt/ABynI2/gyCJAH3iCJI1XP9Q== X-Google-Smtp-Source: AGHT+IEYJ2xYmfuCIDffjN21b1lfQqmc/ZGWFrIuMEyXKBlaTIrGA65IL8igVl77hJWMmyx8dQSf X-Received: by 2002:ac2:5925:0:b0:512:aaba:7657 with SMTP id v5-20020ac25925000000b00512aaba7657mr4060122lfi.26.1708440446408; Tue, 20 Feb 2024 06:47:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708440446; cv=pass; d=google.com; s=arc-20160816; b=eKwWsSpU/VAmuUrXrR6TCF1j30tjRYCMsO//YmSDKm8qT/J4JLZ7dnTcOPBFLz5npU rcHNsh0KvRuaEH+TJIP+NqdrQjh50uoLpNKknXQ3d9jVSRV8GM8ArsYgAAj7+S2KmOFh 9SqKZEtR2GA/66iB+8rNRhdYE30GQeOnp0re0hasLMNch4rPk7kqmzJ2hwwVe+JbRqNt ptIzmGUNo2/xvBV4U4Lsz6WJhxnWp+Z6inH343Uw7JcxnRW4YJXRfKCHawlg6oC80rgZ Da4XkfC9d/GKnVRjYki4ul9qPiMBCOlwxrhr7CcGfyzbfuDc2l3eIjHxM6HMz0gzSE73 BK4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1zdNjHcqPugIf4Zw2EB6aLcTZtqonnwTaHUPJU0bi/w=; fh=TCAt/R3HdXm5/548d62ObWzS/Jx3jcOKiUqrsB3bV+g=; b=UaVf7tv/UZRQ9OZrxONV4TxIKQuK3KnDHRSdvGypSTn1Z9ppeQNunBvfI1CicEtqql /QAjTRvP9AFvY27VUvtgLnB9zYAdDKN0juolWpN0G97NoNF4CTezCCh75G6TiaK4vzCP MYsRQaL52V+klV+24jOI6r3TMwFwK1q3Vexue0GWrMQLhUzG8cuUb2pX4+FVVOueRBDj Le82GMr1qyXGKaY54XHZkCI186ylwCIwcllyLHbaGfazlpL+Y3/9cL9beRDJmvU18/Ju ya6IAExrO0iYvIgcAh5kTOHAfyjA01Db3DmLLoSEWVUCx/fFMEOiSrBQ44LbWqwKaFqA ocxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=lC5Dvzlw; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-73191-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73191-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y15-20020a170906070f00b00a3f033ce7e8si582005ejb.243.2024.02.20.06.47.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 06:47:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73191-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=lC5Dvzlw; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-73191-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73191-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0CABA1F251FE for ; Tue, 20 Feb 2024 14:47:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E5BE6EB6D; Tue, 20 Feb 2024 14:47:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="lC5Dvzlw" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB2782C6AA; Tue, 20 Feb 2024 14:47:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708440433; cv=none; b=JoKP3LaBx4KThUbOwxiGobiBST5IziBBC8NzyWrK12lqUBXdbhkLryJgIboifFX17FaoqufLsljbVPMddiMatTUGtHfVrUNa7gYTHPVOl84PKdFzLvK2QdqA2dQUykAoYnwbCUEVln6KSqJ/sUvE5nVKMRVvVoMw1uZY+6wxgx4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708440433; c=relaxed/simple; bh=pCdDjSGJ9J9PvY8Zh4xJ8tmH3oTP9TSlRh2eeBJpLzg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uyF7Tevcs96iJpKDXLcyeptiFhI9Mbp+MDfnfOC/fPMxSI2ICWVt7bCnmMM/CSh/OpHA2ZhIWeJO72xBKVOgSRx8cZ/90XTyFI+YxJ59veRItS4qToJw8tZPhBdFyhZaYuir8ugQsY0hKEq2K7tDuA8VqjQMRadUS2UclT+9YUs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=lC5Dvzlw; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=1zdNjHcqPugIf4Zw2EB6aLcTZtqonnwTaHUPJU0bi/w=; b=lC5DvzlwuEcreFh/z1w63BLTFZ tHnhJ9TvLr6D228PLFJn763Pc604Vq4m/SX4kMiBoZHnGGPC/hH3ypfuxx0CKLDUoNQwQ4DPlx3Vd EJs3qZ3eBvBB3kbeiqhE0tlQ7uT5TEIGlEp46ctcZO3LbGSe7E9VaE3vBKiftm0oC5Eg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rcROs-008I5V-Qt; Tue, 20 Feb 2024 15:47:14 +0100 Date: Tue, 20 Feb 2024 15:47:14 +0100 From: Andrew Lunn To: Simon Horman Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Ariel Elior , Manish Chopra , Jesse Brandeburg , Tony Nguyen , linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org Subject: Re: [PATCH net-next v4 4/9] net: ethernet: ixgbe: Convert EEE to use linkmodes Message-ID: <610e70a3-eb3e-4a64-87c8-d03a17332dcb@lunn.ch> References: <20240218-keee-u32-cleanup-v4-0-71f13b7c3e60@lunn.ch> <20240218-keee-u32-cleanup-v4-4-71f13b7c3e60@lunn.ch> <20240220120643.GZ40273@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240220120643.GZ40273@kernel.org> On Tue, Feb 20, 2024 at 12:06:43PM +0000, Simon Horman wrote: > On Sun, Feb 18, 2024 at 11:07:01AM -0600, Andrew Lunn wrote: > > Convert the tables to make use of ETHTOOL link mode bits, rather than > > the old u32 SUPPORTED speeds. Make use of the linkmode helps to set > > bits and compare linkmodes. As a result, the _u32 members of keee are > > no longer used, a step towards removing them. > > > > Signed-off-by: Andrew Lunn > > --- > > drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 48 ++++++++++++------------ > > 1 file changed, 25 insertions(+), 23 deletions(-) > > > > diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c > > ... > > > @@ -3436,28 +3437,29 @@ ixgbe_get_eee_fw(struct ixgbe_adapter *adapter, struct ethtool_keee *edata) > > if (rc) > > return rc; > > > > - edata->lp_advertised_u32 = 0; > > for (i = 0; i < ARRAY_SIZE(ixgbe_lp_map); ++i) { > > if (info[0] & ixgbe_lp_map[i].lp_advertised) > > - edata->lp_advertised_u32 |= ixgbe_lp_map[i].mac_speed; > > + linkmode_set_bit(ixgbe_lp_map[i].link_mode, > > + edata->lp_advertised); > > } > > > > - edata->supported_u32 = 0; > > for (i = 0; i < ARRAY_SIZE(ixgbe_ls_map); ++i) { > > if (hw->phy.eee_speeds_supported & ixgbe_ls_map[i].mac_speed) > > - edata->supported_u32 |= ixgbe_ls_map[i].supported; > > + linkmode_set_bit(ixgbe_lp_map[i].link_mode, > > + edata->lp_advertised); > > Hi Andrew, > > should this be edata->supported rather than edata->lp_advertised? Correct :-( Andrew