]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc/taprio: don't print netlink attributes which weren't reported by the kernel
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 7 Aug 2023 22:09:35 +0000 (01:09 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 9 Aug 2023 20:40:00 +0000 (13:40 -0700)
commita5f695cbb1308b085ca2ff898f2d25c04a48265a
tree38d3aad297fae99ac7017b944688b309b28214a4
parentcb93753e1042d07e2167bd0decf933fcf19a4631
tc/taprio: don't print netlink attributes which weren't reported by the kernel

When an admin schedule is pending and hasn't yet become operational, the
kernel will report only the parameters of the admin schedule in a nested
TCA_TAPRIO_ATTR_ADMIN_SCHED attribute.

However, we default to printing zeroes even for the parameters of the
operational base time, when that doesn't exist.

Fixes: 0dd16449356f ("tc: Add support for configuring the taprio scheduler")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/q_taprio.c