The caller shall be responsible for thread-safe */
| 215 | |
| 216 | /* The caller shall be responsible for thread-safe */ |
| 217 | static struct rte_vdev_device * |
| 218 | find_vdev(const char *name) |
| 219 | { |
| 220 | struct rte_vdev_device *dev; |
| 221 | |
| 222 | if (!name) |
| 223 | return NULL; |
| 224 | |
| 225 | TAILQ_FOREACH(dev, &vdev_device_list, next) { |
| 226 | const char *devname = rte_vdev_device_name(dev); |
| 227 | |
| 228 | if (!strcmp(devname, name)) |
| 229 | return dev; |
| 230 | } |
| 231 | |
| 232 | return NULL; |
| 233 | } |
| 234 | |
| 235 | static struct rte_devargs * |
| 236 | alloc_devargs(const char *name, const char *args) |
no test coverage detected