X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Feal_common_proc.c;h=cbe8d10fcfee9dc034b716ef62582cd1453c5ae9;hb=cfe3aeb170b2f6277e6f96173599da51eab0654f;hp=7195d573c239159a2589c564d72eb51f64b9ff69;hpb=c7ef989970004dadd0d40319467131b1598a9cfd;p=dpdk.git diff --git a/lib/librte_eal/common/eal_common_proc.c b/lib/librte_eal/common/eal_common_proc.c index 7195d573c2..cbe8d10fcf 100644 --- a/lib/librte_eal/common/eal_common_proc.c +++ b/lib/librte_eal/common/eal_common_proc.c @@ -197,7 +197,7 @@ validate_action_name(const char *name) return 0; } -int __rte_experimental +int rte_mp_action_register(const char *name, rte_mp_t action) { struct action_entry *entry; @@ -231,7 +231,7 @@ rte_mp_action_register(const char *name, rte_mp_t action) return 0; } -void __rte_experimental +void rte_mp_action_unregister(const char *name) { struct action_entry *entry; @@ -801,7 +801,7 @@ check_input(const struct rte_mp_msg *msg) return 0; } -int __rte_experimental +int rte_mp_sendmsg(struct rte_mp_msg *msg) { if (check_input(msg) != 0) @@ -948,7 +948,7 @@ mp_request_sync(const char *dst, struct rte_mp_msg *req, return 0; } -int __rte_experimental +int rte_mp_request_sync(struct rte_mp_msg *req, struct rte_mp_reply *reply, const struct timespec *ts) { @@ -1044,7 +1044,7 @@ end: return ret; } -int __rte_experimental +int rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts, rte_mp_async_reply_t clb) { @@ -1066,7 +1066,8 @@ rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts, if (internal_config.no_shconf) { RTE_LOG(DEBUG, EAL, "No shared files mode enabled, IPC is disabled\n"); - return 0; + rte_errno = ENOTSUP; + return -1; } if (gettimeofday(&now, NULL) < 0) { @@ -1193,7 +1194,7 @@ fail: return -1; } -int __rte_experimental +int rte_mp_reply(struct rte_mp_msg *msg, const char *peer) { RTE_LOG(DEBUG, EAL, "reply: %s\n", msg->name);