[dpdk-dev] [PATCH v6 5/8] virtio: virtio vec rx

2015-11-02 Thread Thomas Monjalon
2015-11-02 08:49, Xie, Huawei: > On 11/2/2015 3:31 PM, Thomas Monjalon wrote: > > 2015-11-02 02:18, Xie, Huawei: > >> On 10/31/2015 2:21 AM, Thomas Monjalon wrote: > >>> Sorry, there is a clang error. > >>> > >>> 2015-10-29 22:53, Huawei Xie: > +_mm_prefetch((const void *)rused, _MM_HI

[dpdk-dev] [PATCH v6 5/8] virtio: virtio vec rx

2015-11-02 Thread Xie, Huawei
On 11/2/2015 3:31 PM, Thomas Monjalon wrote: > 2015-11-02 02:18, Xie, Huawei: >> On 10/31/2015 2:21 AM, Thomas Monjalon wrote: >>> Sorry, there is a clang error. >>> >>> 2015-10-29 22:53, Huawei Xie: + _mm_prefetch((const void *)rused, _MM_HINT_T0); >>> virtio_rxtx_simple.c:197:2: error: cast

[dpdk-dev] [PATCH v6 5/8] virtio: virtio vec rx

2015-11-02 Thread Thomas Monjalon
2015-11-02 02:18, Xie, Huawei: > On 10/31/2015 2:21 AM, Thomas Monjalon wrote: > > Sorry, there is a clang error. > > > > 2015-10-29 22:53, Huawei Xie: > >> + _mm_prefetch((const void *)rused, _MM_HINT_T0); > > virtio_rxtx_simple.c:197:2: error: cast from 'const void *' to > > 'void *' drops

[dpdk-dev] [PATCH v6 5/8] virtio: virtio vec rx

2015-11-02 Thread Xie, Huawei
On 10/31/2015 2:21 AM, Thomas Monjalon wrote: > Sorry, there is a clang error. > > 2015-10-29 22:53, Huawei Xie: >> +_mm_prefetch((const void *)rused, _MM_HINT_T0); > virtio_rxtx_simple.c:197:2: error: cast from 'const void *' to > 'void *' drops const qualifier This is weird. This conver

[dpdk-dev] [PATCH v6 5/8] virtio: virtio vec rx

2015-10-30 Thread Thomas Monjalon
Sorry, there is a clang error. 2015-10-29 22:53, Huawei Xie: > + _mm_prefetch((const void *)rused, _MM_HINT_T0); virtio_rxtx_simple.c:197:2: error: cast from 'const void *' to 'void *' drops const qualifier

[dpdk-dev] [PATCH v6 5/8] virtio: virtio vec rx

2015-10-29 Thread Huawei Xie
With fixed avail ring, we don't need to get desc idx from avail ring. virtio driver only has to deal with desc ring. This patch uses vector instruction to accelerate processing desc ring. Signed-off-by: Huawei Xie --- drivers/net/virtio/virtio_ethdev.h | 2 + drivers/net/virtio/virtio_rxt