From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ferruh.yigit@intel.com>
Received: from mga02.intel.com (mga02.intel.com [134.134.136.20])
 by dpdk.org (Postfix) with ESMTP id B0C61960C
 for <dev@dpdk.org>; Thu, 19 May 2016 18:28:48 +0200 (CEST)
Received: from orsmga003.jf.intel.com ([10.7.209.27])
 by orsmga101.jf.intel.com with ESMTP; 19 May 2016 09:28:47 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.26,334,1459839600"; d="scan'208";a="810630946"
Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.221.51])
 ([10.237.221.51])
 by orsmga003.jf.intel.com with ESMTP; 19 May 2016 09:28:47 -0700
To: Thomas Monjalon <thomas.monjalon@6wind.com>
References: <20160509213124.GK5641@yliu-dev.sh.intel.com>
 <1463591422-25408-1-git-send-email-ferruh.yigit@intel.com>
 <38538365.t1P5Ut1YhZ@xps13>
Cc: dev@dpdk.org, Tetsuya Mukawa <mukawa@igel.co.jp>,
 Yuanhan Liu <yuanhan.liu@linux.intel.com>
From: Ferruh Yigit <ferruh.yigit@intel.com>
Message-ID: <573DE9BE.4070807@intel.com>
Date: Thu, 19 May 2016 17:28:46 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101
 Thunderbird/38.7.2
MIME-Version: 1.0
In-Reply-To: <38538365.t1P5Ut1YhZ@xps13>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 8bit
Subject: Re: [dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD
 creation
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 19 May 2016 16:28:49 -0000

On 5/19/2016 9:33 AM, Thomas Monjalon wrote:
> 2016-05-18 18:10, Ferruh Yigit:
>> Add rte_eth_from_vhost() API to create vhost PMD dynamically from
>> applications.
> 
> How is it different from rte_eth_dev_attach() calling rte_eal_vdev_init()?
> 

When used rte_eth_dev_attach(), application also needs to do:
rte_eth_dev_configure()
rte_eth_rx_queue_setup()
rte_eth_tx_queue_setup()
rte_eth_dev_start()

rte_eth_from_vhost() does these internally, easier to use for applications.


Regards,
ferruh