]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: forwarding table information for >256 devices
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 2 May 2008 23:53:33 +0000 (16:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2008 23:53:33 +0000 (16:53 -0700)
commitc945fbca2ba241306d94d8ac3f22df4515dff3ef
treed2886fa956395043efa25bd1aebb93da27162b78
parent5e9b77004b927f06a086d337ec4330cf0a8210d0
bridge: forwarding table information for >256 devices

The forwarding table binary interface (my bad choice), only exposes
the port number of the first 8 bits. The bridge code was limited to
256 ports at the time, but now the kernel supports up 1024 ports, so
the upper bits are lost when doing:

   brctl showmacs

The fix is to squeeze the extra bits into small hole left in data
structure, to maintain binary compatiablity.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_bridge.h
net/bridge/br_fdb.c