diff options
author | Patrick McHardy <kaber@trash.net> | 2009-09-04 06:41:13 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-04 23:10:15 -0700 |
commit | c9f1d0389b962521af1e2b699c8ee5e299d77b85 (patch) | |
tree | e317e8b012be8b31b303bdb3f6ee5e3929de0a7b /net/sched/sch_ingress.c | |
parent | b1f57195585e376d1944c32c046359640b06a669 (diff) | |
download | kernel_goldelico_gta04-c9f1d0389b962521af1e2b699c8ee5e299d77b85.zip kernel_goldelico_gta04-c9f1d0389b962521af1e2b699c8ee5e299d77b85.tar.gz kernel_goldelico_gta04-c9f1d0389b962521af1e2b699c8ee5e299d77b85.tar.bz2 |
net_sched: fix class grafting errno codes
If the parent qdisc doesn't support classes, use EOPNOTSUPP.
If the parent class doesn't exist, use ENOENT. Currently EINVAL
is returned in both cases.
Additionally check whether grafting is supported and remove a now
unnecessary graft function from sch_ingress.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_ingress.c')
-rw-r--r-- | net/sched/sch_ingress.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/net/sched/sch_ingress.c b/net/sched/sch_ingress.c index 4a2b773..ace7902 100644 --- a/net/sched/sch_ingress.c +++ b/net/sched/sch_ingress.c @@ -22,12 +22,6 @@ struct ingress_qdisc_data { /* ------------------------- Class/flow operations ------------------------- */ -static int ingress_graft(struct Qdisc *sch, unsigned long arg, - struct Qdisc *new, struct Qdisc **old) -{ - return -EOPNOTSUPP; -} - static struct Qdisc *ingress_leaf(struct Qdisc *sch, unsigned long arg) { return NULL; @@ -123,7 +117,6 @@ nla_put_failure: } static const struct Qdisc_class_ops ingress_class_ops = { - .graft = ingress_graft, .leaf = ingress_leaf, .get = ingress_get, .put = ingress_put, |