From mboxrd@z Thu Jan 1 00:00:00 1970 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 277C38C17 for ; Sat, 2 Dec 2023 02:37:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="thKnZh+X" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5262DC433C7; Sat, 2 Dec 2023 02:37:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701484625; bh=7TxLpYvEmtlsow83j0jT5kvwsPw4rjLxRzvb9Zl7cMs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=thKnZh+XhU645J7FTtcZmdC443aYOo2RGAG6K1/bOr0BKyEsUmxTh5rh7CCcBIsCz R8gebA+nTEq4l81+42rWf0X7cWxS7AwryjdVSwylUVcRKdBoac9swHmVdTIK1J1tMi 8WH7/N/TMoyu4Ul13X7V+VB6MTNFpI9jJ8rHZTPE4TSYgw1Vb1xKgCv3IKJS2h5Tib Mq27Eh+tsaS+HyR+pguHBSkwfQ+Hr1XRvIDI813QV7EFQnC8/TtLQGHwaHzkWNx/jr PwF36e3WMG0ifmEzJSeFYmiSgjBg+0/fiHG7XPQfE0fKqoKojCr7oq0+ypUs2Rqh+0 2WSEW54eNG4Lw== Date: Fri, 1 Dec 2023 18:37:04 -0800 From: Jakub Kicinski To: Pawel Kaminski Cc: intel-wired-lan@osuosl.org, netdev@vger.kernel.org, Michal Wilczynski , Przemek Kitszel Subject: Re: [PATCH iwl-next v1] ice: Add support for devlink loopback param. Message-ID: <20231201183704.382f5964@kernel.org> In-Reply-To: <20231201235949.62728-1-pawel.kaminski@intel.com> References: <20231201235949.62728-1-pawel.kaminski@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 1 Dec 2023 15:59:49 -0800 Pawel Kaminski wrote: > Add support for devlink loopback param. Supported values are "enabled", > "disabled" and "prioritized". Default configuration is set to "enabled. > > By default loopback traffic BW is locked to PF configured BW. First off - hairpin-bandwidth or some such would be a much better name. Second - you must explain every devlink param in Documentation/ Also admission ctrl vs prioritizing sounds like different knobs. > HW is > capable of higher speeds on loopback traffic. Loopback param set to > "prioritized" enables HW BW prioritization for VF to VF traffic, > effectively increasing BW between VFs. Applicable to 8x10G and 4x25G > cards. Not very clear what this means... So the VFs are Tx bandwidth limited to link speed. How does the device know it can admit extra traffic? Presumably this doesn't affect rates set by devlink rate? > To achieve max loopback BW one could: > - Make, as much as possible, fair distribution of loopback usages > between groups to gain maximal loopback BW. Can't parse what this means. > - Try to dedicate ports for loopback only traffic, with minimal network > traffic. Or this. > Changing loopback configuration will trigger CORER reset in order to take > effect. Changing config of a permanent param shouldn't trigger anything. Please see the documentation for expected behavior..