i_val_from_str
rd->r_algo = i_val_from_str(val, &algo_types[0]);
rd->r_topo = i_val_from_str(val, &topo_types[0]);