netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* netlink stats and message ordering.
@ 2010-11-19 18:20 Ben Greear
  2010-11-20  4:49 ` Eric Dumazet
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Greear @ 2010-11-19 18:20 UTC (permalink / raw)
  To: NetDev

I have a single netlink socket that listens for various things,
as well as requests netdev stats and such.

I am seeing a case during interface creation (mac-vlans) where I get one set of stats
that appears to show 1 packet transmitted, and then immediately after that,
a second set of stats for the same device that shows all zero counters.

Since I'm trying to handle wraps properly, my code tends to consider this
a wrap and of course the numbers go all wrong since it wasn't really a wrap.

I am wondering if it's possible that netlink messages are somehow being
re-ordered before they are sent to my application?

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-20  5:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-19 18:20 netlink stats and message ordering Ben Greear
2010-11-20  4:49 ` Eric Dumazet
2010-11-20  5:10   ` Ben Greear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).