mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
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>
This commit is contained in:
parent
1abf272022
commit
74e3be6021
2 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue