mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 10:50:53 +07:00
[PKT_SCHED]: GRED: Report congestion related drops as NET_XMIT_CN
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
parent
301d063c29
commit
c3b553cdaf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user