Ignore:
Timestamp:
Feb 15, 2015, 8:44:35 PM (9 years ago)
Author:
cfuguet
Message:

reconf: add new mode to the dspin_router

  • Modes are:

+ NORMAL : normal X-first routing

+ PATH_RECOVERY : create contour around the blackhole.

If the destination is the blackhole, send
packet to recovery direction, else use normal
X-first routing.

+ SEGMENT_RECOVERY: Like PATH_RECOVERY but do not create contour, only

reroute packets with the blackhole as destination.

  • Remove deprecated unitary test simple_recovery_routing_test
  • Update the simple_segment_recovery unitary test.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/modules/dspin_router/caba/source/include/dspin_router.h

    r934 r947  
    141141
    142142    // fault-recovery methods
    143     bool    need_reroute( size_t xdest, size_t ydest, int bhpos );
     143    bool    is_destination_blackhole( size_t xdest, size_t ydest, int bhpos );
    144144    int     recovery_route( size_t xdest, size_t ydest );
    145145
     
    149149    {
    150150        m_disable_mask = mask;
     151    }
     152
     153    inline bool is_network_recovery_enable()
     154    {
     155        return (((p_recovery_cfg->read() >> 7) & 0x1) != 0);
     156    }
     157
     158    inline int migration_route()
     159    {
     160        return ((p_recovery_cfg->read() >> 4) & 0x7);
     161    }
     162
     163    inline int blackhole_position()
     164    {
     165        return (p_recovery_cfg->read() & 0xF);
    151166    }
    152167
Note: See TracChangeset for help on using the changeset viewer.