diff options
author | Phil Sutter <phil@nwl.cc> | 2015-08-18 11:30:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-18 21:55:08 +0300 |
commit | 348e3435cbefa815bd56a5205c1412b5afe7b92e (patch) | |
tree | 018c84769b8c270f6bec9020da36e9916985a061 /net/sched/sch_sfb.c | |
parent | 906470c19da771e638e7c8e16e16c31995b139cc (diff) | |
download | linux-348e3435cbefa815bd56a5205c1412b5afe7b92e.tar.xz |
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>
Diffstat (limited to 'net/sched/sch_sfb.c')
-rw-r--r-- | net/sched/sch_sfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_sfb.c b/net/sched/sch_sfb.c index 4b815193326c..dcdff5c769a1 100644 --- a/net/sched/sch_sfb.c +++ b/net/sched/sch_sfb.c @@ -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)) |