net: bcmgenet: correct the RBUF_OVFL_CNT and RBUF_ERR_CNT MIB values
authorDoug Berger <opendmb@gmail.com>
Fri, 10 Mar 2017 00:58:43 +0000 (16:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 02:39:01 +0000 (18:39 -0800)
commitffff71328a3c321f7c14cc1edd33577717037744
tree06ed31c7750efdb558bb026abd7b24b3cab79000
parentd7aba644ffdebf756e51e26a2229055211838e89
net: bcmgenet: correct the RBUF_OVFL_CNT and RBUF_ERR_CNT MIB values

The location of the RBUF overflow and error counters has moved between
different version of the GENET MAC.  This commit corrects the driver to
read from the correct locations depending on the version of the GENET
MAC.

Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h