Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
case RED_PROB_MARK:
sch->qstats.overlimits++;
q->stats.prob_drop++;
- goto drop;
+ goto congestion_drop;
case RED_HARD_MARK:
sch->qstats.overlimits++;
q->stats.forced_drop++;
- goto drop;
+ goto congestion_drop;
}
if (q->backlog + skb->len <= q->limit) {
kfree_skb(skb);
sch->qstats.drops++;
return NET_XMIT_DROP;
+
+congestion_drop:
+ kfree_skb(skb);
+ sch->qstats.drops++;
+ return NET_XMIT_CN;
}
static int