[dpdk-dev] [PATCH v4 8/9] app/procinfo: add support for show mempool

Pattan, Reshma reshma.pattan at intel.com
Wed Nov 21 18:23:55 CET 2018



> -----Original Message-----
> From: Varghese, Vipin
> Sent: Tuesday, November 6, 2018 12:49 PM
> To: dev at dpdk.org; thomas at monjalon.net; Pattan, Reshma
> <reshma.pattan at intel.com>; stephen at networkplumber.org; Mcnamara, John
> <john.mcnamara at intel.com>
> Cc: Byrne, Stephen1 <stephen1.byrne at intel.com>; Glynn, Michael J
> <michael.j.glynn at intel.com>; Patel, Amol <amol.patel at intel.com>; Varghese,
> Vipin <vipin.varghese at intel.com>
> +			/* iterate each object */
> +			int ret = rte_mempool_obj_iter(ptr,
> +				mempool_itr_obj, NULL);

rte_mempool_obj_iter returns uint32_t,  so good to use  "ret" type to be uint32_t. So it will be in synch with below printf too.

> +			printf("  - iterated %u objects\n", ret);

Thanks,
Reshma


More information about the dev mailing list