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

Xie, Huawei huawei.xie at intel.com
Thu Jan 21 03:18:19 CET 2016


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.index) {
> +			ret = vhost_kernel_ioctl(hw, VHOST_NET_SET_BACKEND, &file);
> +			if (ret < 0)
> +				rte_panic("VHOST_NET_SET_BACKEND failed, %s\n",
> +						strerror(errno));
> +		}
> +	}
> +
> +	/* TODO: VHOST_SET_LOG_BASE */

We needn't support VHOST_SET_LOG_BASE.


More information about the dev mailing list