]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Fix redundant link field handling in link protocol message
authorAllan Stephens <Allan.Stephens@windriver.com>
Mon, 28 Feb 2011 20:30:20 +0000 (15:30 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 13 Mar 2011 20:35:18 +0000 (16:35 -0400)
commitf753ee25a6e40f6d0de0176845a9d1b963f06f87
tree993ef6601c10793db29538c681fccd86aa08172d
parent02d0b30496890a372dd5b3b82316e8b574b01084
tipc: Fix redundant link field handling in link protocol message

Ensures that the "redundant link exists" field of the LINK_PROTOCOL
messages sent by a link endpoint is set if and only if the sending
node has at least one other working link to the peer node. Previously,
the bit was set only if there were at least 2 working links to the peer
node, meaning the bit was incorrectly left unset in messages sent by a
non-working link endpoint when exactly one alternate working link was
available. The revised code now takes the state of the link sending
the message into account when deciding if an alternate link exists.

Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/link.c