diff options
author | Jon Paul Maloy <jon.maloy@ericsson.com> | 2015-07-16 20:54:25 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-21 03:41:15 (GMT) |
commit | d3504c3449fead545e5254bfb11da916f72c4734 (patch) | |
tree | 1c0f11ad521060cc071a17963e8d869874517dbd /Makefile | |
parent | af9b028e270fda6fb812d70d17d902297df1ceb5 (diff) | |
download | linux-d3504c3449fead545e5254bfb11da916f72c4734.tar.xz |
tipc: clean up definitions and usage of link flags
The status flag LINK_STOPPED is not needed any more, since the
mechanism for delayed deletion of links has been removed.
Likewise, LINK_STARTED and LINK_START_EVT are unnecessary,
because we can just as well start the link timer directly from
inside tipc_link_create().
We eliminate these flags in this commit.
Instead of the above flags, we now introduce three new link modes,
TIPC_LINK_OPEN, TIPC_LINK_BLOCKED and TIPC_LINK_TUNNEL. The values
indicate whether, and in the case of TIPC_LINK_TUNNEL, which, messages
the link is allowed to receive in this state. TIPC_LINK_BLOCKED also
blocks timer-driven protocol messages to be sent out, and any change
to the link FSM. Since the modes are mutually exclusive, we convert
them to state values, and rename the 'flags' field in struct tipc_link
to 'exec_mode'.
Finally, we move the #defines for link FSM states and events from link.h
into enums inside the file link.c, which is the real usage scope of
these definitions.
Reviewed-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>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions