]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Revise timings used when sending link request messages
authorAllan Stephens <Allan.Stephens@windriver.com>
Fri, 22 Apr 2011 01:34:03 +0000 (20:34 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 10 May 2011 20:04:02 +0000 (16:04 -0400)
commit842218e7e125754f82c32577c0ffb7e162b39479
tree92cf6c72788652de9d8f6228c110bdc671a9f1fe
parentd25f39d3d05464a6dc740d5c0527d260bc68a85d
tipc: Revise timings used when sending link request messages

Revises the algorithm governing the sending of link request messages
to take into account the number of nodes each bearer is currently in
contact with, and to ensure more rapid rediscovery of neighboring nodes
if a bearer fails and then recovers.

The discovery object now sends requests at least once a second if it
is not in contact with any other nodes, and at least once a minute if
it has at least one neighbor; if contact with the only neighbor is
lost, the object immediately reverts to its initial rapid-fire search
timing to accelerate the rediscovery process.

In addition, the discovery object now stops issuing link request
messages if it is in contact with the only neighboring node it is
configured to communicate with, since further searching is unnecessary.

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