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

Function mp_init_msg

dpdk/drivers/net/mana/mp.c:64–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static void
65mp_init_msg(struct rte_mp_msg *msg, enum mana_mp_req_type type, int port_id)
66{
67 struct mana_mp_param *param;
68
69 strlcpy(msg->name, MANA_MP_NAME, sizeof(msg->name));
70 msg->len_param = sizeof(*param);
71
72 param = (struct mana_mp_param *)msg->param;
73 param->type = type;
74 param->port_id = port_id;
75}
76
77static int
78mana_mp_primary_handle(const struct rte_mp_msg *mp_msg, const void *peer)

Callers 5

mana_mp_primary_handleFunction · 0.70
mana_mp_secondary_handleFunction · 0.70
mana_mp_req_verbs_cmd_fdFunction · 0.70
mana_mp_req_mr_createFunction · 0.70
mana_mp_req_on_rxtxFunction · 0.70

Calls 1

strlcpyFunction · 0.50

Tested by

no test coverage detected