aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_red.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2009-09-04 02:41:15 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-06 05:06:12 -0400
commit71ebe5e91947392bc276af713827eab12b6db8e4 (patch)
tree198ff02e23f8606ff2a3bec51c7044ec408e19c4 /net/sched/sch_red.c
parentc9f1d0389b962521af1e2b699c8ee5e299d77b85 (diff)
net_sched: make cls_ops->tcf_chain() optional
Some qdiscs don't support attaching filters. Handle this centrally in cls_api and return a proper errno code (EOPNOTSUPP) instead of EINVAL. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_red.c')
-rw-r--r--net/sched/sch_red.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/net/sched/sch_red.c b/net/sched/sch_red.c
index 2bdf241f6315..c27b8023f079 100644
--- a/net/sched/sch_red.c
+++ b/net/sched/sch_red.c
@@ -331,11 +331,6 @@ static void red_walk(struct Qdisc *sch, struct qdisc_walker *walker)
331 } 331 }
332} 332}
333 333
334static struct tcf_proto **red_find_tcf(struct Qdisc *sch, unsigned long cl)
335{
336 return NULL;
337}
338
339static const struct Qdisc_class_ops red_class_ops = { 334static const struct Qdisc_class_ops red_class_ops = {
340 .graft = red_graft, 335 .graft = red_graft,
341 .leaf = red_leaf, 336 .leaf = red_leaf,
@@ -344,7 +339,6 @@ static const struct Qdisc_class_ops red_class_ops = {
344 .change = red_change_class, 339 .change = red_change_class,
345 .delete = red_delete, 340 .delete = red_delete,
346 .walk = red_walk, 341 .walk = red_walk,
347 .tcf_chain = red_find_tcf,
348 .dump = red_dump_class, 342 .dump = red_dump_class,
349}; 343};
350 344