netdev
[Top] [All Lists]

Re: netdev.stats change suggestion

To: Jeff Garzik <jgarzik@xxxxxxxxxxxxxxxx>
Subject: Re: netdev.stats change suggestion
From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Date: Thu, 24 Jan 2002 10:35:30 -0700
Cc: "David S. Miller" <davem@xxxxxxxxxx>, ak@xxxxxxx, Robert.Olsson@xxxxxxxxxxx, cw@xxxxxxxx, dima@xxxxxxxxx, netdev@xxxxxxxxxxx
Organization: Candela Technologies
References: <20020124.062650.66057933.davem@redhat.com> <20020124162825.A24611@wotan.suse.de> <3C502A99.4EEFFB40@mandrakesoft.com> <20020124.074729.41631242.davem@redhat.com> <3C503347.5020608@candelatech.com> <3C50381B.3E1B602@mandrakesoft.com>
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2


Jeff Garzik wrote:

Ben Greear wrote:

From a quick glance at the man page, it seems netlink would be pretty
heavy-weight for just wanting to get the counters from a device.  I
especially do not want to have to deal with the unreliable
(according to the man page) nature of netlink when reading kernel
counters.  To me, an IOCTL seems best.


We wanna send link up/down notification via netlink too, might as well do stats too. Gives us a lot of flexibility.

If you have concerns about netlink stability, IMHO we can address that
separately... by fixing manpage, code, whatever.  Suggestions/code
review welcome.


Note that I am not advocating NOT providing stats through netlink, I
just prefer an IOCTL too.


in the kernel, cpu_to/from_be64.  in userspace, using glib at least,
GUINT64_TO_BE, etc.


Thanks...what does 'be' stand for?  Big endian?  So...erm...is 
network-byte-order
big-endian or little-endian? :)

Ben



--
Ben Greear <greearb@xxxxxxxxxxxxxxx>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear



<Prev in Thread] Current Thread [Next in Thread>