Re: [dpdk-dev] [PATCH v9 5/9] net/virtio: add vectorized packed ring Rx path

2020-04-24 Thread Liu, Yong
> -Original Message- > From: Liu, Yong > Sent: Friday, April 24, 2020 9:41 PM > To: 'Maxime Coquelin' ; Ye, Xiaolong > ; Wang, Zhihong > Cc: dev@dpdk.org; Van Haaren, Harry > Subject: RE: [PATCH v9 5/9] net/virtio: add vectorized packed ring Rx path > > > > > -Original Message--

Re: [dpdk-dev] [PATCH v9 5/9] net/virtio: add vectorized packed ring Rx path

2020-04-24 Thread Liu, Yong
> -Original Message- > From: Maxime Coquelin > Sent: Friday, April 24, 2020 9:34 PM > To: Liu, Yong ; Ye, Xiaolong ; > Wang, Zhihong > Cc: dev@dpdk.org; Van Haaren, Harry > Subject: Re: [PATCH v9 5/9] net/virtio: add vectorized packed ring Rx path > > > > On 4/24/20 3:12 PM, Liu, Y

Re: [dpdk-dev] [PATCH v9 5/9] net/virtio: add vectorized packed ring Rx path

2020-04-24 Thread Maxime Coquelin
On 4/24/20 3:12 PM, Liu, Yong wrote: >> IIUC, the only difference with the non-vectorized version is the GSO >> support removed here. >> gso_type being in the same cacheline as flags in virtio_net_hdr, I don't >> think checking the performance gain is worth the added maintainance >> effort due t

Re: [dpdk-dev] [PATCH v9 5/9] net/virtio: add vectorized packed ring Rx path

2020-04-24 Thread Liu, Yong
> -Original Message- > From: Maxime Coquelin > Sent: Friday, April 24, 2020 7:52 PM > To: Liu, Yong ; Ye, Xiaolong ; > Wang, Zhihong > Cc: dev@dpdk.org; Van Haaren, Harry > Subject: Re: [PATCH v9 5/9] net/virtio: add vectorized packed ring Rx path > > > > On 4/24/20 11:24 AM, Marvi

Re: [dpdk-dev] [PATCH v9 5/9] net/virtio: add vectorized packed ring Rx path

2020-04-24 Thread Maxime Coquelin
On 4/24/20 11:24 AM, Marvin Liu wrote: > Optimize packed ring Rx path with SIMD instructions. Solution of > optimization is pretty like vhost, is that split path into batch and > single functions. Batch function is further optimized by AVX512 > instructions. Also pad desc extra structure to 16 b

[dpdk-dev] [PATCH v9 5/9] net/virtio: add vectorized packed ring Rx path

2020-04-23 Thread Marvin Liu
Optimize packed ring Rx path with SIMD instructions. Solution of optimization is pretty like vhost, is that split path into batch and single functions. Batch function is further optimized by AVX512 instructions. Also pad desc extra structure to 16 bytes aligned, thus four elements will be saved in