[PATCH] examples/l2fwd: add check of Rx packets count
Thomas Monjalon
thomas at monjalon.net
Sun Jun 26 23:12:11 CEST 2022
Please could we have some tests on other hardware with this improvement?
25/05/2022 11:13, Rahul Bhansali:
> An additional check is added to avoid extra processing if
> receive packets are 0.
>
> Performance impact: with Marvell OCTEON TX2 platform, observed an
> improvement by ~14%.
>
> Signed-off-by: Rahul Bhansali <rbhansali at marvell.com>
> ---
> nb_rx = rte_eth_rx_burst(portid, 0,
> pkts_burst, MAX_PKT_BURST);
>
> + if (unlikely(nb_rx == 0))
> + continue;
> +
More information about the dev
mailing list