From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 6C09BB638 for ; Mon, 16 Feb 2015 17:38:04 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 16 Feb 2015 08:38:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,588,1418112000"; d="scan'208";a="652869398" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by orsmga001.jf.intel.com with ESMTP; 16 Feb 2015 08:38:02 -0800 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.218]) by IRSMSX102.ger.corp.intel.com ([169.254.2.69]) with mapi id 14.03.0195.001; Mon, 16 Feb 2015 16:38:00 +0000 From: "Iremonger, Bernard" To: Tetsuya Mukawa , "dev@dpdk.org" Thread-Topic: [PATCH v8 1/2] librte_pmd_null: Add Null PMD Thread-Index: AQHQSZ/HeFEWDWwEXUy8acBy2bQadZzzek/A 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> In-Reply-To: <1424060349-23693-1-git-send-email-mukawa@igel.co.jp> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v8 1/2] librte_pmd_null: Add Null PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2015 16:38:04 -0000 > -----Original Message----- > From: Tetsuya Mukawa [mailto:mukawa@igel.co.jp] > Sent: Monday, February 16, 2015 4:19 AM > To: dev@dpdk.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