Fix to use correct value offset for PCI function stats.
Fixes:
5f9374de2a3a ("net/bnxt: add PCI function stats to extended stats")
Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
for (i = 0; i < RTE_DIM(bnxt_func_stats_strings); i++) {
xstats[count].id = count;
xstats[count].value =
- rte_le_to_cpu_64(((uint64_t *)&func_qstats)[i]);
+ rte_le_to_cpu_64(*(uint64_t *)((char *)&func_qstats +
+ bnxt_func_stats_strings[i].offset));
count++;
}