]> 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)
commit6e96cbc97d4bc18445154fb331f5f83dba28254e
tree77faf5e97b878ac8d1ac0a89991ab7eb6e01eb85
parentc664d828a415f6e6b22d75ac9fa7f1dc23cc0492
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