net/virtio: fix incorrect cast of void *
[dpdk.git] / lib / librte_eal / common / include / rte_devargs.h
index 36453b6..58d585d 100644 (file)
@@ -56,9 +56,9 @@ extern "C" {
  * Type of generic device
  */
 enum rte_devtype {
-       RTE_DEVTYPE_UNDEFINED,
-       RTE_DEVTYPE_WHITELISTED,
-       RTE_DEVTYPE_BLACKLISTED,
+       RTE_DEVTYPE_WHITELISTED_PCI,
+       RTE_DEVTYPE_BLACKLISTED_PCI,
+       RTE_DEVTYPE_VIRTUAL,
 };
 
 /**
@@ -76,6 +76,8 @@ struct rte_devargs {
        TAILQ_ENTRY(rte_devargs) next;
        /** Type of device. */
        enum rte_devtype type;
+       /** Device policy. */
+       enum rte_dev_policy policy;
        /** Bus handle for the device. */
        struct rte_bus *bus;
        /** Name of the device. */
@@ -138,6 +140,19 @@ int
 rte_eal_devargs_parse(const char *dev,
                      struct rte_devargs *da);
 
+/**
+ * Insert an rte_devargs in the global list.
+ *
+ * @param da
+ *  The devargs structure to insert.
+ *
+ * @return
+ *   - 0 on success
+ *   - Negative on error.
+ */
+int
+rte_eal_devargs_insert(struct rte_devargs *da);
+
 /**
  * Add a device to the user device list
  *