Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eric Dumazet and committed by
David S. Miller
e9c43add 6570bc79

+1 -2
+1 -2
net/sched/sch_fq.c
··· 530 530 fq_flow_set_throttled(q, f); 531 531 goto begin; 532 532 } 533 - if (time_next_packet && 534 - (s64)(now - time_next_packet - q->ce_threshold) > 0) { 533 + if ((s64)(now - time_next_packet - q->ce_threshold) > 0) { 535 534 INET_ECN_set_ce(skb); 536 535 q->stat_ce_mark++; 537 536 }