Skip to content

Commit 4ed3061

Browse files
fengchengwendavid-marchand
authored andcommitted
net/tap: use new kvargs process API
Some kvargs could be key=value or only-key, it should use rte_kvargs_process_opt() instead of rte_kvargs_process() to handle these kvargs. Signed-off-by: Chengwen Feng <[email protected]>
1 parent f33e8c0 commit 4ed3061

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/net/tap/rte_eth_tap.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2291,7 +2291,7 @@ rte_pmd_tun_probe(struct rte_vdev_device *dev)
22912291
kvlist = rte_kvargs_parse(params, valid_arguments);
22922292
if (kvlist) {
22932293
if (rte_kvargs_count(kvlist, ETH_TAP_IFACE_ARG) == 1) {
2294-
ret = rte_kvargs_process(kvlist,
2294+
ret = rte_kvargs_process_opt(kvlist,
22952295
ETH_TAP_IFACE_ARG,
22962296
&set_interface_name,
22972297
tun_name);
@@ -2487,10 +2487,10 @@ rte_pmd_tap_probe(struct rte_vdev_device *dev)
24872487
kvlist = rte_kvargs_parse(params, valid_arguments);
24882488
if (kvlist) {
24892489
if (rte_kvargs_count(kvlist, ETH_TAP_IFACE_ARG) == 1) {
2490-
ret = rte_kvargs_process(kvlist,
2491-
ETH_TAP_IFACE_ARG,
2492-
&set_interface_name,
2493-
tap_name);
2490+
ret = rte_kvargs_process_opt(kvlist,
2491+
ETH_TAP_IFACE_ARG,
2492+
&set_interface_name,
2493+
tap_name);
24942494
if (ret == -1)
24952495
goto leave;
24962496
}

0 commit comments

Comments
 (0)