net/mlx5e: Add outbound PCI buffer overflow counter
authorEran Ben Elisha <eranbe@mellanox.com>
Thu, 11 May 2017 23:47:02 +0000 (02:47 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 20 Aug 2017 09:57:19 +0000 (12:57 +0300)
commitefae7f78c45ba37bdc23a95d219b59ac85bdd0a7
tree664814f03b2d084b63f56ccbbc42ed3ba1db2d81
parent068aef33bebcb1962720e44525c8d4aff6c2ee3d
net/mlx5e: Add outbound PCI buffer overflow counter

Add outbound_pci_buffer_overflow to ethtool output for monitoring the
number of packets that were dropped due to lack of PCIe buffers on
receive path from NIC port toward the host(s).

This counter is valid only in case that tx_overflow_buffer_pkt is
supported in MCAM enhanced features.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
include/linux/mlx5/mlx5_ifc.h