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