summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_prio.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2006-03-20 19:00:49 -0800
committerDavid S. Miller <davem@davemloft.net>2006-03-20 19:00:49 -0800
commit6d037a26f08711a222ed0d3d12b09e93eed7d3e8 (patch)
treea200247459a6a378a1fb24847d383bddb09f5b67 /net/sched/sch_prio.c
parenta85d771e32f9724b61a68748cc667d1e11fe3478 (diff)
downloadop-kernel-dev-6d037a26f08711a222ed0d3d12b09e93eed7d3e8.zip
op-kernel-dev-6d037a26f08711a222ed0d3d12b09e93eed7d3e8.tar.gz
[PKT_SCHED]: Qdisc drop operation is optional
The drop operation is optional and qdiscs must check if childs support it. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_prio.c')
-rw-r--r--net/sched/sch_prio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_prio.c b/net/sched/sch_prio.c
index 1641db3..3395ca7 100644
--- a/net/sched/sch_prio.c
+++ b/net/sched/sch_prio.c
@@ -165,7 +165,7 @@ static unsigned int prio_drop(struct Qdisc* sch)
for (prio = q->bands-1; prio >= 0; prio--) {
qdisc = q->queues[prio];
- if ((len = qdisc->ops->drop(qdisc)) != 0) {
+ if (qdisc->ops->drop && (len = qdisc->ops->drop(qdisc)) != 0) {
sch->q.qlen--;
return len;
}
OpenPOWER on IntegriCloud