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
crypto/qat: add device files
[dpdk.git]
/
lib
/
librte_eal
/
common
/
eal_common_devargs.c
diff --git
a/lib/librte_eal/common/eal_common_devargs.c
b/lib/librte_eal/common/eal_common_devargs.c
index
b251bb0
..
b043415
100644
(file)
--- a/
lib/librte_eal/common/eal_common_devargs.c
+++ b/
lib/librte_eal/common/eal_common_devargs.c
@@
-63,7
+63,7
@@
bus_name_cmp(const struct rte_bus *bus, const void *name)
}
int __rte_experimental
}
int __rte_experimental
-rte_
eal_
devargs_parse(struct rte_devargs *da, const char *format, ...)
+rte_devargs_parse(struct rte_devargs *da, const char *format, ...)
{
struct rte_bus *bus = NULL;
va_list ap;
{
struct rte_bus *bus = NULL;
va_list ap;
@@
-125,11
+125,11
@@
rte_eal_devargs_parse(struct rte_devargs *da, const char *format, ...)
}
int __rte_experimental
}
int __rte_experimental
-rte_
eal_
devargs_insert(struct rte_devargs *da)
+rte_devargs_insert(struct rte_devargs *da)
{
int ret;
{
int ret;
- ret = rte_
eal_
devargs_remove(da->bus->name, da->name);
+ ret = rte_devargs_remove(da->bus->name, da->name);
if (ret < 0)
return ret;
TAILQ_INSERT_TAIL(&devargs_list, da, next);
if (ret < 0)
return ret;
TAILQ_INSERT_TAIL(&devargs_list, da, next);
@@
-137,8
+137,9
@@
rte_eal_devargs_insert(struct rte_devargs *da)
}
/* store a whitelist parameter for later parsing */
}
/* store a whitelist parameter for later parsing */
+__rte_experimental
int
int
-rte_
eal_
devargs_add(enum rte_devtype devtype, const char *devargs_str)
+rte_devargs_add(enum rte_devtype devtype, const char *devargs_str)
{
struct rte_devargs *devargs = NULL;
struct rte_bus *bus = NULL;
{
struct rte_devargs *devargs = NULL;
struct rte_bus *bus = NULL;
@@
-149,7
+150,7
@@
rte_eal_devargs_add(enum rte_devtype devtype, const char *devargs_str)
if (devargs == NULL)
goto fail;
if (devargs == NULL)
goto fail;
- if (rte_
eal_
devargs_parse(devargs, "%s", dev))
+ if (rte_devargs_parse(devargs, "%s", dev))
goto fail;
devargs->type = devtype;
bus = devargs->bus;
goto fail;
devargs->type = devtype;
bus = devargs->bus;
@@
-174,7
+175,7
@@
fail:
}
int __rte_experimental
}
int __rte_experimental
-rte_
eal_
devargs_remove(const char *busname, const char *devname)
+rte_devargs_remove(const char *busname, const char *devname)
{
struct rte_devargs *d;
void *tmp;
{
struct rte_devargs *d;
void *tmp;
@@
-192,8
+193,9
@@
rte_eal_devargs_remove(const char *busname, const char *devname)
}
/* count the number of devices of a specified type */
}
/* count the number of devices of a specified type */
+__rte_experimental
unsigned int
unsigned int
-rte_
eal_
devargs_type_count(enum rte_devtype devtype)
+rte_devargs_type_count(enum rte_devtype devtype)
{
struct rte_devargs *devargs;
unsigned int count = 0;
{
struct rte_devargs *devargs;
unsigned int count = 0;
@@
-207,8
+209,9
@@
rte_eal_devargs_type_count(enum rte_devtype devtype)
}
/* dump the user devices on the console */
}
/* dump the user devices on the console */
+__rte_experimental
void
void
-rte_
eal_
devargs_dump(FILE *f)
+rte_devargs_dump(FILE *f)
{
struct rte_devargs *devargs;
{
struct rte_devargs *devargs;
@@
-223,7
+226,7
@@
rte_eal_devargs_dump(FILE *f)
/* bus-aware rte_devargs iterator. */
__rte_experimental
struct rte_devargs *
/* bus-aware rte_devargs iterator. */
__rte_experimental
struct rte_devargs *
-rte_
eal_
devargs_next(const char *busname, const struct rte_devargs *start)
+rte_devargs_next(const char *busname, const struct rte_devargs *start)
{
struct rte_devargs *da;
{
struct rte_devargs *da;