Skip to content

Commit

Permalink
net_sched: sch_fq: perform a prefetch() earlier
Browse files Browse the repository at this point in the history
The prefetch() done in fq_dequeue() can be done a bit earlier
after the refactoring of the code done in the prior patch.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed May 3, 2020
1 parent c288b0c commit 348e289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sched/sch_fq.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ static struct sk_buff *fq_dequeue(struct Qdisc *sch)
fq_flow_set_throttled(q, f);
goto begin;
}
prefetch(&skb->end);
if ((s64)(now - time_next_packet - q->ce_threshold) > 0) {
INET_ECN_set_ce(skb);
q->stat_ce_mark++;
Expand All @@ -562,7 +563,6 @@ static struct sk_buff *fq_dequeue(struct Qdisc *sch)
}
goto begin;
}
prefetch(&skb->end);
plen = qdisc_pkt_len(skb);
f->credit -= plen;

Expand Down

0 comments on commit 348e289

Please sign in to comment.