* Initialize IPC message. * * @param[out] msg * Pointer to the message to initialize. * @param[in] type * Message type. * @param[in] port_id * Port ID of target device. * */
| 367 | * |
| 368 | */ |
| 369 | static void |
| 370 | mp_msg_init(struct rte_mp_msg *msg, enum ena_mp_req type, int port_id) |
| 371 | { |
| 372 | struct ena_mp_body *body = (struct ena_mp_body *)&msg->param; |
| 373 | |
| 374 | memset(msg, 0, sizeof(*msg)); |
| 375 | strlcpy(msg->name, ENA_MP_NAME, sizeof(msg->name)); |
| 376 | msg->len_param = sizeof(*body); |
| 377 | body->type = type; |
| 378 | body->port_id = port_id; |
| 379 | } |
| 380 | |
| 381 | /********************************************************************* |
| 382 | * Multi-Process communication PMD API |
no test coverage detected