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

2015-11-06 Thread Tetsuya Mukawa
On 2015/11/06 11:22, Yuanhan Liu wrote: > On Mon, Nov 02, 2015 at 12:58:57PM +0900, Tetsuya Mukawa wrote: > ... >> + >> +static uint16_t >> +eth_vhost_rx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) >> +{ >> +struct vhost_queue *r = q; >> +uint16_t nb_rx = 0; >> + >> +if (unlikely

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

2015-11-06 Thread Yuanhan Liu
On Mon, Nov 02, 2015 at 12:58:57PM +0900, Tetsuya Mukawa wrote: ... > + > +static uint16_t > +eth_vhost_rx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) > +{ > + struct vhost_queue *r = q; > + uint16_t nb_rx = 0; > + > + if (unlikely(rte_atomic32_read(&r->allow_queuing) == 0)) > +

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

2015-11-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 parame