numam-dpdk/drivers/net/virtio
Joyce Kong 3fc1d87c2a virtio: use one way barrier for split vring avail index
In case VIRTIO_F_ORDER_PLATFORM(36) is not negotiated, then the frontend
and backend are assumed to be implemented in software, that is they can
run on identical CPUs in an SMP configuration.
Thus a weak form of memory barriers like rte_smp_r/wmb, other than
rte_cio_r/wmb, is sufficient for this case(vq->hw->weak_barriers == 1)
and yields better performance.
For the above case, this patch helps yielding even better performance
by replacing the two-way barriers with C11 one-way barriers for avail
index in split ring.

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2020-05-05 15:54:26 +02:00
..
virtio_user virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
Makefile net/virtio: add vectorized packed ring Rx 2020-05-05 15:54:26 +02:00
meson.build net/virtio: add vectorized packed ring Rx 2020-05-05 15:54:26 +02:00
rte_pmd_virtio_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
virtio_ethdev.c virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
virtio_ethdev.h net/virtio: add vectorized packed ring Tx 2020-05-05 15:54:26 +02:00
virtio_logs.h net/virtio: implement dynamic logging 2018-01-16 18:47:49 +01:00
virtio_pci.c net/virtio: support packed ring notification data 2020-01-17 19:46:26 +01:00
virtio_pci.h net/virtio: add parameter to enable vectorized path 2020-05-05 15:54:26 +02:00
virtio_ring.h virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
virtio_rxtx_packed_avx.c net/virtio: add vectorized packed ring Tx 2020-05-05 15:54:26 +02:00
virtio_rxtx_simple_altivec.c virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
virtio_rxtx_simple_neon.c virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
virtio_rxtx_simple_sse.c virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
virtio_rxtx_simple.c replace cold attributes 2020-04-16 18:30:58 +02:00
virtio_rxtx_simple.h net/virtio: refactor virtqueue structure 2019-03-20 18:15:42 +01:00
virtio_rxtx.c virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
virtio_rxtx.h net/virtio: fix Rx stats with vectorized functions 2019-10-07 15:00:57 +02:00
virtio_user_ethdev.c net/virtio: add vectorized packed ring Rx 2020-05-05 15:54:26 +02:00
virtqueue.c virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
virtqueue.h virtio: use one way barrier for split vring avail index 2020-05-05 15:54:26 +02:00