]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: mv88e6xxx: Add Second back of statistics
authorAndrew Lunn <andrew@lunn.ch>
Wed, 23 Dec 2015 12:23:17 +0000 (13:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Dec 2015 03:17:00 +0000 (22:17 -0500)
commitab8f04d4d5cd82622dc8bcbe97f5da392826a5eb
treebeaf0d9429a8e5b02828e7fffa978a2c1fea70c6
parent61ffa3da45f6a9f89f8cce472e85eff7fa0bdfcc
dsa: mv88e6xxx: Add Second back of statistics

The 6320 family of switch chips has a second bank for statistics, but
is missing three statistics in the port registers. Generalise and
extend the code:

* adding a field to the statistics table indicating the bank/register
  set where each statistics is.
* add a function indicating if an individual statistics
  is available on this device
* calculate at run time the sset_count.
* return strings based on the available statistics of the device
* return statistics based on the available statistics of the device
* Add support for reading from the second bank.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h