diff options
| author | Iyappan Subramanian <isubramanian@apm.com> | 2017-04-17 16:47:55 -0700 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-04-18 15:55:13 -0400 |
| commit | e05ddafd896fccb4568db01fe4de812ca1e6f353 (patch) | |
| tree | b5b3c2237ca24a9f22ba70fad55615a3239f0de5 /drivers/net/ethernet/apm/xgene-v2/main.h | |
| parent | 4116c97689b9b1732ac5b68afd922406f9fc842e (diff) | |
| download | linux-e05ddafd896fccb4568db01fe4de812ca1e6f353.tar.gz linux-e05ddafd896fccb4568db01fe4de812ca1e6f353.tar.bz2 linux-e05ddafd896fccb4568db01fe4de812ca1e6f353.zip | |
drivers: net: xgene-v2: Extend ethtool statistics
This patch adds extended statistics reporting to ethtool.
In summary, this patch,
- adds ethtool.h with the statistics register definitions
- adds 'struct xge_gstrings_extd_stats' to gather extended stats
- modifies xge_get_strings(), get_sset_count() and
get_ethtool_stats() accordingly
- moves 'struct xge_gstrings_stats' to ethtool.h
Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/apm/xgene-v2/main.h')
| -rw-r--r-- | drivers/net/ethernet/apm/xgene-v2/main.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/apm/xgene-v2/main.h b/drivers/net/ethernet/apm/xgene-v2/main.h index db1178e82a0a..969b258cb7de 100644 --- a/drivers/net/ethernet/apm/xgene-v2/main.h +++ b/drivers/net/ethernet/apm/xgene-v2/main.h @@ -38,6 +38,7 @@ #include "mac.h" #include "enet.h" #include "ring.h" +#include "ethtool.h" #define XGENE_ENET_V2_VERSION "v1.0" #define XGENE_ENET_STD_MTU 1536 @@ -75,6 +76,5 @@ struct xge_pdata { int xge_mdio_config(struct net_device *ndev); void xge_mdio_remove(struct net_device *ndev); -void xge_set_ethtool_ops(struct net_device *ndev); #endif /* __XGENE_ENET_V2_MAIN_H__ */ |
