enetc: Clean up of ehtool stats len
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Tue, 10 Mar 2020 12:51:22 +0000 (14:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 22:48:54 +0000 (15:48 -0700)
commita784c92ee272ed075b2134736d32321535fc778a
tree7ce74c333f0e55fc5b1a153ea1f534cace5ff9ca
parent9ff3dd7b8453499cc06134bde13069fc94f826e3
enetc: Clean up of ehtool stats len

Refactor the stats len computation code to make it easier
to add new stats counters.

Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c