]> git.baikalelectronics.ru Git - kernel.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)
commit9faafb98029821f10d38dab1b1f17e8b76020f1f
tree1352be25951b6502fadcef6c1fbd0f290429234d
parent401150ecdadddac930b288f6c38ce59f68e519ca
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: d88d62a31a46 ("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