Ethernet Bridge development
 help / color / mirror / Atom feed
* [Bridge] BRCTL is displaying only 32 bridge interfaces even /proc/net/dev is showing more then that
@ 2009-03-20  9:45 rahul bhardwaj
  2009-03-31  1:03 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: rahul bhardwaj @ 2009-03-20  9:45 UTC (permalink / raw)
  To: bridge; +Cc: shemminger

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

Hi All,
I am using Linux 2.6.15 kernel. I want to create 4094 bridge interface but I am able to see only 32 bridge interfaces with the help of "brctl show". I am able see other interfaces into /proc/net/dev but brctl is not showing more then 32. It is also not allowing any operations (add/del) over those interfaces. Is it correct behaviour or I have do some changes in some settings. 
Could anybody please help me in this? 

With Regards 

Rahul Bhardwaj 

 


      Check out the all-new Messenger 9.0! Go to http://in.messenger.yahoo.com/

[-- Attachment #2: Type: text/html, Size: 895 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bridge] BRCTL is displaying only 32 bridge interfaces even /proc/net/dev is showing more then that
  2009-03-20  9:45 [Bridge] BRCTL is displaying only 32 bridge interfaces even /proc/net/dev is showing more then that rahul bhardwaj
@ 2009-03-31  1:03 ` Stephen Hemminger
  2009-03-31 20:50   ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2009-03-31  1:03 UTC (permalink / raw)
  To: rahul bhardwaj; +Cc: bridge

On Fri, 20 Mar 2009 15:15:50 +0530 (IST)
rahul bhardwaj <rahul_bhardwaj36in@yahoo.co.in> wrote:

> Hi All,
> I am using Linux 2.6.15 kernel. I want to create 4094 bridge interface but I am able to see only 32 bridge interfaces with the help of "brctl show". I am able see other interfaces into /proc/net/dev but brctl is not showing more then 32. It is also not allowing any operations (add/del) over those interfaces. Is it correct behaviour or I have do some changes in some settings. 
> Could anybody please help me in this? 
> 
2.6.15 is old, so I could well be wrong, but as I remember:
The old interface (via ioctl) only had room for 32 bridges, so probably that
was it. When interface changed to sysfs that was addressed.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bridge] BRCTL is displaying only 32 bridge interfaces even /proc/net/dev is showing more then that
  2009-03-31  1:03 ` Stephen Hemminger
@ 2009-03-31 20:50   ` Stephen Hemminger
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2009-03-31 20:50 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: bridge, rahul bhardwaj

On Mon, 30 Mar 2009 18:03:31 -0700
Stephen Hemminger <shemminger@vyatta.com> wrote:

> On Fri, 20 Mar 2009 15:15:50 +0530 (IST)
> rahul bhardwaj <rahul_bhardwaj36in@yahoo.co.in> wrote:
> 
> > Hi All,
> > I am using Linux 2.6.15 kernel. I want to create 4094 bridge interface but I am able to see only 32 bridge interfaces with the help of "brctl show". I am able see other interfaces into /proc/net/dev but brctl is not showing more then 32. It is also not allowing any operations (add/del) over those interfaces. Is it correct behaviour or I have do some changes in some settings. 
> > Could anybody please help me in this? 
> > 
> 2.6.15 is old, so I could well be wrong, but as I remember:
> The old interface (via ioctl) only had room for 32 bridges, so probably that
> was it. When interface changed to sysfs that was addressed.
> _______________________________________________
> Bridge mailing list
> Bridge@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/bridge
> 

Did you try updating the bridge utils. The older versions had MAX_BRIDGES
defined as 32, and the code was written such that it read the whole configuration
multiple times.

Current code has MAX_BRIDGES=1024, but that is only used on older kernels
that don't support sysfs.  With sysfs the interface just walks the contents
of /sys/class/net and that can handle as many interfaces as you have memory for.

No kernel change should be needed.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-31 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-20  9:45 [Bridge] BRCTL is displaying only 32 bridge interfaces even /proc/net/dev is showing more then that rahul bhardwaj
2009-03-31  1:03 ` Stephen Hemminger
2009-03-31 20:50   ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox