Re: [dpdk-dev] [PATCH] app/testpmd: fix packet burst spreading stats

2021-10-21 Thread Ferruh Yigit
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 ra

[dpdk-dev] [PATCH] app/testpmd: fix packet burst spreading stats

2021-10-21 Thread Eli Britstein
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. Fixes: af75078fece3 ("firs