diff options
author | Eric Dumazet <edumazet@google.com> | 2019-10-14 20:40:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-16 06:19:20 +0300 |
commit | e9c43add67538d3efec62ffc789e1fccdb77f6f8 (patch) | |
tree | 86410d549a2d9bebb6d54756effd5d3cff239ced /net/sched/sch_fq.c | |
parent | 6570bc79c0dfff0f228b7afd2de720fb4e84d61d (diff) | |
download | linux-e9c43add67538d3efec62ffc789e1fccdb77f6f8.tar.xz |
net_sched: sch_fq: remove one obsolete check in fq_dequeue()
After commit eeb84aa0d0aff ("net_sched: sch_fq: do not assume EDT
packets are ordered"), all skbs get a non zero time_to_send
in flow_queue_add()
This means @time_next_packet variable in fq_dequeue()
can no longer be zero.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_fq.c')
-rw-r--r-- | net/sched/sch_fq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sched/sch_fq.c b/net/sched/sch_fq.c index 98dd87ce1510..b1c7e726ce5d 100644 --- a/net/sched/sch_fq.c +++ b/net/sched/sch_fq.c @@ -530,8 +530,7 @@ begin: fq_flow_set_throttled(q, f); goto begin; } - if (time_next_packet && - (s64)(now - time_next_packet - q->ce_threshold) > 0) { + if ((s64)(now - time_next_packet - q->ce_threshold) > 0) { INET_ECN_set_ce(skb); q->stat_ce_mark++; } |