| 83 | } |
| 84 | |
| 85 | static int |
| 86 | get_two_sockets(struct lcore_pair *lcp) |
| 87 | { |
| 88 | unsigned int socket[2]; |
| 89 | unsigned int id[2]; |
| 90 | |
| 91 | RTE_LCORE_FOREACH(id[0]) { |
| 92 | RTE_LCORE_FOREACH(id[1]) { |
| 93 | if (id[0] == id[1]) |
| 94 | continue; |
| 95 | socket[0] = rte_lcore_to_socket_id(id[0]); |
| 96 | socket[1] = rte_lcore_to_socket_id(id[1]); |
| 97 | if (socket[0] != socket[1]) { |
| 98 | lcp->c1 = id[0]; |
| 99 | lcp->c2 = id[1]; |
| 100 | return 0; |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | return 1; |
| 106 | } |
| 107 | |
| 108 | /* Measure the cycle cost of popping an empty stack. */ |
| 109 | static void |
no test coverage detected