[dpdk-dev] [RFC PATCH] vhost: Add VHOST PMD

2015-09-17 Thread Loftus, Ciara
> > On 2015/09/16 1:27, Loftus, Ciara wrote: > >> + > >> +static int > >> +rte_pmd_vhost_devinit(const char *name, const char *params) > >> +{ > >> + struct rte_kvargs *kvlist = NULL; > >> + int ret = 0; > >> + int index; > >> + char *iface_name; > >> + > >> + RTE_LOG(INFO, PMD, "Initializing

[dpdk-dev] [RFC PATCH] vhost: Add VHOST PMD

2015-09-16 Thread Tetsuya Mukawa
On 2015/09/16 1:27, Loftus, Ciara wrote: >> + >> +static int >> +rte_pmd_vhost_devinit(const char *name, const char *params) >> +{ >> +struct rte_kvargs *kvlist = NULL; >> +int ret = 0; >> +int index; >> +char *iface_name; >> + >> +RTE_LOG(INFO, PMD, "Initializing pmd_vhost for

[dpdk-dev] [RFC PATCH] vhost: Add VHOST PMD

2015-09-15 Thread Loftus, Ciara
> + > +static int > +rte_pmd_vhost_devinit(const char *name, const char *params) > +{ > + struct rte_kvargs *kvlist = NULL; > + int ret = 0; > + int index; > + char *iface_name; > + > + RTE_LOG(INFO, PMD, "Initializing pmd_vhost for %s\n", name); > + > + kvlist = rte_kvargs_

[dpdk-dev] [RFC PATCH] vhost: Add VHOST PMD

2015-08-31 Thread Tetsuya Mukawa
On 2015/08/31 14:14, Ouyang, Changchun wrote: > > +struct pmd_internal { > + TAILQ_ENTRY(pmd_internal) next; > + char *dev_name; > + char *iface_name; > + unsigned nb_rx_queues; > + unsigned nb_tx_queues; > + rte_atomic16_t xfer; > + > + struct vhost_queue > rx_vhost_que

[dpdk-dev] [RFC PATCH] vhost: Add VHOST PMD

2015-08-31 Thread Tetsuya Mukawa
On 2015/08/29 3:18, Stephen Hemminger wrote: > On Fri, 28 Aug 2015 12:21:41 +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 PMD can have 'iface' parameter

[dpdk-dev] [RFC PATCH] vhost: Add VHOST PMD

2015-08-31 Thread Ouyang, Changchun
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Tetsuya Mukawa > Sent: Friday, August 28, 2015 11:22 AM > To: dev at dpdk.org > Cc: ann.zhuangyanying at huawei.com > Subject: [dpdk-dev] [RFC PATCH] vhost: Add VHOST PMD > > The pa

[dpdk-dev] [RFC PATCH] vhost: Add VHOST PMD

2015-08-28 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 PMD can have 'iface' parameter like below to specify a path to connect to a virtio-net device. $ ./testpmd -c f -n 4 --vdev 'eth_vhost0,iface=/tmp/s

[dpdk-dev] [RFC PATCH] vhost: Add VHOST PMD

2015-08-28 Thread Stephen Hemminger
On Fri, 28 Aug 2015 12:21:41 +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 PMD can have 'iface' parameter like below to specify a path to connect > to a virtio