net/ena: add Tx drops statistic
authorMichal Krawczyk <mk@semihalf.com>
Wed, 8 Apr 2020 08:29:12 +0000 (10:29 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commite1e73e3229355de3c6945b68a94aba63f790a225
tree8436e0f0ba7b0d1eb95b503f334eeea6fe388fb3
parent38faa87eb8873e04ccef8fcaea4aaf3ad125fc83
net/ena: add Tx drops statistic

ENA device can report in the AENQ handler amount of Tx packets that were
dropped and not sent.

This statistic is showing global value for the device and because
rte_eth_stats is missing field that could indicate this value (it
isn't the Tx error), it is being presented as a extended statistic.

As the current design of extended statistics prevents tx_drops from
being an atomic variable and both tx_drops and rx_drops are only updated
from the AENQ handler, both were set as non-atomic for the alignment.

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Guy Tzalik <gtzalik@amazon.com>
doc/guides/rel_notes/release_20_05.rst
drivers/net/ena/ena_ethdev.c
drivers/net/ena/ena_ethdev.h