net: sched: drop all special handling of tx_queue_len == 0
Those were all workarounds for the formerly double meaning of tx_queue_len, which broke scheduling algorithms if untreated. Now that all in-tree drivers have been converted away from setting tx_queue_len = 0, it should be safe to drop these workarounds for categorically broken setups. Signed-off-by: Phil Sutter <phil@nwl.cc> Cc: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
906470c19d
commit
348e3435cb
@@ -502,7 +502,7 @@ static int sfb_change(struct Qdisc *sch, struct nlattr *opt)
|
||||
|
||||
limit = ctl->limit;
|
||||
if (limit == 0)
|
||||
limit = max_t(u32, qdisc_dev(sch)->tx_queue_len, 1);
|
||||
limit = qdisc_dev(sch)->tx_queue_len;
|
||||
|
||||
child = fifo_create_dflt(sch, &pfifo_qdisc_ops, limit);
|
||||
if (IS_ERR(child))
|
||||
|
Reference in New Issue
Block a user