MCPcopy Index your code
hub / github.com/F-Stack/f-stack / get_matching_vdev

Function get_matching_vdev

dpdk/app/test/test_vdev.c:48–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48static struct rte_device *
49get_matching_vdev(const char *match_str)
50{
51 struct rte_bus *vdev_bus = rte_bus_find_by_name("vdev");
52 struct rte_kvargs *kvargs = NULL;
53 struct rte_device *dev;
54
55 if (match_str != NULL) {
56 kvargs = rte_kvargs_parse(match_str, valid_keys);
57 if (kvargs == NULL) {
58 printf("Failed to parse match string\n");
59 return NULL;
60 }
61 }
62
63 dev = vdev_bus->find_device(NULL, cmp_dev_match, kvargs);
64 rte_kvargs_free(kvargs);
65
66 return dev;
67}
68
69static int
70test_vdev_bus(void)

Callers 1

test_vdev_busFunction · 0.85

Calls 4

rte_bus_find_by_nameFunction · 0.85
rte_kvargs_parseFunction · 0.85
rte_kvargs_freeFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected