Re: sysctl vs ifconfig vs other (was Re: sysctl-controlled key-value store ?)

2012-10-07 Thread Julian Elischer
On 10/7/12 8:02 AM, Luigi Rizzo wrote: Coming to 802.11 (and I am using it just as an example): configuration of the various parameters is not too different from, say, manipulating the various features that are available in modern NICs: interrupt mitigation, queue parameters, multiqueue support,

Re: sysctl vs ifconfig vs other (was Re: sysctl-controlled key-value store ?)

2012-10-07 Thread Luigi Rizzo
On Sun, Oct 07, 2012 at 01:05:21PM -0400, Justin Hibbits wrote: > On Sun, 07 Oct 2012 10:16:40 -0600 > Ian Lepore wrote: > > > On Sun, 2012-10-07 at 17:53 +0200, Luigi Rizzo wrote: > > > Access through sysctl is incredibly easy from both userspace and > > > from a C application, because all the w

Re: sysctl vs ifconfig vs other (was Re: sysctl-controlled key-value store ?)

2012-10-07 Thread Justin Hibbits
On Sun, 07 Oct 2012 10:16:40 -0600 Ian Lepore wrote: > On Sun, 2012-10-07 at 17:53 +0200, Luigi Rizzo wrote: > > Access through sysctl is incredibly easy from both userspace and > > from a C application, because all the work is done in the kernel > > side, whereas other mechanisms (ioctl, i'd rat

Re: sysctl vs ifconfig vs other (was Re: sysctl-controlled key-value store ?)

2012-10-07 Thread Ian Lepore
On Sun, 2012-10-07 at 17:53 +0200, Luigi Rizzo wrote: > Access through sysctl is incredibly easy from both userspace and > from a C application, because all the work is done in the kernel > side, whereas other mechanisms (ioctl, i'd rather leave kvm apart > as we really don't want that!) require th

Re: sysctl vs ifconfig vs other (was Re: sysctl-controlled key-value store ?)

2012-10-07 Thread Luigi Rizzo
On Sun, Oct 07, 2012 at 08:23:23AM -0700, Garrett Cooper wrote: > On Sun, Oct 7, 2012 at 8:02 AM, Luigi Rizzo wrote: ... > FWIW, I don't think that the problem is necessarily the fact that one > should do it either via ioctl, kvm, sysctl, etc: having a library/set > of interfaces as Adrian suggest

Re: sysctl vs ifconfig vs other (was Re: sysctl-controlled key-value store ?)

2012-10-07 Thread Garrett Cooper
On Sun, Oct 7, 2012 at 8:02 AM, Luigi Rizzo wrote: > [subject changed due to the shift of topic] > > On Sun, Oct 07, 2012 at 07:08:54AM -0700, Adrian Chadd wrote: >> On 7 October 2012 03:43, Luigi Rizzo wrote: >> > >> > Good point, thanks for mentioning this: >> >> ew. ifconfig :-) >> >> > >> >

Re: sysctl vs ifconfig vs other

2012-10-07 Thread sthaug
> > Seconded; but compare to Linux which has mutiple different commands to > > do networking, as well as 'net'. :-) > > we do too -- we have arp, route, ifconfig, sysctl and possibly > more that i am not aware of. Note that at least arp, route and ifconfig have been there since very early BSD rel