diff options
-rw-r--r-- | net/sched/sch_choke.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/net/sched/sch_choke.c b/net/sched/sch_choke.c index 02bfd3d1c4f0..5ffb8b8337c7 100644 --- a/net/sched/sch_choke.c +++ b/net/sched/sch_choke.c | |||
@@ -553,65 +553,6 @@ static void choke_destroy(struct Qdisc *sch) | |||
553 | choke_free(q->tab); | 553 | choke_free(q->tab); |
554 | } | 554 | } |
555 | 555 | ||
556 | static struct Qdisc *choke_leaf(struct Qdisc *sch, unsigned long arg) | ||
557 | { | ||
558 | return NULL; | ||
559 | } | ||
560 | |||
561 | static unsigned long choke_get(struct Qdisc *sch, u32 classid) | ||
562 | { | ||
563 | return 0; | ||
564 | } | ||
565 | |||
566 | static void choke_put(struct Qdisc *q, unsigned long cl) | ||
567 | { | ||
568 | } | ||
569 | |||
570 | static unsigned long choke_bind(struct Qdisc *sch, unsigned long parent, | ||
571 | u32 classid) | ||
572 | { | ||
573 | return 0; | ||
574 | } | ||
575 | |||
576 | static struct tcf_proto __rcu **choke_find_tcf(struct Qdisc *sch, | ||
577 | unsigned long cl) | ||
578 | { | ||
579 | struct choke_sched_data *q = qdisc_priv(sch); | ||
580 | |||
581 | if (cl) | ||
582 | return NULL; | ||
583 | return &q->filter_list; | ||
584 | } | ||
585 | |||
586 | static int choke_dump_class(struct Qdisc *sch, unsigned long cl, | ||
587 | struct sk_buff *skb, struct tcmsg *tcm) | ||
588 | { | ||
589 | tcm->tcm_handle |= TC_H_MIN(cl); | ||
590 | return 0; | ||
591 | } | ||
592 | |||
593 | static void choke_walk(struct Qdisc *sch, struct qdisc_walker *arg) | ||
594 | { | ||
595 | if (!arg->stop) { | ||
596 | if (arg->fn(sch, 1, arg) < 0) { | ||
597 | arg->stop = 1; | ||
598 | return; | ||
599 | } | ||
600 | arg->count++; | ||
601 | } | ||
602 | } | ||
603 | |||
604 | static const struct Qdisc_class_ops choke_class_ops = { | ||
605 | .leaf = choke_leaf, | ||
606 | .get = choke_get, | ||
607 | .put = choke_put, | ||
608 | .tcf_chain = choke_find_tcf, | ||
609 | .bind_tcf = choke_bind, | ||
610 | .unbind_tcf = choke_put, | ||
611 | .dump = choke_dump_class, | ||
612 | .walk = choke_walk, | ||
613 | }; | ||
614 | |||
615 | static struct sk_buff *choke_peek_head(struct Qdisc *sch) | 556 | static struct sk_buff *choke_peek_head(struct Qdisc *sch) |
616 | { | 557 | { |
617 | struct choke_sched_data *q = qdisc_priv(sch); | 558 | struct choke_sched_data *q = qdisc_priv(sch); |