Re: [dpdk-dev] [PATCH 1/2] vhost: add flag for built-in virtio_net.c driver

2018-02-01 Thread Yuanhan Liu
Hi Stefan, On Wed, Jan 31, 2018 at 05:46:50PM +, Stefan Hajnoczi wrote: > The librte_vhost API is used in two ways: > 1. As a vhost net device backend via rte_vhost_enqueue/dequeue_burst(). This is how DPDK vhost-user firstly implemented. > 2. As a library for implementing vhost device backe

[dpdk-dev] [PATCH 1/2] vhost: add flag for built-in virtio_net.c driver

2018-01-31 Thread Stefan Hajnoczi
The librte_vhost API is used in two ways: 1. As a vhost net device backend via rte_vhost_enqueue/dequeue_burst(). 2. As a library for implementing vhost device backends. There is no distinction between the two at the API level or in the librte_vhost implementation. For example, device state is ke