[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <796ca41f-37a1-4bdb-9de2-e52a2c11ff49@gmail.com>
Date: Mon, 28 Jul 2025 12:15:19 -0600
From: David Ahern <dsahern@...il.com>
To: Erni Sri Satya Vennela <ernis@...ux.microsoft.com>,
stephen@...workplumber.org, netdev@...r.kernel.org
Cc: haiyangz@...rosoft.com, shradhagupta@...ux.microsoft.com,
ssengar@...rosoft.com, ernis@...rosoft.com
Subject: Re: [PATCH iproute2-next] iproute2: Add 'netshaper' command to 'ip
link' for netdev shaping
On 7/28/25 3:14 AM, Erni Sri Satya Vennela wrote:
> Add support for the netshaper Generic Netlink
> family to iproute2. Introduce a new subcommand to `ip link` for
> configuring netshaper parameters directly from userspace.
>
> This interface allows users to set shaping attributes (such as speed)
> which are passed to the kernel to perform the corresponding netshaper
> operation.
>
> Example usage:
> $ip link netshaper { set | get | delete } dev DEVNAME \
> handle scope SCOPE id ID \
> [ speed SPEED ]
>
> Internally, this triggers a kernel call to apply the shaping
> configuration to the specified network device.
>
> Currently, the tool supports the following functionalities:
> - Setting speed in Mbps, enabling bandwidth clamping for
> a network device that support netshaper operations.
> - Deleting the current configuration.
> - Querying the existing configuration.
>
> Additional netshaper operations will be integrated into the tool
> as per requirement.
>
> This change enables easy and scriptable configuration of bandwidth
> shaping for devices that use the netshaper Netlink family.
>
> Corresponding net-next patches:
> 1) https://lore.kernel.org/all/cover.1728460186.git.pabeni@redhat.com/
> 2) https://lore.kernel.org/lkml/1750144656-2021-1-git-send-email-ernis@linux.microsoft.com/
>
> Signed-off-by: Erni Sri Satya Vennela <ernis@...ux.microsoft.com>
> ---
> include/uapi/linux/netshaper.h | 92 +++++++++++++++++
the file in the kernel tree is net_shaper.h? drop it from the patch and
ask for it to be added to the uapi files when posting the next version.
Powered by blists - more mailing lists