[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1259674574.4421.15.camel@violet>
Date: Tue, 01 Dec 2009 14:36:14 +0100
From: Marcel Holtmann <marcel@...tmann.org>
To: Patrick McHardy <kaber@...sh.net>
Cc: netdev@...r.kernel.org
Subject: Re: Netlink event for network device statistics
Hi Patrick,
> > 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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists