summaryrefslogtreecommitdiffstats
path: root/net/ipv4/sysctl_net_ipv4.c
diff options
context:
space:
mode:
authorCorinna Vinschen <vinschen@redhat.com>2015-08-27 17:11:48 +0200
committerDavid S. Miller <davem@davemloft.net>2015-08-28 13:22:50 -0700
commitd7d2d89d4b0afa8f4c2b169475a0c6e43553c146 (patch)
tree7d717b2a63eee5d3e371e469f0854e91d99291c2 /net/ipv4/sysctl_net_ipv4.c
parent0d36938bb82a7775c21ce0a7429f08ba13d025b6 (diff)
downloadlinux-d7d2d89d4b0afa8f4c2b169475a0c6e43553c146.tar.gz
linux-d7d2d89d4b0afa8f4c2b169475a0c6e43553c146.tar.xz
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>
Diffstat (limited to 'net/ipv4/sysctl_net_ipv4.c')
0 files changed, 0 insertions, 0 deletions