[dpdk-dev] [PATCH v6 2/2] vhost: Add VHOST PMD

2016-02-03 Thread Tetsuya Mukawa
On 2016/02/03 18:24, Ferruh Yigit wrote: > On Wed, Feb 03, 2016 at 04:48:17PM +0900, Tetsuya Mukawa wrote: >> On 2016/02/03 8:43, Ferruh Yigit wrote: >>> On Tue, Feb 02, 2016 at 08:18:42PM +0900, Tetsuya Mukawa wrote: + + /* find an ethdev entry */ + eth_dev =

[dpdk-dev] [PATCH v6 2/2] vhost: Add VHOST PMD

2016-02-03 Thread Tetsuya Mukawa
On 2016/02/03 8:43, Ferruh Yigit wrote: > On Tue, Feb 02, 2016 at 08:18:42PM +0900, Tetsuya Mukawa wrote: >> + >> +/* find an ethdev entry */ >> +eth_dev = rte_eth_dev_allocated(name); >> +if (eth_dev == NULL) >> +return -ENODEV; >> + >> +internal =

[dpdk-dev] [PATCH v6 2/2] vhost: Add VHOST PMD

2016-02-03 Thread Tetsuya Mukawa
On 2016/02/03 8:43, Ferruh Yigit wrote: > On Tue, Feb 02, 2016 at 08:18:42PM +0900, Tetsuya Mukawa wrote: >> diff --git a/doc/guides/nics/index.rst b/doc/guides/nics/index.rst >> index 33c9cea..5819cdb 100644 >> --- a/doc/guides/nics/index.rst >> +++ b/doc/guides/nics/index.rst >> @@ -47,6 +47,7

[dpdk-dev] [PATCH v6 2/2] vhost: Add VHOST PMD

2016-02-03 Thread Ferruh Yigit
On Wed, Feb 03, 2016 at 04:48:17PM +0900, Tetsuya Mukawa wrote: > On 2016/02/03 8:43, Ferruh Yigit wrote: > > On Tue, Feb 02, 2016 at 08:18:42PM +0900, Tetsuya Mukawa wrote: > >> + > >> + /* find an ethdev entry */ > >> + eth_dev = rte_eth_dev_allocated(name); > >> + if (eth_dev == NULL) > >> +

[dpdk-dev] [PATCH v6 2/2] vhost: Add VHOST PMD

2016-02-02 Thread Ferruh Yigit
On Tue, Feb 02, 2016 at 08:18:42PM +0900, Tetsuya Mukawa wrote: > The patch introduces a new PMD. This PMD is implemented as thin wrapper > of librte_vhost. It means librte_vhost is also needed to compile the PMD. > The vhost messages will be handled only when a port is started. So start > a port

[dpdk-dev] [PATCH v6 2/2] vhost: Add VHOST PMD

2016-02-02 Thread Tetsuya Mukawa
The patch introduces a new PMD. This PMD is implemented as thin wrapper of librte_vhost. It means librte_vhost is also needed to compile the PMD. The vhost messages will be handled only when a port is started. So start a port first, then invoke QEMU. The PMD has 2 parameters. - iface: The