| 1238 | } |
| 1239 | |
| 1240 | int |
| 1241 | rte_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 |
nothing calls this directly
no test coverage detected