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