[dpdk-dev] [PATCH 1/7] vhost: announce VIRTIO_F_IN_ORDER support

Tiwei Bie tiwei.bie at intel.com
Wed Jun 13 08:18:39 CEST 2018


On Fri, Jun 08, 2018 at 05:07:18PM +0800, Marvin Liu wrote:
[...]
> @@ -853,6 +853,10 @@ rte_vhost_driver_register(const char *path, uint64_t flags)
>  	vsocket->supported_features = VIRTIO_NET_SUPPORTED_FEATURES;
>  	vsocket->features           = VIRTIO_NET_SUPPORTED_FEATURES;
>  
> +	/* Dequeue zero copy can't assure descriptors returned in order */
> +	if (vsocket->dequeue_zero_copy)
> +		vsocket->features &= ~(1ULL << VIRTIO_F_IN_ORDER);

You also need to clear this bit from
vsocket->supported_features.

Thanks


More information about the dev mailing list