net: dsa: microchip: ksz9477: export HW stats over stats64 interface
Provide access to HW offloaded packets over stats64 interface. The rx/tx_bytes values needed some fixing since HW is accounting size of the Ethernet frame together with FCS. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0d0350c471
commit
a7f4f13a0a
@ -110,6 +110,10 @@ static void ksz_mib_read_work(struct work_struct *work)
|
||||
}
|
||||
port_r_cnt(dev, i);
|
||||
p->read = false;
|
||||
|
||||
if (dev->dev_ops->r_mib_stat64)
|
||||
dev->dev_ops->r_mib_stat64(dev, i);
|
||||
|
||||
mutex_unlock(&mib->cnt_mutex);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user