Skip to content

Commit 2a4f417

Browse files
Phil Sutterdavem330
authored andcommitted
net: sched: kill dead code in sch_choke.c
It looks like this has never been used at all. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 37b8e1c commit 2a4f417

1 file changed

Lines changed: 0 additions & 59 deletions

File tree

‎net/sched/sch_choke.c‎

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -553,65 +553,6 @@ static void choke_destroy(struct Qdisc *sch)
553553
choke_free(q->tab);
554554
}
555555

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-
615556
static struct sk_buff *choke_peek_head(struct Qdisc *sch)
616557
{
617558
struct choke_sched_data *q = qdisc_priv(sch);

0 commit comments

Comments
 (0)