Page MenuHomeFreeBSD

D5322.diff
No OneTemporary

D5322.diff

Index: sys/dev/vnic/nicvf_queues.c
===================================================================
--- sys/dev/vnic/nicvf_queues.c
+++ sys/dev/vnic/nicvf_queues.c
@@ -768,6 +768,8 @@
cq_desc = (struct cqe_rx_t *)GET_CQ_DESC(cq, cqe_head);
cqe_head++;
cqe_head &= (cq->dmem.q_len - 1);
+ /* Prefetch next CQ descriptor */
+ __builtin_prefetch((struct cqe_rx_t *)GET_CQ_DESC(cq, cqe_head));
dprintf(nic->dev, "CQ%d cq_desc->cqe_type %d\n", cq_idx,
cq_desc->cqe_type);

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 10:00 AM (11 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15603610
Default Alt Text
D5322.diff (493 B)

Event Timeline