[dpdk-dev] [PATCH v2 7/7] examples: disable Rx packet type parsing
Andrew Rybchenko
arybchenko at solarflare.com
Fri Aug 23 12:10:35 CEST 2019
On 8/21/19 11:47 PM, pbhagavatula at marvell.com wrote:
> From: Pavan Nikhilesh <pbhagavatula at 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 <pbhagavatula at 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>
More information about the dev
mailing list