diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2011-11-04 15:00:02 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-02-24 17:05:16 -0500 |
commit | 75aba9af2410ae8fc70600d9dcda0651f20e091e (patch) | |
tree | ecdc1296fab79f06bbe116aa6ac1b516858fd186 /net/tipc | |
parent | 1cc35df847f7dba4ba06cb65bc41713df5d41404 (diff) |
tipc: Minor optimization to broadcast link synchronization logic
Optimizes processing done when contact with a neighboring node is
established to avoid recording the current state of outgoing broadcast
messages if the neighboring node isn't a valid broadcast link destination,
since this state information isn't needed for such nodes.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/node.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/tipc/node.c b/net/tipc/node.c index d7f8b7be3d8f..12ddc6581572 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c | |||
@@ -270,10 +270,8 @@ static void node_established_contact(struct tipc_node *n_ptr) | |||
270 | { | 270 | { |
271 | tipc_k_signal((Handler)tipc_named_node_up, n_ptr->addr); | 271 | tipc_k_signal((Handler)tipc_named_node_up, n_ptr->addr); |
272 | 272 | ||
273 | /* Syncronize broadcast acks */ | ||
274 | n_ptr->bclink.acked = tipc_bclink_get_last_sent(); | ||
275 | |||
276 | if (n_ptr->bclink.supportable) { | 273 | if (n_ptr->bclink.supportable) { |
274 | n_ptr->bclink.acked = tipc_bclink_get_last_sent(); | ||
277 | tipc_bclink_add_node(n_ptr->addr); | 275 | tipc_bclink_add_node(n_ptr->addr); |
278 | n_ptr->bclink.supported = 1; | 276 | n_ptr->bclink.supported = 1; |
279 | } | 277 | } |