diff options
| author | Jon Paul Maloy <[email protected]> | 2015-07-30 22:24:15 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-07-31 00:25:13 +0000 |
| commit | cbeb83ca68dcedf69b336fd1c5263658cbe5b51e (patch) | |
| tree | b22597a2b2c77c52c320210316433a939cc699b7 /net/ax25/sysctl_net_ax25.c | |
| parent | Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff) | |
| download | kernel-cbeb83ca68dcedf69b336fd1c5263658cbe5b51e.tar.gz kernel-cbeb83ca68dcedf69b336fd1c5263658cbe5b51e.zip | |
tipc: eliminate function tipc_link_activate()
The function tipc_link_activate() is redundant, since it mostly performs
settings that have already been done in a preceding tipc_link_reset().
There are three exceptions to this:
- The actual state change to TIPC_LINK_WORKING. This should anyway be done
in the FSM, and not in a separate function.
- Registration of the link with the bearer. This should be done by the
node, since we don't want the link to have any knowledge about its
specific bearer.
- Call to tipc_node_link_up() for user access registration. With the new
role distribution between link aggregation and link level this becomes
the wrong call order; tipc_node_link_up() should instead be called
directly as a result of a TIPC_LINK_UP event, hence by the node itself.
This commit implements those changes.
Tested-by: Ying Xue <[email protected]>
Signed-off-by: Jon Maloy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ax25/sysctl_net_ax25.c')
0 files changed, 0 insertions, 0 deletions
