]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Handle broadcast attempt when no neighboring nodes exist
authorAllan Stephens <allan.stephens@windriver.com>
Mon, 24 Oct 2011 17:05:55 +0000 (13:05 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 27 Dec 2011 16:33:50 +0000 (11:33 -0500)
commit6c3baf47d012a4b872e4ce78e94be3f6a5996a67
tree60dafc91a970c116e7d8c3f53152a75f9e77d854
parent2068d74e876fb44d2ca4f4a7df42bc638b362273
tipc: Handle broadcast attempt when no neighboring nodes exist

Adds a check to detect when an attempt is made to send a message
via the broadcast link and no neighboring nodes are currently available
to receive it. Rather than wasting effort passing the message to the
broadcast link and broadcast bearer, who will only throw it away,
TIPC now frees the message immediately and reports success (i.e. the
message has been delivered to all available destinations).

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