]> Pileus Git - ~andy/linux/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)
commit972a77fbf1bbea6f54b5986b05041a17b607695b
tree92cf6c72788652de9d8f6228c110bdc671a9f1fe
parent1209966cd5d2ec7f89ad2ed58a6a342aa8ea8712
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