}
/* Add the loopback if needed */
- if (current_routing->hierarchy == SURF_ROUTING_BASE) {
+ if (global_routing->loopback && current_routing->hierarchy == SURF_ROUTING_BASE) {
for (i = 0; i < table_size; i++) {
route_t e_route = TO_FLOYD_LINK(i, i);
if (!e_route) {
routing->routing_table = xbt_new0(route_t, table_size * table_size);
/* Add the loopback if needed */
- if (current_routing->hierarchy == SURF_ROUTING_BASE) {
+ if (global_routing->loopback && current_routing->hierarchy == SURF_ROUTING_BASE) {
for (i = 0; i < table_size; i++) {
e_route = TO_ROUTE_FULL(i, i);
if (!e_route) {