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

Function rte_mp_reply

dpdk/lib/eal/common/eal_common_proc.c:1240–1262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1238}
1239
1240int
1241rte_mp_reply(struct rte_mp_msg *msg, const char *peer)
1242{
1243 RTE_LOG(DEBUG, EAL, "reply: %s\n", msg->name);
1244 const struct internal_config *internal_conf =
1245 eal_get_internal_configuration();
1246
1247 if (check_input(msg) != 0)
1248 return -1;
1249
1250 if (peer == NULL) {
1251 RTE_LOG(ERR, EAL, "peer is not specified\n");
1252 rte_errno = EINVAL;
1253 return -1;
1254 }
1255
1256 if (internal_conf->no_shconf) {
1257 RTE_LOG(DEBUG, EAL, "No shared files mode enabled, IPC is disabled\n");
1258 return 0;
1259 }
1260
1261 return mp_send(msg, peer, MP_REP);
1262}
1263
1264/* Internally, the status of the mp feature is represented as a three-state:
1265 * - "unknown" as long as no secondary process attached to a primary process

Callers

nothing calls this directly

Calls 3

mp_sendFunction · 0.85
check_inputFunction · 0.70

Tested by

no test coverage detected