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

2015-11-24 Thread Tetsuya Mukawa
On 2015/11/21 9:15, Rich Lane wrote: > On Thu, Nov 12, 2015 at 9:20 PM, Tetsuya Mukawa wrote: > >> +static uint16_t >> +eth_vhost_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) >> +{ >> > ... > >> + >> + /* Enqueue packets to guest RX queue */ >> + nb_tx =

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

2015-11-24 Thread Tetsuya Mukawa
On 2015/11/24 12:40, Yuanhan Liu wrote: > On Tue, Nov 24, 2015 at 11:48:04AM +0900, Tetsuya Mukawa wrote: >> On 2015/11/20 20:43, Yuanhan Liu wrote: >>> On Fri, Nov 13, 2015 at 02:20:31PM +0900, Tetsuya Mukawa wrote: >>> +static pthread_mutex_t internal_list_lock =

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

2015-11-24 Thread Tetsuya Mukawa
On 2015/11/20 20:43, Yuanhan Liu wrote: > On Fri, Nov 13, 2015 at 02:20:31PM +0900, Tetsuya Mukawa wrote: > >> +static pthread_mutex_t internal_list_lock = PTHREAD_MUTEX_INITIALIZER; >> + >> +static rte_atomic16_t nb_started_ports; >> +pthread_t session_th; > static? Hi Yuanhan, I

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

2015-11-24 Thread Yuanhan Liu
On Tue, Nov 24, 2015 at 11:48:04AM +0900, Tetsuya Mukawa wrote: > On 2015/11/20 20:43, Yuanhan Liu wrote: > > On Fri, Nov 13, 2015 at 02:20:31PM +0900, Tetsuya Mukawa wrote: > > > >> +static pthread_mutex_t internal_list_lock = PTHREAD_MUTEX_INITIALIZER; > >> + > >> +static rte_atomic16_t

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

2015-11-20 Thread Yuanhan Liu
On Fri, Nov 13, 2015 at 02:20:31PM +0900, Tetsuya Mukawa wrote: > +static pthread_mutex_t internal_list_lock = PTHREAD_MUTEX_INITIALIZER; > + > +static rte_atomic16_t nb_started_ports; > +pthread_t session_th; static? > + > +static struct rte_eth_link pmd_link = { > +

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

2015-11-20 Thread Rich Lane
On Thu, Nov 12, 2015 at 9:20 PM, Tetsuya Mukawa wrote: > +static uint16_t > +eth_vhost_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) > +{ > ... > + > + /* Enqueue packets to guest RX queue */ > + nb_tx = rte_vhost_enqueue_burst(r->device, > +

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

2015-11-16 Thread Wang, Zhihong
A quick glimpse and the bug is gone now :) Will have more test later on. > -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Friday, November 13, 2015 1:21 PM > To: dev at dpdk.org; Wang, Zhihong ; Liu, Yuanhan > > Cc: Loftus, Ciara ; pmatilai at redhat.com;

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

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