From b874712e250317ca557275b9af5d9b373d637cc9 Mon Sep 17 00:00:00 2001 From: fengbojiang Date: Sat, 7 May 2022 12:05:35 +0800 Subject: [PATCH] FF_USE_PAGE_ARRAY compatible DPDK 20.11. --- lib/ff_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ff_memory.c b/lib/ff_memory.c index bbefd3a62..63e6686a4 100644 --- a/lib/ff_memory.c +++ b/lib/ff_memory.c @@ -422,7 +422,7 @@ static inline struct rte_mbuf* ff_bsd_to_rte(void *m, int total) } ff_next_mbuf(&p_bsdbuf, &data, &len); // p_bsdbuf move to next mbuf. cur->buf_addr = data; - cur->buf_physaddr = ff_mem_virt2phy((const void*)(cur->buf_addr)); + cur->buf_iova = ff_mem_virt2phy((const void*)(cur->buf_addr)); cur->data_off = 0; cur->data_len = len;