[PATCH 1/1] app/test: resolve mbuf_test application failure

Rakesh Kudurumalla rkudurumalla at marvell.com
Tue May 23 17:39:53 CEST 2023


Ping

Regards,
Rakesh

> -----Original Message-----
> From: Rakesh Kudurumalla <rkudurumalla at marvell.com>
> Sent: Wednesday, April 26, 2023 2:58 PM
> To: Olivier Matz <olivier.matz at 6wind.com>
> Cc: dev at dpdk.org; Jerin Jacob Kollanukkaran <jerinj at marvell.com>; Nithin
> Kumar Dabilpuram <ndabilpuram at marvell.com>; Rakesh Kudurumalla
> <rkudurumalla at marvell.com>
> Subject: [PATCH 1/1] app/test: resolve mbuf_test application failure
> 
> when RTE_ENABLE_ASSERT is defined test_mbuf application is failing
> because we are trying to attach extbuf to a cloned buffer to which external
> mbuf is already attached.This patch fixes the same.
> 
> Signed-off-by: Rakesh Kudurumalla <rkudurumalla at marvell.com>
> ---
> v2: removed gerrit id
> 
>  app/test/test_mbuf.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/app/test/test_mbuf.c b/app/test/test_mbuf.c index
> 8d8d3b9386..e2b81db308 100644
> --- a/app/test/test_mbuf.c
> +++ b/app/test/test_mbuf.c
> @@ -2375,6 +2375,7 @@ test_pktmbuf_ext_shinfo_init_helper(struct
> rte_mempool *pktmbuf_pool)
>  		GOTO_FAIL("%s: Bad packet length\n", __func__);
> 
>  	/* attach the same external buffer to the cloned mbuf */
> +	clone->ol_flags = 0;
>  	rte_pktmbuf_attach_extbuf(clone, ext_buf_addr, buf_iova, buf_len,
>  			ret_shinfo);
>  	if (clone->ol_flags != RTE_MBUF_F_EXTERNAL)
> --
> 2.25.1



More information about the dev mailing list