app/procinfo: fix strncpy usage in args parsing
[dpdk.git] / lib / librte_mbuf / rte_mbuf_pool_ops.c
index 9aa1541..48cc342 100644 (file)
@@ -3,12 +3,13 @@
  */
 
 #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;
@@ -34,7 +35,7 @@ rte_mbuf_set_platform_mempool_ops(const char *ops_name)
        return -EEXIST;
 }
 
-const char *
+const char * __rte_experimental
 rte_mbuf_platform_mempool_ops(void)
 {
        const struct rte_memzone *mz;
@@ -45,7 +46,7 @@ rte_mbuf_platform_mempool_ops(void)
        return mz->addr;
 }
 
-int
+int __rte_experimental
 rte_mbuf_set_user_mempool_ops(const char *ops_name)
 {
        const struct rte_memzone *mz;
@@ -66,19 +67,19 @@ rte_mbuf_set_user_mempool_ops(const char *ops_name)
 
 }
 
-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 */