* Data plane threads: message handling */
| 428 | * Data plane threads: message handling |
| 429 | */ |
| 430 | static inline struct thread_msg_req * |
| 431 | thread_msg_recv(struct rte_ring *msgq_req) |
| 432 | { |
| 433 | struct thread_msg_req *req = NULL; |
| 434 | |
| 435 | int status = rte_ring_sc_dequeue(msgq_req, (void **) &req); |
| 436 | |
| 437 | if (status != 0) |
| 438 | return NULL; |
| 439 | |
| 440 | return req; |
| 441 | } |
| 442 | |
| 443 | static inline void |
| 444 | thread_msg_send(struct rte_ring *msgq_rsp, |
no test coverage detected