mbuf: add prefetch helpers
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 18 May 2016 16:02:08 +0000 (18:02 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 May 2016 09:21:14 +0000 (11:21 +0200)
commite89880957f47d8529cf61c0c0374b053b8704ed6
tree273232c09aa027d9efbc852ba4ba1d15d35a24a1
parent125e39139b5f2854fb301123de3705049d1f9d68
mbuf: add prefetch helpers

Some architectures (ex: Power8) have a cache line size of 128 bytes,
so the drivers should not expect that prefetching the second part of
the mbuf with rte_prefetch0(&m->cacheline1) is valid.

This commit add helpers that can be used by drivers to prefetch the
rx or tx part of the mbuf, whatever the cache line size.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
drivers/net/fm10k/fm10k_rxtx_vec.c
drivers/net/i40e/i40e_rxtx_vec.c
drivers/net/ixgbe/ixgbe_rxtx_vec.c
drivers/net/mlx4/mlx4.c
drivers/net/mlx5/mlx5_rxtx.c
examples/ipsec-secgw/ipsec-secgw.c
lib/librte_mbuf/rte_mbuf.h