[dpdk-dev] [PATCH] app/testpmd: fix packet burst spreading stats
Ferruh Yigit
ferruh.yigit at intel.com
Thu Oct 21 14:46:18 CEST 2021
On 10/21/2021 9:03 AM, Eli Britstein wrote:
> RX/TX functions (rte_eth_rx_burst/rte_eth_tx_burst) get 'nb_pkts'
> argument, which specifies the maximum number to receive/transmit.
> It can be 0..nb_pkts, meaning nb_pkts+1 options.
> Enlarge the spread stats array by one cell to fix the possible out of
> range memory access.
>
This looks a valid problem, I guess problem is able to hide this long
because of big MAX_PKT_BURST value in testpmd.
Can you please briefly describe what 'pkt_burst_spread[]' is in the
commit log? That makes easy to understand the problem.
> Fixes: af75078fece3 ("first public release")
> Cc: stable at dpdk.org
>
> Signed-off-by: Eli Britstein <elibr at nvidia.com>
> Reviewed-by: Matan Azrad <matan at mellanox.com>
Acked-by: Ferruh Yigit <ferruh.yigit at intel.com>
More information about the dev
mailing list