Re: [dpdk-dev] [PATCH v2 1/2] virtio: one way barrier for split vring used idx

2020-04-15 Thread Joyce Kong
> > > Subject: Re: [dpdk-dev] [PATCH v2 1/2] virtio: one way barrier for > > > split vring used idx > > > > > > On Thu, 2 Apr 2020 10:57:52 +0800 > > > Joyce Kong wrote: > > > > > > > -(vq)->vq_used_cons_idx)) > >

Re: [dpdk-dev] [PATCH v2 1/2] virtio: one way barrier for split vring used idx

2020-04-15 Thread Honnappa Nagarahalli
> > Subject: Re: [dpdk-dev] [PATCH v2 1/2] virtio: one way barrier for > > split vring used idx > > > > On Thu, 2 Apr 2020 10:57:52 +0800 > > Joyce Kong wrote: > > > > > -(vq)->vq_used_cons_idx)) > > > +static inline uint16_t > > &g

Re: [dpdk-dev] [PATCH v2 1/2] virtio: one way barrier for split vring used idx

2020-04-03 Thread Gavin Hu
Honnappa Nagarahalli > ; Gavin Hu ; nd > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 1/2] virtio: one way barrier for split vring > used idx > > On Thu, 2 Apr 2020 10:57:52 +0800 > Joyce Kong wrote: > > > - (

Re: [dpdk-dev] [PATCH v2 1/2] virtio: one way barrier for split vring used idx

2020-04-02 Thread Stephen Hemminger
On Thu, 2 Apr 2020 10:57:52 +0800 Joyce Kong wrote: > - (vq)->vq_used_cons_idx)) > +static inline uint16_t > +virtqueue_nused(struct virtqueue *vq) vq is unmodified and should be const > +{ > + uint16_t idx; > + if (vq->hw->weak_barriers) { Put blank

[dpdk-dev] [PATCH v2 1/2] virtio: one way barrier for split vring used idx

2020-04-01 Thread Joyce Kong
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 ca