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: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Patrick McHardy and committed by David S. Miller 6473990c 77a22941

+1 -1
+1 -1
net/sched/sch_fifo.c
··· 51 51 u32 limit = qdisc_dev(sch)->tx_queue_len ? : 1; 52 52 53 53 if (sch->ops == &bfifo_qdisc_ops) 54 - limit *= qdisc_dev(sch)->mtu; 54 + limit *= psched_mtu(qdisc_dev(sch)); 55 55 56 56 q->limit = limit; 57 57 } else {