12/10/2022 14:34, Harry van Haaren:
> The eventdev xstats reset API takes an ID of "uint32_t", while
> the rest of the xstats APIs require an "unsigned int". On some
> platforms these might not be the same bitwidth, however this was
> assumed in the code.
> 
> Fix by providing a uint32_t to the xstats_reset() function.

Why adding a comment about the type in the code?
We are not adding /* using the right type */ in each line of code.

[...]
> -             /* reset to zero */
> +             /* reset to zero: note API requires uint32_t not unsigned int */
> +             uint32_t reset_id = id;
>               int reset_ret = rte_event_dev_xstats_reset(evdev,



Reply via email to