| 288 | } |
| 289 | |
| 290 | static int |
| 291 | dsa_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 | |
| 314 | static int |
| 315 | dsa_scan(void) |
nothing calls this directly
no test coverage detected