]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/rte_virtio_net.h
vhost: add hint on how to add or remove device to a data core
[dpdk.git] / lib / librte_vhost / rte_virtio_net.h
index 2fc1c448f28cfed2b31e4eb92c3c39cf0bfeddc2..b79bd0b76bc33a967bcf8a900ce8b1bfb5365f75 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. */