]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx4/mlx4.c
mbuf: add prefetch helpers
[dpdk.git] / drivers / net / mlx4 / mlx4.c
index 080ab615d1315d7a1f24b8f73492d0db5ae8713b..9ed14911bfd06abd3f1ca7fb6d545ba25a905e3f 100644 (file)
@@ -3283,8 +3283,8 @@ mlx4_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n)
                 * Fetch initial bytes of packet descriptor into a
                 * cacheline while allocating rep.
                 */
-               rte_prefetch0(seg);
-               rte_prefetch0(&seg->cacheline1);
+               rte_mbuf_prefetch_part1(seg);
+               rte_mbuf_prefetch_part2(seg);
                ret = rxq->if_cq->poll_length_flags(rxq->cq, NULL, NULL,
                                                    &flags);
                if (unlikely(ret < 0)) {