git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal/x86: revert select optimized memcpy at run-time
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
rte_devargs.h
diff --git
a/lib/librte_eal/common/include/rte_devargs.h
b/lib/librte_eal/common/include/rte_devargs.h
index
36453b6
..
58d585d
100644
(file)
--- a/
lib/librte_eal/common/include/rte_devargs.h
+++ b/
lib/librte_eal/common/include/rte_devargs.h
@@
-56,9
+56,9
@@
extern "C" {
* Type of generic device
*/
enum rte_devtype {
* 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;
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. */
/** 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);
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
*
/**
* Add a device to the user device list
*