]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: Add software counter for multicast packages
authorCorinna Vinschen <vinschen@redhat.com>
Thu, 27 Aug 2015 15:11:48 +0000 (17:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Aug 2015 20:22:50 +0000 (13:22 -0700)
commitb80f5b002430fcc9e8d960083505af6feed90697
tree7d717b2a63eee5d3e371e469f0854e91d99291c2
parentcc1fe2a9972d0283eab368916035a0ccfc51a9d8
r8169: Add software counter for multicast packages

The multicast hardware counter on 8168/8111 chips is only 32 bit while the
statistics in struct rtnl_link_stats64 are 64 bit.  Given that statistics
are requested on an irregular basis, an overflow of the hardware counter
can go unnoticed.  To count even very large numbers of multicast packets
reliably, add a software counter and remove previously applied code to
fill the multicast field requested by @rtl8169_get_stats64 with the values
read from the rx_multicast hardware counter.

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c