[dpdk-dev] [PATCH 3/4] virtio/vdev: add ways to interact with vhost

2016-01-21 Thread Xie, Huawei
On 1/11/2016 2:43 AM, Tan, Jianfeng wrote: > + if (hw->type == VHOST_KERNEL) { > + struct vhost_vring_file file; > + > + file.fd = hw->backfd; > + nvqs = data->nb_rx_queues + data->nb_tx_queues; > + for (file.index = 0; file.index < nvqs; ++file.i

[dpdk-dev] [PATCH 3/4] virtio/vdev: add ways to interact with vhost

2016-01-11 Thread Pavel Fedin
Hello! There's one more problem (see inline). > -Original Message- > From: Jianfeng Tan [mailto:jianfeng.tan at intel.com] > Sent: Sunday, January 10, 2016 2:43 PM > To: dev at dpdk.org > Cc: rich.lane at bigswitch.com; yuanhan.liu at linux.intel.com; mst at > redhat.com; > nakajima.yosh

[dpdk-dev] [PATCH 3/4] virtio/vdev: add ways to interact with vhost

2016-01-11 Thread Pavel Fedin
Hello! Please, see inline > -Original Message- > From: Jianfeng Tan [mailto:jianfeng.tan at intel.com] > Sent: Sunday, January 10, 2016 2:43 PM > To: dev at dpdk.org > Cc: rich.lane at bigswitch.com; yuanhan.liu at linux.intel.com; mst at > redhat.com; > nakajima.yoshihiro at lab.ntt.c

[dpdk-dev] [PATCH 3/4] virtio/vdev: add ways to interact with vhost

2016-01-10 Thread Jianfeng Tan
Depends on the type of vhost file: vhost-user is used if the given path points to a unix socket; vhost-net is used if the given path points to a char device. NOTE: we now keep CONFIG_RTE_VIRTIO_VDEV undefined by default, need to be uncommented when in use. Signed-off-by: Huawei Xie Signed-off-by