]> 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)
commit386c8a2c0b89b10d8e9d33052a57d074d286e938
treeb548a3f90460d4dbdd740b0e823fd314a519b829
parenta6d27657508122f0b111d7283992c5bb45bb254e
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