Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/net



hi,

> On Fri, Aug 14, 2009 at 06:48:10AM +0000, YAMAMOTO Takashi wrote:
>> hi,
>> 
>> > Module Name:       src
>> > Committed By:      dyoung
>> > Date:              Thu Aug 13 00:23:32 UTC 2009
>> > 
>> > Modified Files:
>> >    src/sys/net: if.c if.h
>> > 
>> > Log Message:
>> > Use sysctl(9) to expose to userland each interface transmission
>> > queue's maximum length, current length, and number of drops.  E.g.,
>> > 
>> > % sysctl net.interfaces.bnx0
>> > net.interfaces.bnx0.sndq.len = 0
>> > net.interfaces.bnx0.sndq.maxlen = 509
>> > net.interfaces.bnx0.sndq.drops = 0
>> 
>> does it work for xvif interfaces?  cf. PR/35074
> 
> Probably not.  Thanks for bringing this case to my attention.
> 
> I could change illegal characters in if_xname to dashes or to
> underscores in the sysctl node name.  Or I could name the node after the
> if_index instead of after the if_xname, if the if_xname contains illegal
> characters.  I guess that I like the latter idea better.  What do you
> think?

why do you want to use sysctl rather than eg. ioctl?
i tend to think that it's an abuse.

YAMAMOTO Takashi

> 
> Dave
> 
> -- 
> David Young             OJC Technologies
> dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933


Home | Main Index | Thread Index | Old Index