| 32 | } |
| 33 | |
| 34 | struct tap * |
| 35 | tap_find(const char *name) |
| 36 | { |
| 37 | struct tap *tap; |
| 38 | |
| 39 | if (name == NULL) |
| 40 | return NULL; |
| 41 | |
| 42 | TAILQ_FOREACH(tap, &tap_list, node) |
| 43 | if (strcmp(tap->name, name) == 0) |
| 44 | return tap; |
| 45 | |
| 46 | return NULL; |
| 47 | } |
| 48 | |
| 49 | #ifndef RTE_EXEC_ENV_LINUX |
| 50 |
no test coverage detected