From dfb0c75bbde1eba6ec0900c4c7440dd264c4da57 Mon Sep 17 00:00:00 2001 From: Pavan Nikhilesh Date: Mon, 5 Feb 2018 16:25:57 +0530 Subject: [PATCH] net/octeontx: register fpa as platform HW mempool Register octeontx-fpavf as platform HW mempool when net/octeontx pmd is used. Signed-off-by: Pavan Nikhilesh Acked-by: Santosh Shukla --- drivers/net/octeontx/Makefile | 2 ++ drivers/net/octeontx/meson.build | 2 ++ drivers/net/octeontx/octeontx_ethdev.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/drivers/net/octeontx/Makefile b/drivers/net/octeontx/Makefile index b47bf7a403..3e4a106626 100644 --- a/drivers/net/octeontx/Makefile +++ b/drivers/net/octeontx/Makefile @@ -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 diff --git a/drivers/net/octeontx/meson.build b/drivers/net/octeontx/meson.build index ef789eaa90..0e249eb98d 100644 --- a/drivers/net/octeontx/meson.build +++ b/drivers/net/octeontx/meson.build @@ -8,6 +8,8 @@ sources = files('octeontx_rxtx.c', 'octeontx_ethdev.c' ) +allow_experimental_apis = true + deps += ['mempool_octeontx', 'eventdev'] includes += include_directories('base') diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c index 06aa0a2c96..b739c0b391 100644 --- a/drivers/net/octeontx/octeontx_ethdev.c +++ b/drivers/net/octeontx/octeontx_ethdev.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -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; -- 2.20.1