Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 301d063c
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -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 @@ drop:
	kfree_skb(skb);
	sch->qstats.drops++;
	return NET_XMIT_DROP;

congestion_drop:
	kfree_skb(skb);
	sch->qstats.drops++;
	return NET_XMIT_CN;
}

static int