]> 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)
commit1590eb03db0937fe6c04bf43fcb4f62c3ca9765e
tree03daf741edd6dc848ec38eff1aead23c31c5c83a
parent6c3baf47d012a4b872e4ce78e94be3f6a5996a67
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