mac-learning: Fix inverted logic in is_learning_vlan().
authorBen Pfaff <blp@nicira.com>
Fri, 22 Jul 2011 00:03:03 +0000 (17:03 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 27 Jul 2011 00:09:07 +0000 (17:09 -0700)
commit82062a2047923e5c403fe42646e1c9eacbc73752
treec0ca3129e4703affa5793b00fa696e0d689274e3
parent13b630579b8b7c67356f46b963e1256d66db0abc
mac-learning: Fix inverted logic in is_learning_vlan().

When a bit is set in flood_vlans, that VLAN must be flooded, but the logic
here was reversed in the case where there were any flooded VLANs at all.
Thus, if a single VLAN was configured to be flooded, all VLANs except that
one were actually flooded.

The common case where no VLANs were to be flooded was handled correctly.

Reported-by: David Tsai <dtsai@nicira.com>
lib/mac-learning.c