[dpdk-dev,v3] net/octeontx: register fpa as platform HW mempool
Checks
Commit Message
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>
---
v3 Changes:
- spilt meson specific changes to a separate patch.
v2 Changes:
- fixed compilation issues caused by using experimental API in both meson and
make.
drivers/net/octeontx/Makefile | 2 ++
drivers/net/octeontx/octeontx_ethdev.c | 2 ++
2 files changed, 4 insertions(+)
--
2.14.1
Comments
On 2/5/2018 10:55 AM, Pavan Nikhilesh wrote:
> 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>
Applied to dpdk-next-net/master, thanks.
@@ -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
@@ -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;