diff options
Diffstat (limited to 'net/sched/sch_tbf.c')
-rw-r--r-- | net/sched/sch_tbf.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/net/sched/sch_tbf.c b/net/sched/sch_tbf.c index e22dfe85e43e..8fb8107ab188 100644 --- a/net/sched/sch_tbf.c +++ b/net/sched/sch_tbf.c | |||
@@ -368,9 +368,6 @@ static int tbf_dump_class(struct Qdisc *sch, unsigned long cl, | |||
368 | { | 368 | { |
369 | struct tbf_sched_data *q = qdisc_priv(sch); | 369 | struct tbf_sched_data *q = qdisc_priv(sch); |
370 | 370 | ||
371 | if (cl != 1) /* only one class */ | ||
372 | return -ENOENT; | ||
373 | |||
374 | tcm->tcm_handle |= TC_H_MIN(1); | 371 | tcm->tcm_handle |= TC_H_MIN(1); |
375 | tcm->tcm_info = q->qdisc->handle; | 372 | tcm->tcm_info = q->qdisc->handle; |
376 | 373 | ||
@@ -410,17 +407,6 @@ static void tbf_put(struct Qdisc *sch, unsigned long arg) | |||
410 | { | 407 | { |
411 | } | 408 | } |
412 | 409 | ||
413 | static int tbf_change_class(struct Qdisc *sch, u32 classid, u32 parentid, | ||
414 | struct nlattr **tca, unsigned long *arg) | ||
415 | { | ||
416 | return -ENOSYS; | ||
417 | } | ||
418 | |||
419 | static int tbf_delete(struct Qdisc *sch, unsigned long arg) | ||
420 | { | ||
421 | return -ENOSYS; | ||
422 | } | ||
423 | |||
424 | static void tbf_walk(struct Qdisc *sch, struct qdisc_walker *walker) | 410 | static void tbf_walk(struct Qdisc *sch, struct qdisc_walker *walker) |
425 | { | 411 | { |
426 | if (!walker->stop) { | 412 | if (!walker->stop) { |
@@ -433,21 +419,13 @@ static void tbf_walk(struct Qdisc *sch, struct qdisc_walker *walker) | |||
433 | } | 419 | } |
434 | } | 420 | } |
435 | 421 | ||
436 | static struct tcf_proto **tbf_find_tcf(struct Qdisc *sch, unsigned long cl) | ||
437 | { | ||
438 | return NULL; | ||
439 | } | ||
440 | |||
441 | static const struct Qdisc_class_ops tbf_class_ops = | 422 | static const struct Qdisc_class_ops tbf_class_ops = |
442 | { | 423 | { |
443 | .graft = tbf_graft, | 424 | .graft = tbf_graft, |
444 | .leaf = tbf_leaf, | 425 | .leaf = tbf_leaf, |
445 | .get = tbf_get, | 426 | .get = tbf_get, |
446 | .put = tbf_put, | 427 | .put = tbf_put, |
447 | .change = tbf_change_class, | ||
448 | .delete = tbf_delete, | ||
449 | .walk = tbf_walk, | 428 | .walk = tbf_walk, |
450 | .tcf_chain = tbf_find_tcf, | ||
451 | .dump = tbf_dump_class, | 429 | .dump = tbf_dump_class, |
452 | }; | 430 | }; |
453 | 431 | ||