]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Improve accuracy of link transmit queue maximum size statistic
authorAllan Stephens <Allan.Stephens@windriver.com>
Tue, 18 Jan 2011 20:02:50 +0000 (15:02 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 23 Feb 2011 23:05:15 +0000 (18:05 -0500)
commiteb57f3572fbf437aee0ced71ed84e441397bd9e1
tree8cb52c2ea3e31bca91da5989159d0dd0da413e86
parent10ca50084733427833ce905db12d8e4df7cf3b11
tipc: Improve accuracy of link transmit queue maximum size statistic

Enhances TIPC's unicast and broadcast link code to update the transmit
queue maximum size counter in a single place, namely the routine that
adds messages to the queue. This ensures that the maximum size statistic
reported for unicast links is completely accurate, rather than being
partially based on statistical sampling.

The changes to link.h are just documenting the roles of the variables.

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