Gitweb: http://git.kernel.org/linus/6473990c7f0565fca2007f8662395d122e30f0d8 Commit: 6473990c7f0565fca2007f8662395d122e30f0d8 Parent: 77a22941f9ed052a0fdaa92753b1a1ab8072ee76 Author: Patrick McHardy <kaber@trash.net> AuthorDate: Wed May 6 16:45:07 2009 -0700 Committer: David S. Miller <davem@davemloft.net> CommitDate: Wed May 6 16:45:07 2009 -0700 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> --- net/sched/sch_fifo.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/sched/sch_fifo.c b/net/sched/sch_fifo.c index 92cfc9d..69188e8 100644 --- a/net/sched/sch_fifo.c +++ b/net/sched/sch_fifo.c @@ -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 { -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
