> } else { > struct bond_entry *e = lookup_bond_entry(port, flow, vlan); > - if (e->iface_idx < 0 || e->iface_idx >= port->n_ifaces > - || !port->ifaces[e->iface_idx]->enabled) { > + if (!e->iface) { I think we still want to check if !e->iface->enabled here.