This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, caterpillar has been updated via 8f1b3e72d5aa42a336978445a5011758f8044622 (commit) from 4f27b38755c891b0638d19b14cce603d9e1f7713 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 8f1b3e72d5aa42a336978445a5011758f8044622 Author: Michal Mazur mkm@semihalf.com Date: Fri Jan 12 19:36:58 2018 +0100
linux-dpdk: pool: Return address range in pool info
Implement support in dpdk_pool_info function to provide address range of pool data available for application.
Pull request of related API change: https://github.com/Linaro/odp/pull/200
Signed-off-by: Michal Mazur mkm@semihalf.com Reviewed-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Yi He yi.he@linaro.org
diff --git a/platform/linux-dpdk/pool/dpdk.c b/platform/linux-dpdk/pool/dpdk.c index d2f510c9..62529d9c 100644 --- a/platform/linux-dpdk/pool/dpdk.c +++ b/platform/linux-dpdk/pool/dpdk.c @@ -538,6 +538,8 @@ static void dpdk_pool_print(odp_pool_t pool_hdl) static int dpdk_pool_info(odp_pool_t pool_hdl, odp_pool_info_t *info) { pool_entry_cp_t *pool_cp = odp_pool_to_entry_cp(pool_hdl); + pool_entry_dp_t *pool_dp = odp_pool_to_entry_dp(pool_hdl); + struct rte_mempool_memhdr *hdr;
if (pool_cp == NULL || info == NULL) return -1; @@ -545,6 +547,10 @@ static int dpdk_pool_info(odp_pool_t pool_hdl, odp_pool_info_t *info) info->name = pool_cp->name; info->params = pool_cp->params;
+ hdr = STAILQ_FIRST(&pool_dp->rte_mempool->mem_list); + info->min_data_addr = (uint64_t)hdr->addr; + info->max_data_addr = (uint64_t)hdr->addr + hdr->len - 1; + return 0; }
-----------------------------------------------------------------------
Summary of changes: platform/linux-dpdk/pool/dpdk.c | 6 ++++++ 1 file changed, 6 insertions(+)
hooks/post-receive