]> git.baikalelectronics.ru Git - kernel.git/commit
net: core: add IFLA_STATS64 support
authorJan Engelhardt <jengelh@medozas.de>
Thu, 11 Mar 2010 09:57:29 +0000 (09:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Mar 2010 04:23:22 +0000 (21:23 -0700)
commitf4390e81b94fe48ea286979c87dbeed16af05c1b
treefa3e20c31e7d6907668d45eee702d02d646cae8f
parent42a0ef03ad63142410122543e4ef6ae7536b2031
net: core: add IFLA_STATS64 support

`ip -s link` shows interface counters truncated to 32 bit. This is
because interface statistics are transported only in 32-bit quantity
to userspace. This commit adds a new IFLA_STATS64 attribute that
exports them in full 64 bit.

References: http://lkml.indiana.edu/hypermail/linux/kernel/0307.3/0215.html
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_link.h
net/core/rtnetlink.c