vswitch: Don't choose Xen's FE:FF:FF:FF:FF:FF address as bridge MAC or DPID.
authorBen Pfaff <blp@nicira.com>
Thu, 19 Mar 2009 19:39:00 +0000 (12:39 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 19 Mar 2009 19:59:57 +0000 (12:59 -0700)
commitbd6b231a81787749a85f78e66152c4a74556f0db
tree21006c9e1a666721585b4ea3ce2acaf43a8a977e
parent1f35715dd67d8a24bbaba762ada59405aabc0887
vswitch: Don't choose Xen's FE:FF:FF:FF:FF:FF address as bridge MAC or DPID.

Xen uses FE:FF:FF:FF:FF:FF as the mac address for every virtual interface.
If we have a bridge that has just virtual interfaces, then this will end
up as the bridge's MAC address and thus the datapath ID also.  So, instead,
use the bridge's randomly chosen MAC address if this case comes up.

This is probably not the end of this issue, since we probably want the
DPID of such bridges to be predictable.  Need to figure out how to do that.
lib/packets.h
vswitchd/bridge.c