Skip to content

netshaper: Extend netshaper support

Mohsin Bashir netdev 4 versions – Applied

Status from this message: This series was applied to iproute2/iproute2-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 2 repliesApplied
  2. v36 patches 3 repliesSuperseded
  3. v26 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches5 repliesSuperseded

Changes in v4 from the cover letter

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

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/6netshaper: Extract parse_scope() and parse_rate() helpersinclude/utils.h netshaper/netshaper.c+34 -300 replies
2/6netshaper: Add bw-min and weight parameter supportnetshaper/netshaper.c+47 -120 replies
3/6netshaper: Extend show output with parent, bw-min and weightnetshaper/netshaper.c+65 -350 replies
4/6netshaper: Extract struct shaper_args and parse_shaper_arg() helpernetshaper/netshaper.c+72 -390 replies
5/6netshaper: Add group command for creating scheduling hierarchiesnetshaper/netshaper.c+280 -10 replies
6/6netshaper: Update man page for new parameters and group commandman/man8/netshaper.8+129 -210 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [iproute2-next V4 0/6] netshaper: Extend netshaper support

From: Mohsin Bashir <[email protected]>

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/[email protected]/
V2: https://lore.kernel.org/netdev/[email protected]/
V1: https://lore.kernel.org/netdev/[email protected]/

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(-)
Signature · 1 line
2.53.0-Meta