tipc: set 'active' state correctly for first established link
authorJon Paul Maloy <jon.maloy@ericsson.com>
Fri, 29 Apr 2016 00:16:08 +0000 (20:16 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 May 2016 23:40:22 +0000 (19:40 -0400)
commitdef22c47d749c5ff8011831a8232b951f223963e
tree77faf5e97b878ac8d1ac0a89991ab7eb6e01eb85
parenta77f4f70fd34ac7b67581fe5b89ddc1c9ac20d39
tipc: set 'active' state correctly for first established link

When we are displaying statistics for the first link established between
two peers, it will always be presented as STANDBY although it in reality
is ACTIVE.

This happens because we forget to set the 'active' flag in the link
instance at the moment it is established. Although this is a bug, it only
has impact on the presentation view of the link, not on its actual
functionality.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/node.c