]> git.karo-electronics.de Git - karo-tx-linux.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)
commitef40b7ef181b7b1a24df2ef2d1ef84956bffa635
treeb548a3f90460d4dbdd740b0e823fd314a519b829
parent5c751c9344fce32cebc1c53514644e625a484916
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