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

Function mp_init_msg

dpdk/drivers/net/mlx4/mlx4_mp.c:29–40  ·  view source on GitHub ↗

* Initialize IPC message. * * @param[in] dev * Pointer to Ethernet structure. * @param[out] msg * Pointer to message to fill in. * @param[in] type * Message type. */

Source from the content-addressed store, hash-verified

27 * Message type.
28 */
29static inline void
30mp_init_msg(struct rte_eth_dev *dev, struct rte_mp_msg *msg,
31 enum mlx4_mp_req_type type)
32{
33 struct mlx4_mp_param *param = (struct mlx4_mp_param *)msg->param;
34
35 memset(msg, 0, sizeof(*msg));
36 strlcpy(msg->name, MLX4_MP_NAME, sizeof(msg->name));
37 msg->len_param = sizeof(*param);
38 param->type = type;
39 param->port_id = dev->data->port_id;
40}
41
42/**
43 * IPC message handler of primary process.

Callers 9

mp_primary_handleFunction · 0.70
mp_secondary_handleFunction · 0.70
mp_req_on_rxtxFunction · 0.70
mlx4_mp_req_mr_createFunction · 0.70
mlx4_mp_req_verbs_cmd_fdFunction · 0.70
mp_req_on_rxtxFunction · 0.50

Calls 2

memsetFunction · 0.85
strlcpyFunction · 0.50

Tested by

no test coverage detected