net/ena: fix getting xstats global stats offset
authorMichal Krawczyk <mk@semihalf.com>
Fri, 30 Oct 2020 11:31:16 +0000 (12:31 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:06 +0000 (23:35 +0100)
commit493107fd83a2848025dd42db67764bb0dc7943e0
tree2d5590a095363bd26c8812317c5f5025a9b0c6a5
parentdd649913cca40dd2a7bbd50d63e82b8b75267795
net/ena: fix getting xstats global stats offset

There was a bug in a code, which was reading stat_offset value from the
ena_stats_rx_strings array instead of ena_stats_global_strings.

It wasn't causing real problems just because ena_stats_rx_strings was
not smaller than ena_stats_global_strings and both arrays hold the same
offsets.

Fixes: 7830e905b7c9 ("net/ena: expose extended stats")
Cc: stable@dpdk.org
Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Guy Tzalik <gtzalik@amazon.com>
drivers/net/ena/ena_ethdev.c