diff options
author | Jarek Poplawski <jarkao2@gmail.com> | 2010-08-09 08:18:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-10 04:39:13 -0400 |
commit | da7115d94a15f53efa224e47f16c57fd1998355f (patch) | |
tree | ac7b43d73deeaed5b525ea0d1fdeb1feb0d01f0d | |
parent | e88db3bd46801a9c2cd0ac5e46122d47c285faec (diff) |
pkt_sched: sch_sfq: Add dummy unbind_tcf and put handles. Was: [PATCH] sfq: add dummy bind/unbind handles
Add dummy .unbind_tcf and .put qdisc class ops for easier verification.
(All other schedulers have it like this.)
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sched/sch_sfq.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c index 534f33231c17..d8e0ae5fa16a 100644 --- a/net/sched/sch_sfq.c +++ b/net/sched/sch_sfq.c | |||
@@ -519,6 +519,10 @@ static unsigned long sfq_bind(struct Qdisc *sch, unsigned long parent, | |||
519 | return 0; | 519 | return 0; |
520 | } | 520 | } |
521 | 521 | ||
522 | static void sfq_put(struct Qdisc *q, unsigned long cl) | ||
523 | { | ||
524 | } | ||
525 | |||
522 | static struct tcf_proto **sfq_find_tcf(struct Qdisc *sch, unsigned long cl) | 526 | static struct tcf_proto **sfq_find_tcf(struct Qdisc *sch, unsigned long cl) |
523 | { | 527 | { |
524 | struct sfq_sched_data *q = qdisc_priv(sch); | 528 | struct sfq_sched_data *q = qdisc_priv(sch); |
@@ -572,8 +576,10 @@ static void sfq_walk(struct Qdisc *sch, struct qdisc_walker *arg) | |||
572 | 576 | ||
573 | static const struct Qdisc_class_ops sfq_class_ops = { | 577 | static const struct Qdisc_class_ops sfq_class_ops = { |
574 | .get = sfq_get, | 578 | .get = sfq_get, |
579 | .put = sfq_put, | ||
575 | .tcf_chain = sfq_find_tcf, | 580 | .tcf_chain = sfq_find_tcf, |
576 | .bind_tcf = sfq_bind, | 581 | .bind_tcf = sfq_bind, |
582 | .unbind_tcf = sfq_put, | ||
577 | .dump = sfq_dump_class, | 583 | .dump = sfq_dump_class, |
578 | .dump_stats = sfq_dump_class_stats, | 584 | .dump_stats = sfq_dump_class_stats, |
579 | .walk = sfq_walk, | 585 | .walk = sfq_walk, |