[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-26 Thread Yuanhan Liu
On Wed, May 25, 2016 at 01:54:41PM +0200, Thomas Monjalon wrote: > > OTOH, let's assume there is a switch that supports quite many such > > vdevs, as well as the ability to add a new device dynamically by > > corresponding API. And assume there is just one external interface > > from the switch to

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-25 Thread Thomas Monjalon
2016-05-25 12:41, Yuanhan Liu: > On Tue, May 24, 2016 at 10:42:56AM +0100, Bruce Richardson wrote: > > On Tue, May 24, 2016 at 01:11:26PM +0800, Yuanhan Liu wrote: > > > On Mon, May 23, 2016 at 06:06:21PM +0100, Ferruh Yigit wrote: > > > > On 5/23/2016 2:24 PM, Yuanhan Liu wrote: > > > > > On Fri,

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-25 Thread Yuanhan Liu
On Tue, May 24, 2016 at 10:42:56AM +0100, Bruce Richardson wrote: > On Tue, May 24, 2016 at 01:11:26PM +0800, Yuanhan Liu wrote: > > On Mon, May 23, 2016 at 06:06:21PM +0100, Ferruh Yigit wrote: > > > On 5/23/2016 2:24 PM, Yuanhan Liu wrote: > > > > On Fri, May 20, 2016 at 11:37:47AM +0100, Bruce R

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-24 Thread Yuanhan Liu
On Mon, May 23, 2016 at 06:06:21PM +0100, Ferruh Yigit wrote: > On 5/23/2016 2:24 PM, Yuanhan Liu wrote: > > On Fri, May 20, 2016 at 11:37:47AM +0100, Bruce Richardson wrote: > >> On Thu, May 19, 2016 at 06:44:44PM +0200, Thomas Monjalon wrote: > >>> 2016-05-19 17:28, Ferruh Yigit: > On 5/19/2

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-24 Thread Bruce Richardson
On Tue, May 24, 2016 at 01:11:26PM +0800, Yuanhan Liu wrote: > On Mon, May 23, 2016 at 06:06:21PM +0100, Ferruh Yigit wrote: > > On 5/23/2016 2:24 PM, Yuanhan Liu wrote: > > > On Fri, May 20, 2016 at 11:37:47AM +0100, Bruce Richardson wrote: > > >> On Thu, May 19, 2016 at 06:44:44PM +0200, Thomas M

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-23 Thread Yuanhan Liu
On Fri, May 20, 2016 at 11:37:47AM +0100, Bruce Richardson wrote: > On Thu, May 19, 2016 at 06:44:44PM +0200, Thomas Monjalon wrote: > > 2016-05-19 17:28, Ferruh Yigit: > > > On 5/19/2016 9:33 AM, Thomas Monjalon wrote: > > > > 2016-05-18 18:10, Ferruh Yigit: > > > >> Add rte_eth_from_vhost() API t

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-23 Thread Ferruh Yigit
On 5/23/2016 2:24 PM, Yuanhan Liu wrote: > On Fri, May 20, 2016 at 11:37:47AM +0100, Bruce Richardson wrote: >> On Thu, May 19, 2016 at 06:44:44PM +0200, Thomas Monjalon wrote: >>> 2016-05-19 17:28, Ferruh Yigit: On 5/19/2016 9:33 AM, Thomas Monjalon wrote: > 2016-05-18 18:10, Ferruh Yigit

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-20 Thread Thomas Monjalon
2016-05-20 11:37, Bruce Richardson: > On Thu, May 19, 2016 at 06:44:44PM +0200, Thomas Monjalon wrote: > > 2016-05-19 17:28, Ferruh Yigit: > > > 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

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-20 Thread Bruce Richardson
On Thu, May 19, 2016 at 06:44:44PM +0200, Thomas Monjalon wrote: > 2016-05-19 17:28, Ferruh Yigit: > > 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

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-20 Thread Yuanhan Liu
On Thu, May 19, 2016 at 06:44:44PM +0200, Thomas Monjalon wrote: > 2016-05-19 17:28, Ferruh Yigit: > > 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

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-19 Thread Thomas Monjalon
2016-05-19 17:28, Ferruh Yigit: > 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()? > > > >

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-19 Thread Ferruh Yigit
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 n

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-19 Thread Thomas Monjalon
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()?

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-18 Thread Ferruh Yigit
Add rte_eth_from_vhost() API to create vhost PMD dynamically from applications. Signed-off-by: Ferruh Yigit --- v2: * drop rte_ prefix from non-public function * re-use eth_rx_queue_setup/eth_tx_queue_setup * pass vdev options as parameter to API --- drivers/net/vhost/rte_eth_vhost.c