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

2015-12-18 Thread Tetsuya Mukawa
On 2015/12/18 16:45, Yuanhan Liu wrote: > On Tue, Nov 24, 2015 at 06:00:02PM +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 i, nb_rx = 0; >> + >> +if (unlikely(rte_ato

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

2015-12-18 Thread Yuanhan Liu
On Tue, Nov 24, 2015 at 06:00:02PM +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 i, nb_rx = 0; > + > + if (unlikely(rte_atomic32_read(&r->allow_queuing) == 0)) > +

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

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