[v14,6/7] examples/l2fwd: disable ptype parsing
Checks
Commit Message
From: Pavan Nikhilesh <pbhagavatula@marvell.com>
Disable packet type parsing as l2fwd doesn't rely on packet types.
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
examples/l2fwd/Makefile | 1 +
examples/l2fwd/main.c | 2 ++
examples/l2fwd/meson.build | 1 +
3 files changed, 4 insertions(+)
@@ -51,6 +51,7 @@ include $(RTE_SDK)/mk/rte.vars.mk
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
+CFLAGS += -DALLOW_EXPERIMENTAL_API
include $(RTE_SDK)/mk/rte.extapp.mk
endif
@@ -713,6 +713,8 @@ main(int argc, char **argv)
"Cannot set error callback for tx buffer on port %u\n",
portid);
+ rte_eth_dev_set_supported_ptypes(portid, RTE_PTYPE_UNKNOWN,
+ NULL, 0);
/* Start device */
ret = rte_eth_dev_start(portid);
if (ret < 0)
@@ -6,6 +6,7 @@
# To build this example as a standalone application with an already-installed
# DPDK instance, use 'make'
+allow_experimental_apis = true
sources = files(
'main.c'
)