*/
#include <string.h>
+#include <rte_compat.h>
#include <rte_eal.h>
#include <rte_mbuf.h>
#include <rte_errno.h>
#include <rte_mbuf_pool_ops.h>
-int
+int __rte_experimental
rte_mbuf_set_platform_mempool_ops(const char *ops_name)
{
const struct rte_memzone *mz;
return -EEXIST;
}
-const char *
+const char * __rte_experimental
rte_mbuf_platform_mempool_ops(void)
{
const struct rte_memzone *mz;
return mz->addr;
}
-int
+int __rte_experimental
rte_mbuf_set_user_mempool_ops(const char *ops_name)
{
const struct rte_memzone *mz;
}
-const char *
+const char * __rte_experimental
rte_mbuf_user_mempool_ops(void)
{
const struct rte_memzone *mz;
mz = rte_memzone_lookup("mbuf_user_pool_ops");
if (mz == NULL)
- return rte_eal_mbuf_default_mempool_ops();
+ return rte_eal_mbuf_user_pool_ops();
return mz->addr;
}
/* Return mbuf pool ops name */
-const char *
+const char * __rte_experimental
rte_mbuf_best_mempool_ops(void)
{
/* User defined mempool ops takes the priority */