Re: [dpdk-dev] [PATCH v2] vhost: fix virtio_net false sharing

2017-03-27 Thread Yuanhan Liu
On Mon, Mar 27, 2017 at 09:34:19AM +0200, Maxime Coquelin wrote: > > > On 03/23/2017 04:44 PM, Kevin Traynor wrote: > >The broadcast_rarp field in the virtio_net struct is checked in the > >dequeue datapath regardless of whether descriptors are available or not. > > > >As it is checked with cmpse

Re: [dpdk-dev] [PATCH v2] vhost: fix virtio_net false sharing

2017-03-27 Thread Maxime Coquelin
On 03/23/2017 04:44 PM, Kevin Traynor wrote: The broadcast_rarp field in the virtio_net struct is checked in the dequeue datapath regardless of whether descriptors are available or not. As it is checked with cmpset leading to a write, false sharing on the virtio_net struct can happen between e

[dpdk-dev] [PATCH v2] vhost: fix virtio_net false sharing

2017-03-23 Thread Kevin Traynor
The broadcast_rarp field in the virtio_net struct is checked in the dequeue datapath regardless of whether descriptors are available or not. As it is checked with cmpset leading to a write, false sharing on the virtio_net struct can happen between enqueue and dequeue datapaths regardless of whethe