tipc: Minor optimization of broadcast link transmit queue statistic
authorAllan Stephens <allan.stephens@windriver.com>
Mon, 24 Oct 2011 17:27:31 +0000 (13:27 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 27 Dec 2011 16:33:51 +0000 (11:33 -0500)
commit9157bafb44637a2cfefc222d6551100ead40e79e
tree03daf741edd6dc848ec38eff1aead23c31c5c83a
parent2b78f9a002dccc587912af4da3bf1db86909de91
tipc: Minor optimization of broadcast link transmit queue statistic

The two broadcast link statistics fields that are used to derive the
average length of that link's transmit queue are now updated only after
a successful attempt to send a broadcast message, since there is no need
to update these values when an unsuccessful send attempt leaves the
queue unchanged.

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