[PATCH 1/1] test/bbdev: use helper function to set IOVA addr
Jerin Jacob
jerinjacobk at gmail.com
Thu Nov 3 07:31:53 CET 2022
On Tue, Nov 1, 2022 at 3:23 PM Srikanth Yalavarthi
<syalavarthi at marvell.com> wrote:
>
> Use helper function rte_mbuf_iova_set to set IOVA address
> to fix compilation failures.
>
> Below error was observed:
>
> dpdk/app/test-bbdev/test_bbdev_perf.c: In function ‘init_op_data_objs’:
> dpdk/app/test-bbdev/test_bbdev_perf.c:1145:11: error:
> ‘struct rte_mbuf’ has no member named ‘buf_iova’
> 1145 | m_head->buf_iova = rte_malloc_virt2iova(data);
> | ^~
>
> Fixes: 0acdb98667 ("test/bbdev: add FFT operations cases")
Is this change came after rte_mbuf_iova_set() API introduction?
>
> Signed-off-by: Srikanth Yalavarthi <syalavarthi at marvell.com>
Acked-by: Jerin Jacob <jerinj at marvell.com>
> ---
> app/test-bbdev/test_bbdev_perf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c
> index 8cf4359a2c..b285d3f3a7 100644
> --- a/app/test-bbdev/test_bbdev_perf.c
> +++ b/app/test-bbdev/test_bbdev_perf.c
> @@ -1142,7 +1142,7 @@ init_op_data_objs(struct rte_bbdev_op_data *bufs,
> "rte malloc failed with %u bytes",
> seg->length + 1024);
> m_head->buf_addr = data;
> - m_head->buf_iova = rte_malloc_virt2iova(data);
> + rte_mbuf_iova_set(m_head, rte_malloc_virt2iova(data));
> m_head->data_off = 0;
> m_head->data_len = seg->length;
> } else {
> --
> 2.17.1
>
More information about the dev
mailing list