Re: [Qemu-devel] [PATCH v2] vhost_net: don't enable vring if backend lack this feature

2016-09-23 Thread Michael S. Tsirkin
On Fri, Sep 23, 2016 at 06:04:06PM +0800, Chen Hanxiao wrote: > From: Chen Hanxiao > > If backend(such as dpdk) lack the feather, Sorry, I don't understand what does this mean. > don't assume it in vring_enable. > Or we may fail in vhost_net_start, then we can't use vhost. > This will bring com

[Qemu-devel] [PATCH v2] vhost_net: don't enable vring if backend lack this feature

2016-09-23 Thread Chen Hanxiao
From: Chen Hanxiao If backend(such as dpdk) lack the feather, don't assume it in vring_enable. Or we may fail in vhost_net_start, then we can't use vhost. This will bring compat issue with old version backend. Signed-off-by: Chen Hanxiao --- v2: return 0 there if protocol features aren't negoti