]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: fix class grafting errno codes
authorPatrick McHardy <kaber@trash.net>
Fri, 4 Sep 2009 06:41:13 +0000 (06:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Sep 2009 06:10:15 +0000 (23:10 -0700)
commit45ff36918fe24cb0d5006feec3f03b3ec68f2a67
treee317e8b012be8b31b303bdb3f6ee5e3929de0a7b
parentcd125c799a568ef6d26451d8348173e5e046c35b
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>
net/sched/sch_api.c
net/sched/sch_ingress.c