Hello Dave,

Here are two patches against 2.6.16 to make the number of IFB devices
variable (1-8).

Richard.

-- 
___________________________________________________________________
It is better to remain silent and be thought a fool, than to speak
aloud and remove all doubt.

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
| Public key and email address:                                    |
| http://www.lucassen.org/mail-pubkey.html                         |
+------------------------------------------------------------------+
--- drivers/net/Kconfig 2006/03/26 15:24:00     1.1
+++ drivers/net/Kconfig 2006/03/26 15:26:37
@@ -38,6 +38,15 @@
          'ifb1' etc.
          Look at the iproute2 documentation directory for usage etc
 
+config IFB_NUM_DEVS
+       int "Number of IFB devices"
+       range 1 8
+       depends on IFB
+       default "2"
+       ---help---
+          This setting defines how many IFB devices can be created.
+          The default value is 2. This must be ok for most people.
+
 config DUMMY
        tristate "Dummy net driver support"
        ---help---


--- drivers/net/ifb.c   2006/03/26 15:22:49     1.1
+++ drivers/net/ifb.c   2006/03/26 15:23:51
@@ -57,7 +57,11 @@
        struct sk_buff_head     tq;
 };
 
-static int numifbs = 2;
+#if defined(CONFIG_IFB_NUM_DEVS)
+        static int numifbs = CONFIG_IFB_NUM_DEVS;
+#else
+        static int numifbs = 2;
+#endif
 
 static void ri_tasklet(unsigned long dev);
 static int ifb_xmit(struct sk_buff *skb, struct net_device *dev);


Reply via email to