]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite55e37b4f7f3b957a578e173862371dc4d7ab390
tree77faf5e97b878ac8d1ac0a89991ab7eb6e01eb85
parentfabfc2f45de91a11e1d7032ad8523ff7983e7a0e
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