Skip to content

Commit

Permalink
tipc: Minor optimization to broadcast link synchronization logic
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ajstephens authored and Paul Gortmaker committed Feb 24, 2012
1 parent 1cc35df commit 75aba9a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/tipc/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,8 @@ static void node_established_contact(struct tipc_node *n_ptr)
{
tipc_k_signal((Handler)tipc_named_node_up, n_ptr->addr);

/* Syncronize broadcast acks */
n_ptr->bclink.acked = tipc_bclink_get_last_sent();

if (n_ptr->bclink.supportable) {
n_ptr->bclink.acked = tipc_bclink_get_last_sent();
tipc_bclink_add_node(n_ptr->addr);
n_ptr->bclink.supported = 1;
}
Expand Down

0 comments on commit 75aba9a

Please sign in to comment.