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

Commit 6473990c authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

net-sched: fix bfifo default limit



When no limit is given, the bfifo uses a default of tx_queue_len * mtu.
Packets handled by qdiscs include the link layer header, so this should
be taken into account, similar to what other qdiscs do.

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 77a22941
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ static int fifo_init(struct Qdisc *sch, struct nlattr *opt)
		u32 limit = qdisc_dev(sch)->tx_queue_len ? : 1;

		if (sch->ops == &bfifo_qdisc_ops)
			limit *= qdisc_dev(sch)->mtu;
			limit *= psched_mtu(qdisc_dev(sch));

		q->limit = limit;
	} else {