From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ye Xiaolong Subject: Re: [PATCH v2 6/6] app/testpmd: add mempool flags parameter Date: Wed, 20 Mar 2019 10:08:52 +0800 Message-ID: <20190320020852.GE16135@intel.com> References: <20190301080947.91086-1-xiaolong.ye@intel.com> <20190319071256.26302-1-xiaolong.ye@intel.com> <20190319071256.26302-7-xiaolong.ye@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "dev@dpdk.org" , "olivier.matz@6wind.com" , "magnus.karlsson@intel.com" , "qi.z.zhang@intel.com" , "bjorn.topel@intel.com" To: Jerin Jacob Kollanukkaran Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 720D12BAF for ; Wed, 20 Mar 2019 03:12:51 +0100 (CET) Content-Disposition: inline In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, On 03/19, Jerin Jacob Kollanukkaran wrote: >On Tue, 2019-03-19 at 15:12 +0800, Xiaolong Ye wrote: >> When create rte_mempool, flags can be parsed from command line. >> Now, it is possible for testpmd to create a af_xdp friendly >> mempool (which enable zero copy). >> >> Signed-off-by: Qi Zhang >> Signed-off-by: Xiaolong Ye >> --- >> app/test-pmd/parameters.c | 12 ++++++++++++ >> app/test-pmd/testpmd.c | 17 ++++++++++------- >> app/test-pmd/testpmd.h | 1 + >> doc/guides/testpmd_app_ug/run_app.rst | 4 ++++ > >If I understand it correctly, The user needs to change all the >application in order to avail zero copy feature of XDP. > >If so, > >How about creating wrapper mempool driver for xdp at drivers/mempool/? >and mempool's best mempool feature to select the required mempool >driver for XDP at runtime without changing the apps. > >see rte_mbuf_best_mempool_ops() >see struct eth_dev_ops::pool_ops_supported Sounds a good suggestion, I'll investigate and see how to implement it. Thanks, Xiaolong > >/Jerin > > > >