summaryrefslogtreecommitdiff
path: root/drivers/net/failsafe/failsafe_eal.c
diff options
context:
space:
mode:
authorGaetan Rivet <gaetan.rivet@6wind.com>2018-04-24 01:54:49 +0200
committerThomas Monjalon <thomas@monjalon.net>2018-04-25 03:58:45 +0200
commit9e6b5ea9925a204965b859f1cc11641df03232af (patch)
tree9758703e76814fe56fe4c6d88ce68813bcfe653f /drivers/net/failsafe/failsafe_eal.c
parentc7b424c03d8ed4b050fc3455ac0a0c03c22f773e (diff)
downloaddpdk-next-eventdev-9e6b5ea9925a204965b859f1cc11641df03232af.zip
dpdk-next-eventdev-9e6b5ea9925a204965b859f1cc11641df03232af.tar.gz
dpdk-next-eventdev-9e6b5ea9925a204965b859f1cc11641df03232af.tar.xz
devargs: make parsing variadic
rte_eal_devargs_parse can be used by EAL subsystems, drivers, applications alike. Device parameters may be presented with different structure each time; as a single declaration string or several strings each describing different parts of the declaration. To simplify the use of this parsing facility, its parameters are made variadic. Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com> Acked-by: Thomas Monjalon <thomas@monjalon.net>
Diffstat (limited to 'drivers/net/failsafe/failsafe_eal.c')
-rw-r--r--drivers/net/failsafe/failsafe_eal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/failsafe/failsafe_eal.c b/drivers/net/failsafe/failsafe_eal.c
index 4078fdb..c11621e 100644
--- a/drivers/net/failsafe/failsafe_eal.c
+++ b/drivers/net/failsafe/failsafe_eal.c
@@ -69,7 +69,7 @@ fs_bus_init(struct rte_eth_dev *dev)
else
snprintf(devstr, sizeof(devstr), "%s",
rte_eth_devices[pid].device->name);
- ret = rte_eal_devargs_parse(devstr, da);
+ ret = rte_eal_devargs_parse(da, "%s", devstr);
if (ret) {
ERROR("Probed devargs parsing failed with code"
" %d", ret);