]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: dsa: mv88e6xxx: Add stats_get_sset_count|string to ops structure
authorAndrew Lunn <andrew@lunn.ch>
Mon, 21 Nov 2016 22:27:02 +0000 (23:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Nov 2016 14:55:30 +0000 (09:55 -0500)
commitdfafe449bbc91dfeab9b722f4396d3846db4aa50
treecd796553433bf49c50e70208a593bcd6b570d4ec
parentde2273876e3fb5a5a62cc538936d06b014b06eda
net: dsa: mv88e6xxx: Add stats_get_sset_count|string to ops structure

Different families have different sets of statistics. Abstract this
using a stats_get_sset_count and stats_get_strings op. Each stat has a
bitmap, and the ops implementer uses a bit map mask to count the
statistics which apply for the family, or return the list of strings.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
v2:
  Rename functions to avoid _ prefix.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/mv88e6xxx.h