numam-dpdk/drivers/net/virtio
Joyce Kong 6094557de0 net/virtio: improve perf via one-way barrier on avail flag
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
flags in packed ring.

Meanwhile, a read barrier is required to ensure ordering between
descriptor's flags and content reads [1]. With C11, load-acquire can
enforce the ordering instead of rmb barrier.

[1] https://patchwork.dpdk.org/patch/49109/

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2019-10-23 16:43:09 +02:00
..
virtio_user net/virtio: improve perf via one-way barrier on avail flag 2019-10-23 16:43:09 +02:00
Makefile net/virtio: add Altivec Rx 2019-10-07 15:00:53 +02:00
meson.build net/virtio: add Altivec Rx 2019-10-07 15:00:53 +02:00
rte_pmd_virtio_version.map virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_ethdev.c net/virtio: do not require IO permissions 2019-10-25 11:54:10 +02:00
virtio_ethdev.h net/virtio: remove remaining simple Tx related stuff 2019-09-06 17:32:42 +02:00
virtio_logs.h net/virtio: implement dynamic logging 2018-01-16 18:47:49 +01:00
virtio_pci.c net/virtio: unmap device on initialization error 2019-06-20 23:42:04 +02:00
virtio_pci.h net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
virtio_ring.h net/virtio: define avail and used flags as constants 2019-03-29 17:25:32 +01:00
virtio_rxtx_simple_altivec.c net/virtio: add Altivec Rx 2019-10-07 15:00:53 +02:00
virtio_rxtx_simple_neon.c net/virtio: get all pending Rx packets in vectorized paths 2019-10-07 15:00:57 +02:00
virtio_rxtx_simple_sse.c net/virtio: get all pending Rx packets in vectorized paths 2019-10-07 15:00:57 +02:00
virtio_rxtx_simple.c eal: add macro for attribute weak 2018-10-25 02:11:23 +02:00
virtio_rxtx_simple.h net/virtio: refactor virtqueue structure 2019-03-20 18:15:42 +01:00
virtio_rxtx.c net/virtio: improve perf via one-way barrier on avail flag 2019-10-23 16:43:09 +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_user: remove redundant declaration 2019-07-23 14:31:35 +02:00
virtqueue.c net/virtio: drop redundant suffix in packed ring structure 2019-03-20 18:15:42 +01:00
virtqueue.h net/virtio: improve perf via one-way barrier on avail flag 2019-10-23 16:43:09 +02:00