Skip to content

Commit 348e289

Browse files
edumazetdavem330
authored andcommitted
net_sched: sch_fq: perform a prefetch() earlier
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c288b0c commit 348e289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sched/sch_fq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ static struct sk_buff *fq_dequeue(struct Qdisc *sch)
546546
fq_flow_set_throttled(q, f);
547547
goto begin;
548548
}
549+
prefetch(&skb->end);
549550
if ((s64)(now - time_next_packet - q->ce_threshold) > 0) {
550551
INET_ECN_set_ce(skb);
551552
q->stat_ce_mark++;
@@ -562,7 +563,6 @@ static struct sk_buff *fq_dequeue(struct Qdisc *sch)
562563
}
563564
goto begin;
564565
}
565-
prefetch(&skb->end);
566566
plen = qdisc_pkt_len(skb);
567567
f->credit -= plen;
568568

0 commit comments

Comments
 (0)