* 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,
};
/**
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. */
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
*