]> git.ipfire.org Git - thirdparty/iproute2.git/commit
devlink: Update TC bandwidth parsing
authorCarolina Jubran <cjubran@nvidia.com>
Mon, 28 Jul 2025 15:44:38 +0000 (18:44 +0300)
committerDavid Ahern <dsahern@kernel.org>
Mon, 28 Jul 2025 16:42:40 +0000 (16:42 +0000)
commit1a60e903d949b202186a77a40c60510aceef5061
tree1711b628792ced1077a3007ad92d498bcb29f3f3
parentc83d1477f8b2a26f666e9925469a50a1197183f3
devlink: Update TC bandwidth parsing

Kernel commit 1bbdb81a9836 ("devlink: Fix excessive stack usage in rate TC bandwidth parsing")
introduced a dedicated attribute set (DEVLINK_RATE_TC_ATTR_*) for entries nested
under DEVLINK_ATTR_RATE_TC_BWS.

Update the parser to reflect this change by validating the nested
attributes and sync the UAPI header to include the changes.

Fixes: c83d1477f8b2 ("Add support for 'tc-bw' attribute in devlink-rate")
Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
devlink/devlink.c
include/uapi/linux/devlink.h