Netdev List
 help / color / mirror / Atom feed
* [iproute2-next V4 0/6] netshaper: Extend netshaper support
@ 2026-05-18 20:23 Mohsin Bashir
  2026-05-18 20:23 ` [iproute2-next V4 1/6] netshaper: Extract parse_scope() and parse_rate() helpers Mohsin Bashir
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Mohsin Bashir @ 2026-05-18 20:23 UTC (permalink / raw)
  To: netdev; +Cc: alexander.duyck, dsahern, stephen, pabeni, kuba, ernis,
	mohsin.bashr

From: Mohsin Bashir <hmohsin@meta.com>

This series extends the netshaper CLI with missing parameter support
and adds the group command for building scheduling hierarchies.

The existing netshaper tool only supports setting bw-max on individual
shapers. This series adds the remaining shaper attributes (bw-min,
weight) needed for TX scheduling, and introduces the group command
which ties leaf shapers to a parent node in a single operation.

Changelog:
V4:
  Patch 2:
  - Reorder BW_MAX/BW_MIN to BW_MIN/BW_MAX in usage text

  Patch 5:
  - Extract parse_scope_id() to share handle/parent scope+id parsing
  - Extract parse_leaves() with dynamic allocation, removing the
    static NET_SHAPER_MAX_LEAVES limit
  - Add per-leaf weight and priority support in group command
  - Remove inline declarations
  - Skip parent nest when parent not specified
  - Use goto free_leaves for error cleanup

  Patch 6:
  - Document per-leaf weight and priority usage

V3: https://lore.kernel.org/netdev/20260511183915.797792-1-mohsin.bashr@gmail.com/
V2: https://lore.kernel.org/netdev/20260509022353.3470738-1-mohsin.bashr@gmail.com/
V1: https://lore.kernel.org/netdev/20260501011611.3533573-1-mohsin.bashr@gmail.com/

Mohsin Bashir (6):
  netshaper: Extract parse_scope() and parse_rate() helpers
  netshaper: Add bw-min and weight parameter support
  netshaper: Extend show output with parent, bw-min and weight
  netshaper: Extract struct shaper_args and parse_shaper_arg() helper
  netshaper: Add group command for creating scheduling hierarchies
  netshaper: Update man page for new parameters and group command

 include/utils.h       |   1 +
 man/man8/netshaper.8  | 150 ++++++++++--
 netshaper/netshaper.c | 554 +++++++++++++++++++++++++++++++++++-------
 3 files changed, 597 insertions(+), 108 deletions(-)

-- 
2.53.0-Meta

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-05-18 20:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-18 20:23 [iproute2-next V4 0/6] netshaper: Extend netshaper support Mohsin Bashir
2026-05-18 20:23 ` [iproute2-next V4 1/6] netshaper: Extract parse_scope() and parse_rate() helpers Mohsin Bashir
2026-05-18 20:23 ` [iproute2-next V4 2/6] netshaper: Add bw-min and weight parameter support Mohsin Bashir
2026-05-18 20:23 ` [iproute2-next V4 3/6] netshaper: Extend show output with parent, bw-min and weight Mohsin Bashir
2026-05-18 20:23 ` [iproute2-next V4 4/6] netshaper: Extract struct shaper_args and parse_shaper_arg() helper Mohsin Bashir
2026-05-18 20:23 ` [iproute2-next V4 5/6] netshaper: Add group command for creating scheduling hierarchies Mohsin Bashir
2026-05-18 20:23 ` [iproute2-next V4 6/6] netshaper: Update man page for new parameters and group command Mohsin Bashir

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox