net/ena: expose ENI stats as additional xstats
authorMichal Krawczyk <mk@semihalf.com>
Thu, 17 Sep 2020 05:30:35 +0000 (07:30 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:09 +0000 (19:19 +0200)
commit45718ada5fa12619db4821646ba964a2df365c68
tree36227fdba00fd6adf5d775334f9615a95488b2d6
parent1343c4153bf96d25add88c3e21ee5129095a6f7b
net/ena: expose ENI stats as additional xstats

New HAL allows driver to read extra ENI stats. Exact meaning of each of
them can be found in base/ena_defs/ena_admin_defs.h file and structure
ena_admin_eni_stats.

The ena_eni_stats structure is exactly the same as ena_admin_eni_stats,
but it was required to be added for compatibility with xstats macros.

Reading ENI stats requires communication with the admin queue.

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Guy Tzalik <gtzalik@amazon.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/ena/ena_ethdev.c
drivers/net/ena/ena_ethdev.h