1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2018 Gaƫtan Rivet
7 #include <rte_kvargs.h>
10 #include "vdev_logs.h"
11 #include "vdev_private.h"
17 static const char * const vdev_params_keys[] = {
18 [RTE_VDEV_PARAM_MAX] = NULL,
22 vdev_dev_match(const struct rte_device *dev,
25 const struct rte_kvargs *kvlist = _kvlist;
33 rte_vdev_dev_iterate(const void *start,
35 const struct rte_dev_iterator *it __rte_unused)
37 struct rte_kvargs *kvargs = NULL;
38 struct rte_device *dev;
41 kvargs = rte_kvargs_parse(str, vdev_params_keys);
43 VDEV_LOG(ERR, "cannot parse argument list\n");
48 dev = rte_vdev_find_device(start, vdev_dev_match, kvargs);
49 rte_kvargs_free(kvargs);