Lines Matching refs:Qdisc
72 struct Qdisc { struct
74 struct Qdisc *sch, argument
76 struct sk_buff * (*dequeue)(struct Qdisc *sch); argument
121 struct Qdisc *next_sched; argument
133 static inline void qdisc_refcount_inc(struct Qdisc *qdisc) in qdisc_refcount_inc() argument
144 static inline struct Qdisc *qdisc_refcount_inc_nz(struct Qdisc *qdisc) in qdisc_refcount_inc_nz()
157 static inline bool qdisc_is_running(struct Qdisc *qdisc) in qdisc_is_running()
164 static inline bool nolock_qdisc_is_empty(const struct Qdisc *qdisc) in nolock_qdisc_is_empty()
169 static inline bool qdisc_is_percpu_stats(const struct Qdisc *q) in qdisc_is_percpu_stats()
174 static inline bool qdisc_is_empty(const struct Qdisc *qdisc) in qdisc_is_empty()
184 static inline bool qdisc_run_begin(struct Qdisc *qdisc) in qdisc_run_begin()
227 static inline void qdisc_run_end(struct Qdisc *qdisc) in qdisc_run_end()
240 static inline bool qdisc_may_bulk(const struct Qdisc *qdisc) in qdisc_may_bulk()
258 struct netdev_queue * (*select_queue)(struct Qdisc *, struct tcmsg *);
259 int (*graft)(struct Qdisc *, unsigned long cl,
260 struct Qdisc *, struct Qdisc **,
262 struct Qdisc * (*leaf)(struct Qdisc *, unsigned long cl);
263 void (*qlen_notify)(struct Qdisc *, unsigned long);
266 unsigned long (*find)(struct Qdisc *, u32 classid);
267 int (*change)(struct Qdisc *, u32, u32,
270 int (*delete)(struct Qdisc *, unsigned long,
272 void (*walk)(struct Qdisc *, struct qdisc_walker * arg);
275 struct tcf_block * (*tcf_block)(struct Qdisc *sch,
278 unsigned long (*bind_tcf)(struct Qdisc *, unsigned long,
280 void (*unbind_tcf)(struct Qdisc *, unsigned long);
283 int (*dump)(struct Qdisc *, unsigned long,
285 int (*dump_stats)(struct Qdisc *, unsigned long,
304 struct Qdisc *sch,
306 struct sk_buff * (*dequeue)(struct Qdisc *);
307 struct sk_buff * (*peek)(struct Qdisc *);
309 int (*init)(struct Qdisc *sch, struct nlattr *arg,
311 void (*reset)(struct Qdisc *);
312 void (*destroy)(struct Qdisc *);
313 int (*change)(struct Qdisc *sch,
316 void (*attach)(struct Qdisc *sch);
317 int (*change_tx_queue_len)(struct Qdisc *, unsigned int);
318 void (*change_real_num_tx)(struct Qdisc *sch,
321 int (*dump)(struct Qdisc *, struct sk_buff *);
322 int (*dump_stats)(struct Qdisc *, struct gnet_dump *);
324 void (*ingress_block_set)(struct Qdisc *sch,
326 void (*egress_block_set)(struct Qdisc *sch,
328 u32 (*ingress_block_get)(struct Qdisc *sch);
329 u32 (*egress_block_get)(struct Qdisc *sch);
480 struct Qdisc *q;
521 static inline int qdisc_qlen_cpu(const struct Qdisc *q) in qdisc_qlen_cpu()
526 static inline int qdisc_qlen(const struct Qdisc *q) in qdisc_qlen()
531 static inline int qdisc_qlen_sum(const struct Qdisc *q) in qdisc_qlen_sum()
551 static inline spinlock_t *qdisc_lock(struct Qdisc *qdisc) in qdisc_lock()
556 static inline struct Qdisc *qdisc_root(const struct Qdisc *qdisc) in qdisc_root()
558 struct Qdisc *q = rcu_dereference_rtnl(qdisc->dev_queue->qdisc); in qdisc_root()
563 static inline struct Qdisc *qdisc_root_bh(const struct Qdisc *qdisc) in qdisc_root_bh()
568 static inline struct Qdisc *qdisc_root_sleeping(const struct Qdisc *qdisc) in qdisc_root_sleeping()
584 static inline spinlock_t *qdisc_root_lock(const struct Qdisc *qdisc) in qdisc_root_lock()
586 struct Qdisc *root = qdisc_root(qdisc); in qdisc_root_lock()
592 static inline spinlock_t *qdisc_root_sleeping_lock(const struct Qdisc *qdisc) in qdisc_root_sleeping_lock()
594 struct Qdisc *root = qdisc_root_sleeping(qdisc); in qdisc_root_sleeping_lock()
600 static inline struct net_device *qdisc_dev(const struct Qdisc *qdisc) in qdisc_dev()
605 static inline void sch_tree_lock(struct Qdisc *q) in sch_tree_lock()
613 static inline void sch_tree_unlock(struct Qdisc *q) in sch_tree_unlock()
621 extern struct Qdisc noop_qdisc;
682 void qdisc_class_hash_grow(struct Qdisc *, struct Qdisc_class_hash *);
693 struct Qdisc *dev_graft_qdisc(struct netdev_queue *dev_queue,
694 struct Qdisc *qdisc);
695 void qdisc_reset(struct Qdisc *qdisc);
696 void qdisc_put(struct Qdisc *qdisc);
697 void qdisc_put_unlocked(struct Qdisc *qdisc);
698 void qdisc_tree_reduce_backlog(struct Qdisc *qdisc, int n, int len);
700 int qdisc_offload_dump_helper(struct Qdisc *q, enum tc_setup_type type,
702 void qdisc_offload_graft_helper(struct net_device *dev, struct Qdisc *sch,
703 struct Qdisc *new, struct Qdisc *old,
708 qdisc_offload_dump_helper(struct Qdisc *q, enum tc_setup_type type, in qdisc_offload_dump_helper()
716 qdisc_offload_graft_helper(struct net_device *dev, struct Qdisc *sch, in qdisc_offload_graft_helper()
717 struct Qdisc *new, struct Qdisc *old, in qdisc_offload_graft_helper()
723 struct Qdisc *qdisc_alloc(struct netdev_queue *dev_queue,
726 void qdisc_free(struct Qdisc *qdisc);
727 struct Qdisc *qdisc_create_dflt(struct netdev_queue *dev_queue,
757 struct Qdisc *qdisc; in qdisc_reset_all_tx_gt()
777 const struct Qdisc *q = rcu_dereference(txq->qdisc); in qdisc_all_tx_empty()
832 const struct Qdisc *sch) in qdisc_calculate_pkt_len()
842 static inline int qdisc_enqueue(struct sk_buff *skb, struct Qdisc *sch, in qdisc_enqueue()
866 static inline void qdisc_bstats_cpu_update(struct Qdisc *sch, in qdisc_bstats_cpu_update()
872 static inline void qdisc_bstats_update(struct Qdisc *sch, in qdisc_bstats_update()
878 static inline void qdisc_qstats_backlog_dec(struct Qdisc *sch, in qdisc_qstats_backlog_dec()
884 static inline void qdisc_qstats_cpu_backlog_dec(struct Qdisc *sch, in qdisc_qstats_cpu_backlog_dec()
890 static inline void qdisc_qstats_backlog_inc(struct Qdisc *sch, in qdisc_qstats_backlog_inc()
896 static inline void qdisc_qstats_cpu_backlog_inc(struct Qdisc *sch, in qdisc_qstats_cpu_backlog_inc()
902 static inline void qdisc_qstats_cpu_qlen_inc(struct Qdisc *sch) in qdisc_qstats_cpu_qlen_inc()
907 static inline void qdisc_qstats_cpu_qlen_dec(struct Qdisc *sch) in qdisc_qstats_cpu_qlen_dec()
912 static inline void qdisc_qstats_cpu_requeues_inc(struct Qdisc *sch) in qdisc_qstats_cpu_requeues_inc()
917 static inline void __qdisc_qstats_drop(struct Qdisc *sch, int count) in __qdisc_qstats_drop()
932 static inline void qdisc_qstats_drop(struct Qdisc *sch) in qdisc_qstats_drop()
937 static inline void qdisc_qstats_cpu_drop(struct Qdisc *sch) in qdisc_qstats_cpu_drop()
942 static inline void qdisc_qstats_overlimit(struct Qdisc *sch) in qdisc_qstats_overlimit()
947 static inline int qdisc_qstats_copy(struct gnet_dump *d, struct Qdisc *sch) in qdisc_qstats_copy()
954 static inline void qdisc_qstats_qlen_backlog(struct Qdisc *sch, __u32 *qlen, in qdisc_qstats_qlen_backlog()
964 static inline void qdisc_tree_flush_backlog(struct Qdisc *sch) in qdisc_tree_flush_backlog()
972 static inline void qdisc_purge_queue(struct Qdisc *sch) in qdisc_purge_queue()
1004 static inline int qdisc_enqueue_tail(struct sk_buff *skb, struct Qdisc *sch) in qdisc_enqueue_tail()
1037 static inline struct sk_buff *qdisc_dequeue_head(struct Qdisc *sch) in qdisc_dequeue_head()
1068 static inline unsigned int __qdisc_queue_drop_head(struct Qdisc *sch, in __qdisc_queue_drop_head()
1085 static inline struct sk_buff *qdisc_peek_head(struct Qdisc *sch) in qdisc_peek_head()
1093 static inline struct sk_buff *qdisc_peek_dequeued(struct Qdisc *sch) in qdisc_peek_dequeued()
1112 static inline void qdisc_update_stats_at_dequeue(struct Qdisc *sch, in qdisc_update_stats_at_dequeue()
1126 static inline void qdisc_update_stats_at_enqueue(struct Qdisc *sch, in qdisc_update_stats_at_enqueue()
1139 static inline struct sk_buff *qdisc_dequeue_peeked(struct Qdisc *sch) in qdisc_dequeue_peeked()
1175 static inline void qdisc_reset_queue(struct Qdisc *sch) in qdisc_reset_queue()
1181 static inline struct Qdisc *qdisc_replace(struct Qdisc *sch, struct Qdisc *new, in qdisc_replace()
1182 struct Qdisc **pold) in qdisc_replace()
1184 struct Qdisc *old; in qdisc_replace()
1196 static inline void rtnl_qdisc_drop(struct sk_buff *skb, struct Qdisc *sch) in rtnl_qdisc_drop()
1202 static inline int qdisc_drop_cpu(struct sk_buff *skb, struct Qdisc *sch, in qdisc_drop_cpu()
1211 static inline int qdisc_drop(struct sk_buff *skb, struct Qdisc *sch, in qdisc_drop()
1220 static inline int qdisc_drop_all(struct sk_buff *skb, struct Qdisc *sch, in qdisc_drop_all()
1325 void mini_qdisc_pair_init(struct mini_Qdisc_pair *miniqp, struct Qdisc *qdisc,
1330 void mq_change_real_num_tx(struct Qdisc *sch, unsigned int new_real_tx);