[PATCH] app/testpmd: fix packets segments allocation

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Wed Jun 8 13:38:01 CEST 2022


On 6/2/22 15:59, Raja Zidane wrote:
> When --mbuf-size cmdln parameter is specified, the segments to scatter
> packets on are allocated sequentially from these extra memory pools
> (the mbuf for the first segment is allocated from the first pool, the
> second one from the second pool, and so on, if segment number is greater
> then pool’s the mbuf for remaining segments will be allocated from the
> last valid pool).
> A bug in comparing segment index with mbuf index caused wrong mapping
> of one of the segments.
> 
> Fix the comparison.
> 
> Fixes: 2befc67ff679 ("app/testpmd: add extended Rx queue setup")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Raja Zidane <rzidane at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>

Applied to dpdk-next-net/main, thanks.



More information about the stable mailing list