diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2026-05-10 22:29:03 +0300 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-05-12 17:15:00 +0300 |
| commit | b62b29e6de6711f5918940aa6ff2bbab6d6af502 (patch) | |
| tree | edc4db4d9d4be41478deae42740dbf7db7c25a84 /tools/lib/python/feat | |
| parent | 8d5806c600fddb907ebe378f9c366d4b52ac3a39 (diff) | |
| download | linux-b62b29e6de6711f5918940aa6ff2bbab6d6af502.tar.xz | |
net: shaper: enforce singleton NETDEV scope with id 0
The NETDEV scope represents a singleton root shaper in the per-device
hierarchy. All code assumes NETDEV shapers have id 0:
net_shaper_default_parent() hardcodes parent->id = 0 when returning
the NETDEV parent for QUEUE/NODE children, and the UAPI documentation
describes NETDEV scope as "the main shaper" (singular, not plural).
Make sure we reject non-0 IDs.
Fixes: 4b623f9f0f59 ("net-shapers: implement NL get operation")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://patch.msgid.link/20260510192904.3987113-10-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/lib/python/feat')
0 files changed, 0 insertions, 0 deletions
