[PATCH v2] app/test-crypto-perf: fix invalid mbuf next operation

Power, Ciara ciara.power at intel.com
Fri Jan 12 17:04:48 CET 2024



> -----Original Message-----
> From: Suanming Mou <suanmingm at nvidia.com>
> Sent: Thursday, January 4, 2024 2:24 AM
> To: anoobj at marvell.com; Power, Ciara <ciara.power at intel.com>
> Cc: dev at dpdk.org
> Subject: [PATCH v2] app/test-crypto-perf: fix invalid mbuf next operation
> 
> In fill_multi_seg_mbuf(), when remaining_segments is 0, rte_mbuf m's next
> should pointer to NULL instead of a new rte_mbuf, that causes setting m-
> >next as NULL out of the while loop to the invalid mbuf.
> 
> This commit fixes the invalid mbuf next operation.
> 
> Fixes: bf9d6702eca9 ("app/crypto-perf: use single mempool")
> 
> Signed-off-by: Suanming Mou <suanmingm at nvidia.com>
> ---
> 
> v2: move next_mbuf inside remaining_segments check.
> 
> ---
>  app/test-crypto-perf/cperf_test_common.c | 15 +++++++--------
>  1 file changed, 7 insertions(+), 8 deletions(-)
> 

Acked-by: Ciara Power <ciara.power at intel.com>


More information about the dev mailing list