]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: systemport: Fix software statistics for SYSTEMPORT Lite
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 8 Aug 2017 21:45:09 +0000 (14:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Aug 2017 05:39:17 +0000 (22:39 -0700)
commit50ddfbafcd1e1f95185dfaa4ad794f742b0beaf8
tree1352be25951b6502fadcef6c1fbd0f290429234d
parented43594aede9719e56eca72fc6a9a200c60b60e6
net: systemport: Fix software statistics for SYSTEMPORT Lite

With SYSTEMPORT Lite we have holes in our statistics layout that make us
skip over the hardware MIB counters, bcm_sysport_get_stats() was not
taking that into account resulting in reporting 0 for all SW-maintained
statistics, fix this by skipping accordingly.

Fixes: 44a4524c54af ("net: systemport: Add support for SYSTEMPORT Lite")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c