net/ixgbe: use mbuf prefetch function
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Fri, 17 Jun 2016 14:06:44 +0000 (19:36 +0530)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 24 Jun 2016 16:28:09 +0000 (18:28 +0200)
made second cache line access behavior same as IA

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Reviewed-by: Jianbo Liu <jianbo.liu@linaro.org>
drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c

index 9c1d124..64a329e 100644 (file)
@@ -280,10 +280,10 @@ _recv_raw_pkts_vec(struct ixgbe_rx_queue *rxq, struct rte_mbuf **rx_pkts,
                vst1q_u64((uint64_t *)&rx_pkts[pos + 2], mbp2);
 
                if (split_packet) {
-                       rte_prefetch_non_temporal(&rx_pkts[pos]->cacheline1);
-                       rte_prefetch_non_temporal(&rx_pkts[pos + 1]->cacheline1);
-                       rte_prefetch_non_temporal(&rx_pkts[pos + 2]->cacheline1);
-                       rte_prefetch_non_temporal(&rx_pkts[pos + 3]->cacheline1);
+                       rte_mbuf_prefetch_part2(rx_pkts[pos]);
+                       rte_mbuf_prefetch_part2(rx_pkts[pos + 1]);
+                       rte_mbuf_prefetch_part2(rx_pkts[pos + 2]);
+                       rte_mbuf_prefetch_part2(rx_pkts[pos + 3]);
                }
 
                /* D.1 pkt 3,4 convert format from desc to pktmbuf */