net_sched: make cls_ops->tcf_chain() optional
authorPatrick McHardy <kaber@trash.net>
Fri, 4 Sep 2009 06:41:15 +0000 (06:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Sep 2009 09:06:12 +0000 (02:06 -0700)
commit71ebe5e91947392bc276af713827eab12b6db8e4
tree198ff02e23f8606ff2a3bec51c7044ec408e19c4
parentc9f1d0389b962521af1e2b699c8ee5e299d77b85
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>
net/sched/cls_api.c
net/sched/sch_red.c
net/sched/sch_tbf.c