net/mlx5e: Add device out of buffer counter
authorMoshe Shemesh <moshe@mellanox.com>
Sun, 4 Aug 2019 14:53:09 +0000 (17:53 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 28 Aug 2019 18:49:04 +0000 (11:49 -0700)
commit0cfafd4b4ddff99d6c21e028704a13ec1a578b8b
tree427b3a4bec6f9c714da1a03e798952e8615d2be3
parent45f171b1182b9c4ab6d854d6f7fd7dd771fed591
net/mlx5e: Add device out of buffer counter

Added the following packets drop counter:
Device out of buffer - counts packets which were dropped due to full
device internal receive queue.
This counter will be shown on ethtool as a new counter called
dev_out_of_buffer.
The counter is read from FW by command QUERY_VNIC_ENV.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c