Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp596768lqh; Thu, 28 Mar 2024 10:25:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTHmiBvfcKpWGTTHQRE3J/FX35KJxMahQ9m2FWJV31q0QcpTuWi6FIXoHLr+JzbQ8ViIUXI3rJY322PFRN8WwnmGbA5hHhyi+cPi0WhA== X-Google-Smtp-Source: AGHT+IF/CLJ/3s+o9Rwmoc3/G4xP9I7eYw1BwD6qOMkvRQBoqHpi0synzHLR0oRL1iXuzkft0Vha X-Received: by 2002:a05:6a00:2290:b0:6ea:c449:ece9 with SMTP id f16-20020a056a00229000b006eac449ece9mr3766141pfe.31.1711646719383; Thu, 28 Mar 2024 10:25:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711646719; cv=pass; d=google.com; s=arc-20160816; b=xw7fnSH/xUs4IiAgXumD3KzA/fEa1lLYO6gVgWLgn5E3ecrnsKqgHinqvPXi0a9k0a lkjxQcfBnekVFHvaC0kAKFnPKKnlU37t5fyL2XhcZf2ibVi6zrnSByajacZPXWXJjG0s sQ0crCitfsmVHDShOX56HuK5aVx5eSdRpYe2CbCbheJq9YAipWJqwEOPx3l1kYQEAnZ3 CPDWEH3a5uXOxfuXk1ljdQR81xdMv2hLM9YEEFsDZOvp+PS1c5jccEUV1k1P5XoOZ7gI zKni9Mi8mEmX+qWavPp28vYZLKbzMfUwdFL1Uh7CYaGILQ/6Tifd/gBszAPm9tIbSqYZ +9Tw== 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=b1MdRNy7bJKu1/MfJfDx8gNFI5ej1bZyAb5EjT3paNc=; fh=DwtHuk7Utla2AzOJxAFOblYxoq1eeUG2Ro373znpZO8=; b=ywcnZxnEdPAnr7Alk9p5Hn598kXm7OqPtZvXA5B153t9gdjSBqJkp+HRQTD6aramwN ELrHmtZ/PXDNvE8vuxyUiOc+x3vAQ7wQvqtBwp3EO1fF/yWMIRXziW5GOAGxY6CNpV11 AnBUy/xZvH9gg8wPazXDoyZd1PacYsFzx73AwtHZ15pn/adLOL/AO0oYOyKK4bl3cNrx cqvNZlZ27C6j6Cj+4bT/F/ySbp33b255Lu0adDlPKmX8NdgjF3Gkep0cTSgTiClU6o/B VN+YecUq5dZiQfS3m9+dgxw4mE/y+uWkO4z3Id3qNIN1lyQJyi8AUmNRjbNKtAqDc76n vuPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dUiQfBep; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123365-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j15-20020a63b60f000000b005d8b5979996si1873587pgf.492.2024.03.28.10.25.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 10:25:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123365-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dUiQfBep; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123365-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1462229AE06 for ; Thu, 28 Mar 2024 17:25:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97D3980BFD; Thu, 28 Mar 2024 17:25:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dUiQfBep" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A3EE07EF07; Thu, 28 Mar 2024 17:25:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711646711; cv=none; b=onUkPxevWyWcAaUCOBf2oRv7WvqKbI7vp4WP+RkCpjIJVk5bMShvP1wwLYMW/Uofc3Ga2OqbWNxU666owLIIyIezWJsASd+h8s/3QuKs475mJ9GJ73yHtZHuIo95XEQlrCia2O4v2436/+K5AkHgfP6ucRW3HHR6Rh0r2spiw1M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711646711; c=relaxed/simple; bh=4a9MWViGRcqAECnsnUOxO078l7HkHOclyczdE+L8b8c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aOQuU5g+68M8nBulHfFEIfmKuVeCGBRMBbF2S6SsviFsWWCi3MUjz/3LV6TDjfJGhC499gG7rfxviSDQHyuoRi/U1+RxMJRB2g9GCEv9kV+UsghHHlDj2OqIziWKNsDw8kqk7x9BXwuJsaQ3Y1xEjqOKISH5ciBcOjj8jS2bDoU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dUiQfBep; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2763CC433C7; Thu, 28 Mar 2024 17:25:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711646710; bh=4a9MWViGRcqAECnsnUOxO078l7HkHOclyczdE+L8b8c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dUiQfBepPA1AMjGJxnXohBg6QiEDNBLJomxDyDgNcW8B75CzH+ezeW+gLtvY7+sU5 WC+RBJi5svnnsSTLvvxT2tjIkYskvRxRshDvWoFdgupCMwkckm+8uvBQzEhjDbhEDQ C2MovaXiTeODaQ0OX4QcbzcddvGpeUuEZHVOxlwF07scSjRLBHlNcpY/86iy6f2Rb2 OIPXLQBTobxv3TL2ViatQmUxGmwKTREhHjtQG8RIhNkxPyKxtFrOKzKKJRSDXzUBi6 0jIq3vnZC9uHb2DQxA3n0PmM4+f7/ASim9otgNOC+j2uDHRHcgZzPcKKPb+cHD0yaJ CMUiC3Wf0tU/A== Date: Thu, 28 Mar 2024 17:25:06 +0000 From: Simon Horman To: Ivan Vecera Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, mschmidt@redhat.com, aleksandr.loktionov@intel.com, jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Subject: Re: [PATCH iwl-next v2 7/7] i40e: Add and use helper to reconfigure TC for given VSI Message-ID: <20240328172506.GG651713@kernel.org> References: <20240327075733.8967-1-ivecera@redhat.com> <20240327075733.8967-8-ivecera@redhat.com> 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: <20240327075733.8967-8-ivecera@redhat.com> On Wed, Mar 27, 2024 at 08:57:33AM +0100, Ivan Vecera wrote: > Add helper i40e_vsi_reconfig_tc(vsi) that configures TC > for given VSI using previously stored TC bitmap. > > Effectively replaces open-coded patterns: > > enabled_tc = vsi->tc_config.enabled_tc; > vsi->tc_config.enabled_tc = 0; > i40e_vsi_config_tc(vsi, enabled_tc); > > Reviewed-by: Michal Schmidt > Signed-off-by: Ivan Vecera Reviewed-by: Simon Horman