semihalf-mazur-michal replied on github web page:

platform/linux-dpdk/pool/dpdk.c
@@ -538,13 +538,19 @@ 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;
 
        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;


Comment:
Checkpatch errors are fixed in v2

> Bill Fischofer(Bill-Fischofer-Linaro) wrote:
> Please fix checkpatch errors:
> ```
> CHECK: No space is necessary after a cast
> #35: FILE: platform/linux-dpdk/pool/dpdk.c:551:
> +     info->min_data_addr = (uint64_t) hdr->addr;
> CHECK: No space is necessary after a cast
> #36: FILE: platform/linux-dpdk/pool/dpdk.c:552:
> +     info->max_data_addr = (uint64_t) hdr->addr + hdr->len - 1;
> total: 0 errors, 0 warnings, 2 checks, 18 lines checked
> ```
> Otherwise, this looks fine.


https://github.com/Linaro/odp/pull/400#discussion_r162280401
updated_at 2018-01-18 08:57:02

Reply via email to