[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250418165324.GA29127@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net>
Date: Fri, 18 Apr 2025 09:53:24 -0700
From: Erni Sri Satya Vennela <ernis@...ux.microsoft.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Stephen Hemminger <stephen@...workplumber.org>, kys@...rosoft.com,
haiyangz@...rosoft.com, wei.liu@...nel.org, decui@...rosoft.com,
andrew+netdev@...n.ch, davem@...emloft.net, edumazet@...gle.com,
pabeni@...hat.com, longli@...rosoft.com, kotaranov@...rosoft.com,
horms@...nel.org, kent.overstreet@...ux.dev, brett.creeley@....com,
schakrabarti@...ux.microsoft.com, shradhagupta@...ux.microsoft.com,
ssengar@...ux.microsoft.com, rosenp@...il.com,
paulros@...rosoft.com, linux-hyperv@...r.kernel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-rdma@...r.kernel.org
Subject: Re: [PATCH 2/3] net: mana: Add sched HTB offload support
On Thu, Apr 17, 2025 at 05:00:52PM -0700, Jakub Kicinski wrote:
> On Thu, 17 Apr 2025 12:47:27 -0700 Erni Sri Satya Vennela wrote:
> > > A single leaf is just Token Bucket Filter (TBF).
> > > Are you just trying to support some vendor config?
> > TBF does not support hardware offloading.
>
> Did you take a look at net_shapers? Will it not let you set a global
> config the way you intend?
Yes, Jakub. I have reviewed net-shapers and noted that it is not
integrated into the kernel like tc. I mean there isn't a standard,
general-purpose command for net-shaper in Linux. It is used by other
tools or potentially device-specific drivers that want to leverage the
NIC's hardware shaping capabilities.
To configure shaping with net-shapers, users would need to execute a
command similar to:
./tools/net/ynl/cli.py --spec Documentation/netlink/specs/shaper.yaml
--do set --json '{"ifindex":'$IFINDEX',
"shaper": {"handle":
{"scope": "node", "id":'$NODEID' },
"bw-max": 2000000}}'
Ref: https://lore.kernel.org/all/cover.1722357745.git.pabeni@redhat.com/
Given the simplicity of code implementation and ease of use for users in
writing commands, I opted for tc-htb.
Powered by blists - more mailing lists