diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-10-13 15:01:04 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-16 23:00:41 +0300 |
commit | 74e3be6021d22df2ffcb691eae1affeb2bd0128e (patch) | |
tree | 11a0c965050d8031cc34cd526abc29da7e29acf1 /include/net/sch_generic.h | |
parent | 1abf272022cf1d18469405f47b4ec49c6a3125db (diff) | |
download | linux-74e3be6021d22df2ffcb691eae1affeb2bd0128e.tar.xz |
net: sched: use tcf_block_q helper to get q pointer for sch_tree_lock
Use tcf_block_q helper to get q pointer to be used for direct call of
sch_tree_lock/unlock instead of tcf_tree_lock/unlock.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sch_generic.h')
-rw-r--r-- | include/net/sch_generic.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 9b2cb91dc0d9..0aea9e23e97a 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -359,9 +359,6 @@ static inline void sch_tree_unlock(const struct Qdisc *q) spin_unlock_bh(qdisc_root_sleeping_lock(q)); } -#define tcf_tree_lock(tp) sch_tree_lock((tp)->q) -#define tcf_tree_unlock(tp) sch_tree_unlock((tp)->q) - extern struct Qdisc noop_qdisc; extern struct Qdisc_ops noop_qdisc_ops; extern struct Qdisc_ops pfifo_fast_ops; |