aboutsummaryrefslogtreecommitdiff
path: root/vswitchd
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-11-08 13:53:38 -0800
committerBen Pfaff <blp@nicira.com>2011-11-23 13:19:53 -0800
commit03eae5f86ce277700323b607fb19a0b8e4aca64d (patch)
tree5f53732529828b55869200b6af582371669bff83 /vswitchd
parentb0f7b9b5c98557d159e4a12f125eacbf2a04a25b (diff)
vswitchd: Remove special case for VLAN devices.
We introduced this special case before the XenServer integration was complete. At that point, we were using VLAN devices on XenServer, with a separate bridge for each VLAN, so we needed this special case. But no version of OVS for any supported XenServer version uses VLAN devices this way, so we can delete the special case.
Diffstat (limited to 'vswitchd')
-rw-r--r--vswitchd/bridge.c27
1 files changed, 2 insertions, 25 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index ce3a7887..ca106c5c 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -1361,33 +1361,10 @@ bridge_pick_datapath_id(struct bridge *br,
return dpid;
}
- if (hw_addr_iface) {
- int vlan;
- if (!netdev_get_vlan_vid(hw_addr_iface->netdev, &vlan)) {
- /*
- * A bridge whose MAC address is taken from a VLAN network device
- * (that is, a network device created with vconfig(8) or similar
- * tool) will have the same MAC address as a bridge on the VLAN
- * device's physical network device.
- *
- * Handle this case by hashing the physical network device MAC
- * along with the VLAN identifier.
- */
- uint8_t buf[ETH_ADDR_LEN + 2];
- memcpy(buf, bridge_ea, ETH_ADDR_LEN);
- buf[ETH_ADDR_LEN] = vlan >> 8;
- buf[ETH_ADDR_LEN + 1] = vlan;
- return dpid_from_hash(buf, sizeof buf);
- } else {
- /*
- * Assume that this bridge's MAC address is unique, since it
- * doesn't fit any of the cases we handle specially.
- */
- }
- } else {
+ if (!hw_addr_iface) {
/*
* A purely internal bridge, that is, one that has no non-virtual
- * network devices on it at all, is more difficult because it has no
+ * network devices on it at all, is difficult because it has no
* natural unique identifier at all.
*
* When the host is a XenServer, we handle this case by hashing the