Article View: linux.kernel.netdev
Article #3562Re: [PATCH net-next v2 13/14] ice: represent RSS LUTs as devlink resources
From: Simon Horman
Date: Thu, 15 Oct 2026 11:05
Date: Thu, 15 Oct 2026 11:05
56 lines
8518 bytes
8518 bytes
On Fri, Oct 09, 2026 at 02:04:24PM +0200, Przemek Kitszel wrote: > E800 family offers three kinds of RSS LUTs: VSI LUT (sized 64), GLOBAL LUT > (sized 512), and PF LUT (sized 2048). Until now the GLOBAL kind was not > used at all. There are two possible usages for it, subsequent commit will > give VF option to acquire it, and this one enables PF to switch between PF > LUT and GLOBAL LUT - switching to smaller one is, again, to make it > possible for VF to then acquire the former one. > > Devlink resources are used to let user show current usage and change the > allocation, see examples below. > > Default state on 8-port card, asking for aggregate "whole device" usage, > note that there are as many PF LUTs as there is PFs, and, for e810, there > are 16 GLOBAL LUTs: > $ devlink resource show devlink_index/11 > devlink_index/11: > name rss size 8 unit entry size_min 0 size_max 24 size_gran 1 dpipe_tables none > resources: > name lut_512 size 0 unit entry size_min 0 size_max 16 size_gran 1 dpipe_tables none > name lut_2048 size 8 unit entry size_min 0 size_max 8 size_gran 1 dpipe_tables none > > Now let's add GLOBAL LUT for a single PF (on one-port NIC): > $ sudo devlink resource set pci/0000:18:00.0 path rss/lut_512 size 1 > And show it's resources after that: > $ devlink resource show pci/0000:18:00.0 > pci/0000:18:00.0: > name rss size 2 unit entry size_min 0 size_max 2 size_gran 1 dpipe_tables none > resources: > name lut_512 size 1 unit entry size_min 0 size_max 1 size_gran 1 dpipe_tables none > name lut_2048 size 1 unit entry size_min 0 size_max 1 size_gran 1 dpipe_tables none > Let's take the PF LUT out of that PF afterwards: > $ sudo devlink resource set pci/0000:18:00.0 path rss/lut_2048 size 0 > now `ethtool -x $ifacename` will report smaller RSS table. > > Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Hi Przemek, With this patch applied the following errors show up for x86_64 W=1 builds with gcc 16.2.1. .../resource.c:340:17: error: typename in expression .../resource.c:340:21: error: Expected ; at end of statement .../resource.c:340:21: error: got rel_err .../resource.c:340:17: error: undefined identifier 'int' .../resource.c:342:17: error: undefined identifier 'rel_err' .../resource.c:343:21: error: undefined identifier 'rel_err' .../resource.c:344:25: error: undefined identifier 'rel_err' .../resource.c:344:25: error: undefined identifier 'rel_err' .../resource.c:347:39: error: undefined identifier 'rel_err' ... -- pw-bot: changes-requested
Technical Details
Message-ID:
<20261015110537.GF83879@horms.kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346701-linux-kernel-netdev=dewy.ruReferences:
<20261009121433.30347-1-przemyslaw.kitszel@intel.com> <20261009121433.30347-14-przemyslaw.kitszel@intel.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346701-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 13/14] ice: represent RSS LUTs as devlink resources Date: Thu, 15 Oct 2026 12:05:37 +0100 Organization: Usenet Network Message-ID: <20261015110537.GF83879@horms.kernel.org> References: <20261009121433.30347-1-przemyslaw.kitszel@intel.com> <20261009121433.30347-14-przemyslaw.kitszel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2516519"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:kiJ/l9cLnOpwfOe2/s4EM8vvu+4= sha256:HMyZXLxv+x1lB6JtNwe/6Ych9yMD+nPF6UYEsnkIYjM= sha1:jzhbNaLPKxRb1QBR6nPDo6hSgsg= sha256:+KWDEB99JBWEJ25qwyrTY7ycmwQCi9iuMLD9CmtbaP4= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id B8C471102E2; Thu, 15 Oct 2026 14:20:24 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.34 X-Spam-Status: No, score=-1.34 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IzMeazQeTFlV; Thu, 15 Oct 2026 14:20:22 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-346701-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id B01961102DB; Thu, 15 Oct 2026 14:20:13 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 119D44419A; Thu, 15 Oct 2026 11:05:49 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43CA54BFE79; Thu, 15 Oct 2026 11:05:45 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="l6LCn8t0" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 255713EDE6E for <netdev@vger.kernel.org>; Thu, 15 Oct 2026 11:05:43 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792062345; cv=none; b=swCA8ND7Aj6CxFZR9dnqIWo+JWha0j7Sbh6eFBM6tV/aVegTvXd4nhrmxxUMVLwlBbkLtwbTKjwRD5LeCW+dJipR47xat6K9xFrbDoDqQlnKAgjaH62/yDf3/DQU2mMz2plMgPzByeEiTVJBJQku+cP5Zd9t0DQP/+Veg78we1w= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792062345; c=relaxed/simple; bh=qym+Nej6oyhMta2vS88GxtdbWI9x+NtBotNnxLHLiag=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=g6F++ox8smdFhD+xSm9ccikxILp9orhfSdv9GFbzcbHP//eUs6hu24+fW8rwV6sRp77sy1fqES5W+nExpH2y/YncKugG77U8pGstwQ6MQPvVVwPvw1QhCTYgxiOOmTjPHF4OVKnYKkUiQHJxgmJfn7owm/LVUY/f3CH+OrBGEu8= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=l6LCn8t0; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90C2F1F000C6; Thu, 15 Oct 2026 11:05:39 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792062343; bh=gpSCGiwFK8jb1vIu0OazDdrhB4i9b6EHzc8RrbUAqCI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=l6LCn8t04D+Qv5obZrwkKu8P27FNKN0hPhMkk36APmayhUMkDhMmutsQ1Nc+PqAYX psXMIXwulx7BOjShXFADnzt8VSBmuN0KbQ1iSrc6YZCgZybzayie/EcqHkV9GiF0h8 y7wy7ExO0/AmEtflGZjuML+Yxl0UyA3+sQIOqgJC4eMoyz9oxSwfC1QAqJjtmbeTxz U/y7dSurYhkre+bADIq5VDkPZ0cEPDuzA05Jonj/42MASVqK1y9LqTlUMqYvQKRceJ sohQpW+in6+g2CExeFNw+5Zg8lYkvEWK2AunJywm0LmJo1biuzOA+KTKIVI5yqfQvo 825RaNlz91EiA== X-Cc: netdev@vger.kernel.org, Jakub Kicinski <kuba@kernel.org>, Jiri Pirko <jiri@resnulli.us>, Tony Nguyen <anthony.l.nguyen@intel.com>, Aleksandr Loktionov <aleksandr.loktionov@intel.com>, Michal Schmidt <mschmidt@redhat.com>, intel-wired-lan@lists.osuosl.org, edumazet@kernel.org, pabeni@redhat.com, davem@davemloft.net, Jonathan Corbet <corbet@lwn.net>, skhan@linuxfoundation.org, rdunlap@infradead.org, andrew+netdev@lunn.ch, saeedm@nvidia.com, tariqt@nvidia.com, leon@kernel.org, mbloch@nvidia.com, jacob.e.keller@intel.com, jedrzej.jagielski@intel.com, anzaki@gmail.com, brett.creeley@amd.com, jtornosm@redhat.com, ohartoov@nvidia.com X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <20261009121433.30347-14-przemyslaw.kitszel@intel.com>