Jon Paul Maloy
66996b6c47
tipc: extend node FSM
In the next commit, we will move link synch/failover orchestration to
the link aggregation level. In order to do this, we first need to extend
the node FSM with two more states, NODE_SYNCHING and NODE_FAILINGOVER,
plus four new events to enter and leave those states.
This commit introduces this change, without yet making use of it.
The node FSM now looks as follows:
+-----------------------------------------+
| PEER_DOWN_EVT|
| |
+------------------------+----------------+ |
|SELF_DOWN_EVT | | |
| | | |
| +-----------+ +-----------+ |
| |NODE_ | |NODE_ | |
| +----------|FAILINGOVER|<---------|SYNCHING |------------+ |
| |SELF_ +-----------+ FAILOVER_+-----------+ PEER_ | |
| |DOWN_EVT | A BEGIN_EVT A | DOWN_EVT| |
| | | | | | | |
| | | | | | | |
| | |FAILOVER_|FAILOVER_ |SYNCH_ |SYNCH_ | |
| | |END_EVT |BEGIN_EVT |BEGIN_EVT|END_EVT | |
| | | | | | | |
| | | | | | | |
| | | +--------------+ | | |
| | +------->| SELF_UP_ |<-------+ | |
| | +----------------| PEER_UP |------------------+ | |
| | |SELF_DOWN_EVT +--------------+ PEER_DOWN_EVT| | |
| | | A A | | |
| | | | | | | |
| | | PEER_UP_EVT| |SELF_UP_EVT | | |
| | | | | | | |
V V V | | V V V
+------------+ +-----------+ +-----------+ +------------+
|SELF_DOWN_ | |SELF_UP_ | |PEER_UP_ | |PEER_DOWN |
|PEER_LEAVING|<------|PEER_COMING| |SELF_COMING|------>|SELF_LEAVING|
+------------+ SELF_ +-----------+ +-----------+ PEER_ +------------+
| DOWN_EVT A A DOWN_EVT |
| | | |
| | | |
| SELF_UP_EVT| |PEER_UP_EVT |
| | | |
| | | |
|PEER_DOWN_EVT +--------------+ SELF_DOWN_EVT|
+------------------->| SELF_DOWN_ |<--------------------+
| PEER_DOWN |
+--------------+
Tested-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-07-30 17:25:13 -07:00
..
2015-07-23 17:10:48 +02:00
2015-07-04 19:36:06 -07:00
2015-03-02 16:43:41 -05:00
2015-06-01 16:50:52 -07:00
2015-05-11 10:50:17 -04:00
2015-05-11 10:50:17 -04:00
2015-07-15 15:59:58 -07:00
2015-06-07 17:07:20 +02:00
2015-07-30 14:11:36 +02:00
2015-07-26 21:19:58 -07:00
2015-07-21 00:02:44 -07:00
2015-07-12 21:13:22 +02:00
2015-07-09 20:30:34 +03:00
2015-07-29 23:00:39 -07:00
2015-03-06 21:50:02 -05:00
2015-06-15 19:49:22 -07:00
2015-05-11 10:50:17 -04:00
2015-07-11 23:25:16 -07:00
2015-06-04 15:44:30 -07:00
2015-03-01 13:40:23 -05:00
2015-07-23 17:10:49 +02:00
2015-07-29 22:44:04 -07:00
2015-07-30 15:56:40 -07:00
2015-05-11 10:50:17 -04:00
2015-05-25 17:46:21 -04:00
2015-05-11 10:50:17 -04:00
2015-06-24 16:49:49 -07:00
2015-05-11 10:50:18 -04:00
2014-10-24 15:51:42 -04:00
2015-05-11 10:50:17 -04:00
2015-07-17 15:02:02 +02:00
2015-07-30 14:08:55 +02:00
2015-07-22 10:50:23 -07:00
2015-07-21 16:04:30 -07:00
2015-03-31 13:58:35 -04:00
2015-07-21 22:22:56 -07:00
2015-06-18 21:14:32 +02:00
2015-06-15 18:10:37 +02:00
2015-07-29 23:03:10 -07:00
2015-07-29 15:11:12 -07:00
2015-05-11 10:50:17 -04:00
2015-07-15 17:03:03 -07:00
2015-05-29 13:13:45 +02:00
2015-06-24 02:58:51 -07:00
2015-05-11 10:50:17 -04:00
2015-07-23 00:41:16 -07:00
2015-07-21 00:21:32 -07:00
2015-07-02 11:32:23 -07:00
2015-07-20 18:32:44 -07:00
2015-07-30 17:25:13 -07:00
2015-06-10 22:49:20 -07:00
2015-05-11 10:50:17 -04:00
2015-07-17 15:02:02 +02:00
2015-05-11 10:50:17 -04:00
2015-07-21 00:28:36 -07:00
2015-04-09 00:02:26 -04:00
2015-07-21 10:39:03 -07:00
2015-03-04 00:26:06 -05:00
2015-05-11 10:50:17 -04:00