On 8/21/19 11:47 PM, pbhagavat...@marvell.com wrote:
From: Pavan Nikhilesh <pbhagavat...@marvell.com>
Disable packet type parsing in examples that don't use
`rte_mbuf::packet_type` by setting ptype_mask as 0 in
`rte_eth_dev_set_supported_ptypes`
Signed-off-by: Pavan Nikhilesh <pbhagavat...@marvell.com>
<snip>
diff --git a/examples/bbdev_app/main.c b/examples/bbdev_app/main.c
index 9acf666dc..8ae6e4972 100644
--- a/examples/bbdev_app/main.c
+++ b/examples/bbdev_app/main.c
@@ -478,6 +478,7 @@ initialize_ports(struct app_config_params *app_params,
}
rte_eth_promiscuous_enable(port_id);
+ rte_eth_dev_set_supported_ptypes(port_id, 0);
Release notes and 1/7 patch description say that RTE_PTYPE_UNKNOWN
may be set in this case and may be it is even better vs 0.
rte_eth_macaddr_get(port_id, &bbdev_port_eth_addr);
print_mac(port_id, &bbdev_port_eth_addr);
<snip>