| 39 | } |
| 40 | |
| 41 | static bool |
| 42 | node_has_duplicate_entry(const char *name) |
| 43 | { |
| 44 | struct node *node; |
| 45 | |
| 46 | /* Is duplicate name registered */ |
| 47 | STAILQ_FOREACH(node, &node_list, next) { |
| 48 | if (strncmp(node->name, name, RTE_NODE_NAMESIZE) == 0) { |
| 49 | rte_errno = EEXIST; |
| 50 | return 1; |
| 51 | } |
| 52 | } |
| 53 | return 0; |
| 54 | } |
| 55 | |
| 56 | /* Public functions */ |
| 57 | rte_node_t |
no test coverage detected