Commit e9c43add authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

net_sched: sch_fq: remove one obsolete check in fq_dequeue()

After commit eeb84aa0 ("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: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6570bc79
...@@ -530,8 +530,7 @@ static struct sk_buff *fq_dequeue(struct Qdisc *sch) ...@@ -530,8 +530,7 @@ static struct sk_buff *fq_dequeue(struct Qdisc *sch)
fq_flow_set_throttled(q, f); fq_flow_set_throttled(q, f);
goto begin; goto begin;
} }
if (time_next_packet && if ((s64)(now - time_next_packet - q->ce_threshold) > 0) {
(s64)(now - time_next_packet - q->ce_threshold) > 0) {
INET_ECN_set_ce(skb); INET_ECN_set_ce(skb);
q->stat_ce_mark++; q->stat_ce_mark++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment