FF_USE_PAGE_ARRAY compatible DPDK 20.11.

This commit is contained in:
fengbojiang 2022-05-07 12:05:35 +08:00
parent 021aaded2c
commit b874712e25
1 changed files with 1 additions and 1 deletions

View File

@ -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;