@@ -623,6 +623,7 @@ static int htb_enqueue(struct sk_buff *skb, struct Qdisc *sch,
__qdisc_enqueue_tail(skb, &q->direct_queue);
q->direct_pkts++;
} else {
+ qdisc_backpressure_overlimit(sch, skb);
return qdisc_drop(skb, sch, to_free);
}
#ifdef CONFIG_NET_CLS_ACT
@@ -634,6 +635,7 @@ static int htb_enqueue(struct sk_buff *skb, struct Qdisc *sch,
#endif
} else if ((ret = qdisc_enqueue(skb, cl->leaf.q,
to_free)) != NET_XMIT_SUCCESS) {
+ qdisc_backpressure_overlimit(sch, skb);
if (net_xmit_drop_count(ret)) {
qdisc_qstats_drop(sch);
cl->drops++;
@@ -978,6 +980,9 @@ static struct sk_buff *htb_dequeue(struct Qdisc *sch)
goto ok;
}
}
+
+ qdisc_backpressure_throttle(sch);
+
if (likely(next_event > q->now))
qdisc_watchdog_schedule_ns(&q->watchdog, next_event);
else