]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/tc_util.h
tc: introduce tc_qdisc_block_exists helper
authorJiri Pirko <jiri@mellanox.com>
Sat, 20 Jan 2018 10:00:27 +0000 (11:00 +0100)
committerDavid Ahern <dsahern@gmail.com>
Sun, 21 Jan 2018 18:42:35 +0000 (10:42 -0800)
commitd0bcedd549566a87354aa804df3be6be80681ee9
tree39eff360c9e06bbf57db5f0a2f15615643a938a6
parent40cf5b095965f5bda81d517020c4107fa74023e6
tc: introduce tc_qdisc_block_exists helper

This hepler used qdisc dump to list all qdisc and find if block index in
question is used by any of them. That means the block with specified
index exists.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
tc/tc_qdisc.c
tc/tc_util.h