From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Wang Subject: Re: [RFC 0/7] PMD driver for AF_XDP Date: Thu, 1 Mar 2018 21:18:01 +0800 Message-ID: <23b8bd50-cf2a-fce1-dc0a-20a52d33cf77@redhat.com> References: <20180227093306.23854-1-qi.z.zhang@intel.com> <4758d934-c338-e4a6-17fa-6ed90bb141ff@redhat.com> <039ED4275CED7440929022BC67E706115315D465@SHSMSX103.ccr.corp.intel.com> <039ED4275CED7440929022BC67E706115315D47B@SHSMSX103.ccr.corp.intel.com> <039ED4275CED7440929022BC67E706115315D771@SHSMSX103.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Cc: "Karlsson, Magnus" , "Topel, Bjorn" , "dev@dpdk.org" To: "Zhang, Qi Z" Return-path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by dpdk.org (Postfix) with ESMTP id A9AE82C12 for ; Thu, 1 Mar 2018 14:18:07 +0100 (CET) In-Reply-To: <039ED4275CED7440929022BC67E706115315D771@SHSMSX103.ccr.corp.intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 2018年03月01日 20:56, Zhang, Qi Z wrote: >>>>>> BTW, performance test shows our PMD can reach 94%~98% of the >>>>>> orignal benchmark when share memory is enabled. >>>>> Hi: >>>>> >>>>> Looks like zero copy is not used in this series. Any plan to support that? >>>> Zero copy is enabled in patch 5, if a mempool passed check_mempool, >>>> it will be registered to af_xdp socket. >>>> so there will be no memcpy between mbuf and af_xdp. >> Aha, I see. So the zerocopy was limited to some specific use case. And if I >> understand it correctly, zc mode could not be used for VM. > I think except the limitation for mempool layout, zerocopy is transparent to DPDK application, only difference is performance. > Sorry, I may not get your point, if you could explain more about the VM usage. > > Regards > Qi No problem, so the question is: Can zerocopy be used when using testpmd to foward packets between vhost-user and AF_XDP socket? Thanks