[dpdk-dev] [PATCH 3/7] net/virtio-user: add mgr_rxbuf and in_order vdev parameters
Tiwei Bie
tiwei.bie at intel.com
Wed Jun 13 08:37:23 CEST 2018
On Fri, Jun 08, 2018 at 05:07:20PM +0800, Marvin Liu wrote:
[...]
> @@ -419,6 +420,12 @@ virtio_user_dev_init(struct virtio_user_dev *dev, char *path, int queues,
> dev->device_features = VIRTIO_USER_SUPPORTED_FEATURES;
> }
>
> + if (!mrg_rxbuf)
> + dev->device_features &= ~(1ull << VIRTIO_NET_F_MRG_RXBUF);
> +
> + if (!in_order)
> + dev->device_features &= ~(1ull << VIRTIO_F_IN_ORDER);
You also need to handle the server mode case.
In virtio_user_server_reconnect(),
dev->device_features will be overwritten.
Thanks
More information about the dev
mailing list