]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6a4d9acd69c059d561b2876151cdf326f73a71b7
tree03daf741edd6dc848ec38eff1aead23c31c5c83a
parent59da7de4d1c9da480e8f281633a2b9b83bd1a262
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