From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Iremonger, Bernard" Subject: Re: [PATCH v8 1/2] librte_pmd_null: Add Null PMD Date: Mon, 16 Feb 2015 16:38:00 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C2049E81E9@IRSMSX108.ger.corp.intel.com> References: <1423709078-20999-1-git-send-email-mukawa@igel.co.jp> <1424060349-23693-1-git-send-email-mukawa@igel.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To: Tetsuya Mukawa , "dev-VfR2kkLFssw@public.gmane.org" Return-path: In-Reply-To: <1424060349-23693-1-git-send-email-mukawa-AlSX/UN32fvPDbFq/vQRIQ@public.gmane.org> Content-Language: en-US List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" > -----Original Message----- > From: Tetsuya Mukawa [mailto:mukawa-AlSX/UN32fvPDbFq/vQRIQ@public.gmane.org] > Sent: Monday, February 16, 2015 4:19 AM > To: dev-VfR2kkLFssw@public.gmane.org > Cc: Qiu, Michael; Iremonger, Bernard; Tetsuya Mukawa > Subject: [PATCH v8 1/2] librte_pmd_null: Add Null PMD >=20 > Null PMD is a driver of the virtual device particularly designed to measu= re performance of DPDK PMDs. > When an application call rx, Null PMD just allocates mbufs and returns th= ose. Also tx, the PMD just > frees mbufs. >=20 > The PMD has following options. > - size: specify packe size allocated by RX. Default packet size is 64. > - copy: specify 1 or 0 to enable or disable copy while RX and TX. > Default value is 0(disabled). > This option is used for emulating more realistic data transfer. > Copy size is equal to packet size. >=20 > To use the PMD, enable CONFIG_RTE_BUILD_SHARED_LIB in config file. Then c= ompile the PMD as > shared library. The library can be linked using '-d' > option when an application invokes. >=20 > Here is an example. > $ sudo ./testpmd -c f -n 4 -d librte_pmd_null.so \ > --vdev 'eth_null0' --vdev 'eth_null1' -- -i --no-flush-rx >=20 > If testpmd is compiled with CONFIG_RTE_BUILD_SHARED_LIB, it may need to s= pecify more libraries > using '-d' option. >=20 > v8: > - Fix Makefile and add version map file. > (Thanks to Qiu, Michael and Iremonger, Bernard) > v7: > - Add parameter checkings. > (Thanks to Iremonger, Bernard) > - Remove needless "__rte_unused". > v4: > - Fix memory leak. > (Thanks to Iremonger, Bernard) >=20 > Signed-off-by: Tetsuya Mukawa Acked-by: Bernard Iremonger