bridge: Make bridge_pick_local_hw_addr() easier to reason.
authorJustin Pettit <jpettit@nicira.com>
Fri, 26 Aug 2011 22:05:53 +0000 (15:05 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 26 Aug 2011 22:24:17 +0000 (15:24 -0700)
commit3a48ace3e4799ce25099a8584372abe7a4d6d771
treea22f8622d5307ca77751cea33808e28b3a3c7089
parent00488a5eefd26ff583b403666a012d96ce26bcfd
bridge: Make bridge_pick_local_hw_addr() easier to reason.

The use of eth_addr_is_multicast() to see if a reasonable address was
found always caused me momentary confusion.  This commit uses a flag
instead, and also saves a bit of unnecessary array reading and writing.
vswitchd/bridge.c