nfp: add support for TLV device stats
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 10 Dec 2019 05:04:01 +0000 (21:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2019 01:34:43 +0000 (17:34 -0800)
commitca866ee825911cb70e64ad5b33ac73d4ab924c1f
tree14a82e6d94023bafa9ec3ed98fc0c9d597c4b16e
parent5000b28b0b1a34144b39376318cafb8c2a0f79fd
nfp: add support for TLV device stats

Device stats are currently hard coded in the PCI BAR0 layout.
Add a ability to read them from the TLV area instead.
Names for the stats are maintained by the driver, and their
meaning documented. This allows us to more easily add and
remove device stats.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/device_drivers/netronome/nfp.rst
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.h
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c