MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dsa_probe

Function dsa_probe

dpdk/drivers/dma/idxd/idxd_bus.c:290–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290static int
291dsa_probe(void)
292{
293 struct rte_dsa_device *dev;
294
295 TAILQ_FOREACH(dev, &dsa_bus.device_list, next) {
296 char type[64], name[64];
297
298 if (read_wq_string(dev, "type", type, sizeof(type)) < 0 ||
299 read_wq_string(dev, "name", name, sizeof(name)) < 0)
300 continue;
301
302 if (strncmp(type, "user", 4) == 0 &&
303 is_for_this_process_use(dev, name)) {
304 dev->device.driver = &dsa_bus.driver;
305 idxd_probe_dsa(dev);
306 continue;
307 }
308 IDXD_PMD_DEBUG("WQ '%s', not allocated to DPDK", dev->wq_name);
309 }
310
311 return 0;
312}
313
314static int
315dsa_scan(void)

Callers

nothing calls this directly

Calls 4

read_wq_stringFunction · 0.85
strncmpFunction · 0.85
is_for_this_process_useFunction · 0.85
idxd_probe_dsaFunction · 0.85

Tested by

no test coverage detected