[PATCH v2 3/3] l3fwd-power: add option to call uncore API

Pattan, Reshma reshma.pattan at intel.com
Thu Jul 21 18:48:09 CEST 2022



> -----Original Message-----
> From: Kearney, Tadhg <tadhg.kearney at intel.com>
<snip>

> +static int
> +parse_uncore_index(const char *choice)
> +{
> +		if (frequency_index > freq_array_len) {

Should this be compared against freq_array_len-1 ?. Ex: If total 10 frequencies the index can be only 0-9.

Thanks,
Reshma


More information about the dev mailing list