From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id A36897F60 for ; Thu, 13 Nov 2014 13:08:26 +0100 (CET) Received: by mail-wg0-f49.google.com with SMTP id x13so16778068wgg.8 for ; Thu, 13 Nov 2014 04:18:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=h7GgDIfQxmMWzrZdtDEqpRtHm4E4vxlB8ONN3k+6Tbg=; b=VaSZiy2aH2oPeFF8zu0BHGYTEnBkymmBj5/BdklhSerX6YRAJi7vrm6AgLWsrlvarw gLxJRnDrgOYxicO/hBjkuiPBKVzdoe5Ewva0Iok+CnZU/BbWNBGXDFdgJtw0SyfXpkXl HYQCUjtVSiVSCIDLVGfJfntv2LXXYzN6JvUtByHB4X2C5OSWB/zjHev3Ajg8VCtgGBLh tqSzCKWnUMATChavBqyED2kHPEIH2LSujR5teNkR+k8PqnAFAJjdqxuyYqi9afRpQSc6 CGeYYY7bp5fi+k8qIVYgD+4CTfjy63YXqqJSndIUZ/cp3h3y/UgG5eGY/pVZKaVIYzd3 gFPw== X-Gm-Message-State: ALoCoQnUUdZmNGhKpmcGsV/qedMw9cjnkLs3JhsyuzyOmpKLiLZ+YhUZuKxBa/5/syMYE7l1eYus X-Received: by 10.180.104.232 with SMTP id gh8mr3266625wib.78.1415881105156; Thu, 13 Nov 2014 04:18:25 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id kn5sm27785915wjb.48.2014.11.13.04.18.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Nov 2014 04:18:24 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Thu, 13 Nov 2014 13:17:55 +0100 Message-ID: <5057307.FGrc0kAccs@xps13> Organization: 6WIND User-Agent: KMail/4.14.2 (Linux/3.17.2-1-ARCH; KDE/4.14.2; x86_64; ; ) In-Reply-To: <1412139437-26749-2-git-send-email-mukawa@igel.co.jp> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: nakajima.yoshihiro@lab.ntt.co.jp, masutani.hitoshi@lab.ntt.co.jp Subject: Re: [dpdk-dev] [PATCH v2] 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: Thu, 13 Nov 2014 12:08:26 -0000 Hi, 2014-10-01 13:57, mukawa@igel.co.jp: > '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