Commit c3b553cd authored by Thomas Graf's avatar Thomas Graf Committed by Thomas Graf

[PKT_SCHED]: GRED: Report congestion related drops as NET_XMIT_CN

Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@mandriva.com>
parent 301d063c
......@@ -219,12 +219,12 @@ gred_enqueue(struct sk_buff *skb, struct Qdisc* sch)
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) {
......@@ -242,6 +242,11 @@ gred_enqueue(struct sk_buff *skb, struct Qdisc* sch)
kfree_skb(skb);
sch->qstats.drops++;
return NET_XMIT_DROP;
congestion_drop:
kfree_skb(skb);
sch->qstats.drops++;
return NET_XMIT_CN;
}
static int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment