From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] librte_pmd_null: Add null PMD Date: Thu, 13 Nov 2014 13:17:55 +0100 Message-ID: <5057307.FGrc0kAccs@xps13> References: <1412139437-26749-1-git-send-email-mukawa@igel.co.jp> <1412139437-26749-2-git-send-email-mukawa@igel.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: nakajima.yoshihiro-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org, masutani.hitoshi-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1412139437-26749-2-git-send-email-mukawa-AlSX/UN32fvPDbFq/vQRIQ@public.gmane.org> 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" Hi, 2014-10-01 13:57, mukawa-AlSX/UN32fvPDbFq/vQRIQ@public.gmane.org: > 'null PMD' is a driver of the virtual device particulary designed to measure > performance of DPDK PMDs. When an application call rx, null PMD just allocates > mbufs and returns those. Also tx, the PMD just frees mbufs. > > 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(disbaled). > This option is used for emulating more realistic data transfer. > Copy size is equal to packet size. > > To use the PMD, enable CONFIG_RTE_BUILD_SHARED_LIB in config file. Then > compile the PMD as shared library. The library can be linked using '-d' > option when an application invokes. > > Here is an example. > $ sudo ./testpmd -c f -n 4 -d librte_pmd_null.so \ > --vdev 'eth_null0' --vdev 'eth_null1' -- -i > > If testpmd is compiled with CONFIG_RTE_BUILD_SHARED_LIB, it may need to > specify more libraries using '-d' option. > > Signed-off-by: Tetsuya Mukawa This patch is still pending because nobody reviewed it. -- Thomas