diff options
author | rainbow_0206 <jiangwenjiang@huawei.com> | 2018-07-04 11:36:02 +0800 |
---|---|---|
committer | rainbow_0206 <jiangwenjiang@huawei.com> | 2018-07-18 10:06:24 +0800 |
commit | 000ee67eeeaa9868a98c9d2d743db90357ba3fa0 (patch) | |
tree | 2713e30f73f4d3ae1ab02f9f640efbf5bcd14e14 /src/framework/lib_common_mem | |
parent | 4cfebdd30a88eb27e9f8baa6634005239851bf02 (diff) |
Update dpdk version from 16.04 to 18.02
Change-Id: Idebbee1d61211e1e800df82e0d474cf3ef099075
Signed-off-by: rainbow_0206 <jiangwenjiang@huawei.com>
Diffstat (limited to 'src/framework/lib_common_mem')
-rw-r--r-- | src/framework/lib_common_mem/common_func.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/framework/lib_common_mem/common_func.c b/src/framework/lib_common_mem/common_func.c index f68380f..0cf5b90 100644 --- a/src/framework/lib_common_mem/common_func.c +++ b/src/framework/lib_common_mem/common_func.c @@ -137,7 +137,7 @@ dmm_pktmbuf_pool_iterator (struct common_mem_mempool * mp, uint32_t start, } int32_t elm_size = mp->elt_size + mp->header_size + mp->trailer_size; - struct common_mem_mbuf *elm_mbuf = (struct common_mem_mbuf *) (mp->elt_va_start + start * elm_size + mp->header_size); /*lint !e647 */ + struct common_mem_mbuf *elm_mbuf = (struct common_mem_mbuf *) (STAILQ_FIRST(&mp->mem_list)->addr + start * elm_size + mp->header_size); /*lint !e647 */ uint32_t i; uint32_t mbuf_end = COMMON_MEM_MIN (end, mp->size) - start; |