]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: Use the correct bit length for bitmap functions in the VLAN code
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Tue, 20 Aug 2013 08:10:18 +0000 (17:10 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2013 06:35:57 +0000 (23:35 -0700)
commitc92a883e040f86d5083a22725988b4fb9a842696
treeb548a3f90460d4dbdd740b0e823fd314a519b829
parent818f8e40699ab37b689e989194c14f9fbd1a2f90
bridge: Use the correct bit length for bitmap functions in the VLAN code

The VLAN code needs to know the length of the per-port VLAN bitmap to
perform its most basic operations (retrieving VLAN informations, removing
VLANs, forwarding database manipulation, etc). Unfortunately, in the
current implementation we are using a macro that indicates the bitmap
size in longs in places where the size in bits is expected, which in
some cases can cause what appear to be random failures.
Use the correct macro.

Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_fdb.c
net/bridge/br_netlink.c
net/bridge/br_vlan.c