[dpdk-dev] [RFC ][PATCH] Introduce rte_smp_mb(), rte_smp_wmb() and rte_smp_rmb()

Jerin Jacob jerin.jacob at caviumnetworks.com
Wed Nov 4 14:28:47 CET 2015


Its a RFC patch and I am not sure about the ordering behavior in
tile and ppc_64 architecture so kept as rte_compiler_barrier()
as existing code.

If it need changes in tile and  ppc_64 then let me know, I will send the
updated patch.


Jerin Jacob (1):
  Introduce rte_smp_*mb() for memory barriers to use between lcores

 drivers/net/virtio/virtqueue.h                     |  8 +++----
 drivers/net/xenvirt/rte_eth_xenvirt.c              |  4 ++--
 drivers/net/xenvirt/virtqueue.h                    |  2 +-
 .../common/include/arch/ppc_64/rte_atomic.h        |  6 +++++
 .../common/include/arch/tile/rte_atomic.h          |  6 +++++
 .../common/include/arch/x86/rte_atomic.h           |  6 +++++
 lib/librte_eal/common/include/generic/rte_atomic.h | 27 ++++++++++++++++++++++
 lib/librte_ring/rte_ring.h                         |  8 +++----
 8 files changed, 55 insertions(+), 12 deletions(-)

-- 
2.1.0



More information about the dev mailing list