vhost: add hint on how to add or remove device to a data core
[dpdk.git] / lib / librte_vhost / rte_virtio_net.h
index 2fc1c44..b79bd0b 100644 (file)
@@ -130,6 +130,10 @@ struct virtio_memory {
 
 /**
  * Device operations to add/remove device.
+ *
+ * Make sure to set VIRTIO_DEV_RUNNING to the device flags in new_device and
+ * remove it in destroy_device.
+ *
  */
 struct virtio_net_device_ops {
        int (*new_device)(struct virtio_net *); /**< Add device. */