netdev
[Top] [All Lists]

Re: netdev.stats change suggestion

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: Re: netdev.stats change suggestion
From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Date: Thu, 24 Jan 2002 09:16:07 -0700
Cc: jgarzik@xxxxxxxxxxxxxxxx, ak@xxxxxxx, Robert.Olsson@xxxxxxxxxxx, cw@xxxxxxxx, dima@xxxxxxxxx, netdev@xxxxxxxxxxx
Organization: Candela Technologies
References: <20020124.062650.66057933.davem@xxxxxxxxxx> <20020124162825.A24611@xxxxxxxxxxxxx> <3C502A99.4EEFFB40@xxxxxxxxxxxxxxxx> <20020124.074729.41631242.davem@xxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
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.

By the way, how do you change a 64-bit counter to/from network-byte-order
on a 32bit machine?  (Perhaps you would need to do it in this case..but I'm
curious :))

Thanks,
Ben

David S. Miller wrote:

   From: Jeff Garzik <jgarzik@xxxxxxxxxxxxxxxx>
   Date: Thu, 24 Jan 2002 10:39:05 -0500
I have very little preference for the interface, besides -not-
   dumping yet another random file into procfs...

Since netlink is available always now, let's use that.




--
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>