1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2020 Dmitry Kozlyuk
6 * @file Multiprocess support stubs
8 * Stubs must log an error until implemented. If success is required
9 * for non-multiprocess operation, stub must log a warning and a comment
10 * must document what requires success emulation.
14 #include <rte_errno.h>
16 #include "eal_private.h"
17 #include "eal_windows.h"
18 #include "malloc_mp.h"
19 #include "hotplug_mp.h"
22 rte_mp_channel_cleanup(void)
24 EAL_LOG_NOT_IMPLEMENTED();
28 rte_mp_action_register(const char *name, rte_mp_t action)
32 EAL_LOG_NOT_IMPLEMENTED();
37 rte_mp_action_unregister(const char *name)
40 EAL_LOG_NOT_IMPLEMENTED();
44 rte_mp_sendmsg(struct rte_mp_msg *msg)
47 EAL_LOG_NOT_IMPLEMENTED();
52 rte_mp_request_sync(struct rte_mp_msg *req, struct rte_mp_reply *reply,
53 const struct timespec *ts)
58 EAL_LOG_NOT_IMPLEMENTED();
63 rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts,
64 rte_mp_async_reply_t clb)
69 EAL_LOG_NOT_IMPLEMENTED();
74 rte_mp_reply(struct rte_mp_msg *msg, const char *peer)
78 EAL_LOG_NOT_IMPLEMENTED();
83 register_mp_requests(void)
85 /* Non-stub function succeeds if multi-process is not supported. */
91 unregister_mp_requests(void)
93 /* Non-stub function succeeds if multi-process is not supported. */
98 request_to_primary(struct malloc_mp_req *req)
101 EAL_LOG_NOT_IMPLEMENTED();
108 /* Common memory allocator depends on this function success. */
114 eal_dev_hotplug_request_to_primary(struct eal_dev_mp_req *req)
121 eal_dev_hotplug_request_to_secondary(struct eal_dev_mp_req *req)