net/octeontx: register fpa as platform HW mempool
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Mon, 5 Feb 2018 10:55:57 +0000 (16:25 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Feb 2018 18:56:04 +0000 (19:56 +0100)
Register octeontx-fpavf as platform HW mempool when net/octeontx pmd is
used.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
drivers/net/octeontx/Makefile
drivers/net/octeontx/meson.build
drivers/net/octeontx/octeontx_ethdev.c

index b47bf7a..3e4a106 100644 (file)
@@ -43,6 +43,8 @@ else
 CFLAGS_octeontx_rxtx.o += -O3 -Ofast
 endif
 
+CFLAGS_octeontx_ethdev.o += -DALLOW_EXPERIMENTAL_API
+
 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
 LDLIBS += -lrte_mempool_octeontx
index ef789ea..0e249eb 100644 (file)
@@ -8,6 +8,8 @@ sources = files('octeontx_rxtx.c',
                'octeontx_ethdev.c'
                )
 
+allow_experimental_apis = true
+
 deps += ['mempool_octeontx', 'eventdev']
 
 includes += include_directories('base')
index 06aa0a2..b739c0b 100644 (file)
@@ -16,6 +16,7 @@
 #include <rte_dev.h>
 #include <rte_kvargs.h>
 #include <rte_malloc.h>
+#include <rte_mbuf_pool_ops.h>
 #include <rte_prefetch.h>
 #include <rte_bus_vdev.h>
 
@@ -1326,6 +1327,7 @@ octeontx_probe(struct rte_vdev_device *dev)
                res = -ENOTSUP;
                goto parse_error;
        }
+       rte_mbuf_set_platform_mempool_ops("octeontx_fpavf");
        probe_once = 1;
 
        return 0;