lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
 <SJ2PR21MB40134002E6E91397B9E6CD22CA28A@SJ2PR21MB4013.namprd21.prod.outlook.com>
Date: Mon, 11 Aug 2025 20:16:55 +0000
From: Haiyang Zhang <haiyangz@...rosoft.com>
To: Erni Sri Satya Vennela <ernis@...ux.microsoft.com>,
	"stephen@...workplumber.org" <stephen@...workplumber.org>,
	"dsahern@...il.com" <dsahern@...il.com>, "netdev@...r.kernel.org"
	<netdev@...r.kernel.org>
CC: "shradhagupta@...ux.microsoft.com" <shradhagupta@...ux.microsoft.com>,
	Saurabh Singh Sengar <ssengar@...rosoft.com>, Dipayaan Roy
	<dipayanroy@...rosoft.com>, Erni Sri Satya Vennela <ernis@...rosoft.com>
Subject: RE: [PATCH iproute2-next v3] iproute2: Add 'netshaper' command to 'ip
 link' for netdev shaping



> -----Original Message-----
> From: Erni Sri Satya Vennela <ernis@...ux.microsoft.com>
> Sent: Monday, August 11, 2025 3:05 AM
> To: stephen@...workplumber.org; dsahern@...il.com; netdev@...r.kernel.org
> Cc: Haiyang Zhang <haiyangz@...rosoft.com>;
> shradhagupta@...ux.microsoft.com; Saurabh Singh Sengar
> <ssengar@...rosoft.com>; Dipayaan Roy <dipayanroy@...rosoft.com>; Erni Sri
> Satya Vennela <ernis@...rosoft.com>; Erni Sri Satya Vennela
> <ernis@...ux.microsoft.com>
> Subject: [PATCH iproute2-next v3] iproute2: Add 'netshaper' command to 'ip
> link' for netdev shaping
>
> 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.ker/
> nel.org%2Fall%2Fcover.1728460186.git.pabeni%40redhat.com%2F&data=05%7C02%7
> Chaiyangz%40microsoft.com%7C0ac998f8db0c4cf31d8208ddd8a5658b%7C72f988bf86f
> 141af91ab2d7cd011db47%7C1%7C0%7C638904927080914227%7CUnknown%7CTWFpbGZsb3d
> 8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpb
> CIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=WY7zqpx5F9Wnf0WbHUIxMDGbwmjwQysjTdD
> cPAZ5jzM%3D&reserved=0
> 2)
> https://lore.ker/
> nel.org%2Flkml%2F1750144656-2021-1-git-send-email-
> ernis%40linux.microsoft.com%2F&data=05%7C02%7Chaiyangz%40microsoft.com%7C0
> ac998f8db0c4cf31d8208ddd8a5658b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0
> %7C638904927080928775%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYi
> OiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C
> %7C&sdata=TmzKYLtKlU%2FphFWfa13toeOmJGAU1RgBBtRvp%2F3Wg5s%3D&reserved=0
>
> Install pkg-config and libmnl* packages to print kernel extack
> errors to stdout.
>
> Signed-off-by: Erni Sri Satya Vennela <ernis@...ux.microsoft.com>

Reviewed-by: Haiyang Zhang <haiyangz@...rosoft.com>



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ