From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2] vhost: add support for dynamic vhost PMD creation Date: Thu, 19 May 2016 17:28:46 +0100 Message-ID: <573DE9BE.4070807@intel.com> References: <20160509213124.GK5641@yliu-dev.sh.intel.com> <1463591422-25408-1-git-send-email-ferruh.yigit@intel.com> <38538365.t1P5Ut1YhZ@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, Tetsuya Mukawa , Yuanhan Liu To: Thomas Monjalon Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id B0C61960C for ; Thu, 19 May 2016 18:28:48 +0200 (CEST) In-Reply-To: <38538365.t1P5Ut1YhZ@xps13> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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. >=20 > How is it different from rte_eth_dev_attach() calling rte_eal_vdev_init= ()? >=20 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 application= s. Regards, ferruh