struct bond_entry {
int iface_idx; /* Index of assigned iface, or -1 if none. */
uint64_t tx_bytes; /* Count of bytes recently transmitted. */
- tag_type iface_tag; /* Tag associated with iface_idx. */
+ tag_type tag; /* Tag for bond_entry<->iface association. */
};
enum bond_mode {
return false;
}
e->iface_idx = iface->port_ifidx;
- e->iface_tag = tag_create_random();
+ e->tag = tag_create_random();
}
- *tags |= e->iface_tag;
+ *tags |= e->tag;
iface = port->ifaces[e->iface_idx];
}
*dp_ifidx = iface->dp_ifidx;
to->tx_bytes += delta;
/* Arrange for flows to be revalidated. */
- ofproto_revalidate(port->bridge->ofproto, hash->iface_tag);
+ ofproto_revalidate(port->bridge->ofproto, hash->tag);
hash->iface_idx = to->iface->port_ifidx;
- hash->iface_tag = tag_create_random();
+ hash->tag = tag_create_random();
}
static void
}
entry = &port->bond_hash[hash];
- ofproto_revalidate(port->bridge->ofproto, entry->iface_tag);
+ ofproto_revalidate(port->bridge->ofproto, entry->tag);
entry->iface_idx = iface->port_ifidx;
- entry->iface_tag = tag_create_random();
+ entry->tag = tag_create_random();
unixctl_command_reply(conn, 200, "migrated");
}