Thread (3 messages) 3 messages, 2 authors, 2009-12-01

Re: Netlink event for network device statistics

From: Marcel Holtmann <marcel@holtmann.org>
Date: 2009-12-01 13:36:35

Hi Patrick,
quoted
so I was playing with monitoring network device statistics and storing
them over a period of time. While netlink and ethtool provides all the
network packet statistics, I have a problem with devices that are
actually hotplug. Especially 3G cards that get taken off the bus via
RFKILL and external dongles that can be unplugged at any time.

So I was thinking that before we send the DELLINK netlink event for that
interface, we should send the latest statistic details via netlink. Is
that a good idea or is there another way to get up-to-date statistics
without polling for them?
Don't we already include them in the DELLINK message? rtnl_fill_ifinfo()
unconditionally includes the statistics.
you are correct. We already have the IFLA_STATS in DELLINK. I got
confused with ip monitor not decoding these and assumed they were not
included at all.

Regards

Marcel

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help