amd-xgbe: Add additional stats to be reported via ethtool
Add additional/extended statistics beyond what is provided by the hardware to be reported via ethtool. The new stats focus on the calls into ndo_start_xmit and the napi_poll routine. Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

父節點
6eaf9d1892
當前提交
5452b2dfe6
@@ -492,6 +492,11 @@ struct xgbe_mmc_stats {
|
||||
u64 rxwatchdogerror;
|
||||
};
|
||||
|
||||
struct xgbe_ext_stats {
|
||||
u64 tx_tso_packets;
|
||||
u64 rx_split_header_packets;
|
||||
};
|
||||
|
||||
struct xgbe_hw_if {
|
||||
int (*tx_complete)(struct xgbe_ring_desc *);
|
||||
|
||||
@@ -750,6 +755,7 @@ struct xgbe_prv_data {
|
||||
netdev_features_t netdev_features;
|
||||
struct napi_struct napi;
|
||||
struct xgbe_mmc_stats mmc_stats;
|
||||
struct xgbe_ext_stats ext_stats;
|
||||
|
||||
/* Filtering support */
|
||||
unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
|
||||
|
Reference in New Issue
Block a user