On Mon, 6 Feb 2023 17:05:05 -0600 Abdullah Sevincer <[email protected]> wrote:
> +
> + size = (unsigned int)ret; /* number of names */
> +
> + /* Get memory to hold stat names, IDs, and values */
> +
> + xstats_names = malloc(sizeof(struct rte_event_dev_xstats_name) * size);
> + ids = malloc(sizeof(unsigned int) * size);
> +
> +
> + if (!xstats_names || !ids)
> + rte_panic("unable to alloc memory for stats retrieval\n");
You might want to use calloc() here.
Seems like lots of extra blank lines.

