drivers: net: xgene-v2: Extend ethtool statistics
authorIyappan Subramanian <isubramanian@apm.com>
Mon, 17 Apr 2017 23:47:55 +0000 (16:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Apr 2017 19:55:13 +0000 (15:55 -0400)
commite05ddafd896fccb4568db01fe4de812ca1e6f353
treeb5b3c2237ca24a9f22ba70fad55615a3239f0de5
parent4116c97689b9b1732ac5b68afd922406f9fc842e
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>
drivers/net/ethernet/apm/xgene-v2/ethtool.c
drivers/net/ethernet/apm/xgene-v2/ethtool.h [new file with mode: 0644]
drivers/net/ethernet/apm/xgene-v2/mac.h
drivers/net/ethernet/apm/xgene-v2/main.h