Re: Number of IFB devices on a monolithic kernel

From: Peter Rabbitson
Date: Thu Nov 06 2008 - 10:40:57 EST


adi wrote:
> On Thu, Nov 06, 2008 at 02:46:31PM +0100, Peter Rabbitson wrote:
>> The IFB device by default initializes only 2 IFB devices (ifb0 and
>> ifb1). I was able to find (only in the source, no docs) that the code
>> takes an optional numifbs argument, which overrides the default (line
>> 221 at [1]). However it seems that there is no way to pass this variable
>> if the module is compiled into the kernel. Is there some special syntax
>> to do it, or a simple patch that would enable specification of this
>> value?
>>
>> Worst case scenario I can always change the number at line 59 before
>> compiling, but I was hoping there is a cleaner way.
>
> Please try:
>
> # ip link add name ifb2 type ifb
>
> Regards,
>
> P.Y. Adi Prasaja

I had no idea iproute's add worked on links too. Thank you so much!

Peter
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html