MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mp_msg_init

Function mp_msg_init

dpdk/drivers/net/ena/ena_ethdev.c:369–379  ·  view source on GitHub ↗

* 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. * */

Source from the content-addressed store, hash-verified

367 *
368 */
369static void
370mp_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

Callers 1

ena_mp_primary_handleFunction · 0.85

Calls 2

memsetFunction · 0.85
strlcpyFunction · 0.50

Tested by

no test coverage detected