]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: move all link_reset() calls to link aggregation level
authorJon Paul Maloy <jon.maloy@ericsson.com>
Thu, 30 Jul 2015 22:24:16 +0000 (18:24 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2015 00:25:13 +0000 (17:25 -0700)
commit3e5aabf526314f6a8da72e9b4b1342621489bccf
tree7580d28456da45dbec681e3c3ae710b14f4f3c09
parent63a54201ec39e3a82b3d00d3c4d45eaadaab5914
tipc: move all link_reset() calls to link aggregation level

In line with our effort to let the node level have full control over
its links, we want to move all link reset calls from link.c to node.c.
Some of the calls can be moved by simply moving the calling function,
when this is the right thing to do. For the remaining calls we use
the now established technique of returning a TIPC_LINK_DOWN_EVT
flag from tipc_link_rcv(), whereafter we perform the reset call when
the call returns.

This change serves as a preparation for the coming commits.

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>
net/tipc/bearer.c
net/tipc/link.c
net/tipc/link.h
net/tipc/node.c
net/tipc/node.h