| 398 | } |
| 399 | |
| 400 | static uint32_t |
| 401 | mp_handle(void *arg __rte_unused) |
| 402 | { |
| 403 | struct mp_msg_internal msg; |
| 404 | struct sockaddr_un sa; |
| 405 | int fd; |
| 406 | |
| 407 | while ((fd = rte_atomic_load_explicit(&mp_fd, rte_memory_order_relaxed)) >= 0) { |
| 408 | int ret; |
| 409 | |
| 410 | ret = read_msg(fd, &msg, &sa); |
| 411 | if (ret <= 0) |
| 412 | break; |
| 413 | |
| 414 | process_msg(&msg, &sa); |
| 415 | } |
| 416 | |
| 417 | return 0; |
| 418 | } |
| 419 | |
| 420 | static int |
| 421 | timespec_cmp(const struct timespec *a, const struct timespec *b) |
nothing calls this directly
no test coverage detected