diff options
author | Allan Stephens <Allan.Stephens@windriver.com> | 2011-01-18 15:02:50 -0500 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-02-23 18:05:15 -0500 |
commit | 9bd80b60827fe8d84c0e594895acb8a44f2b98b1 (patch) | |
tree | 8cb52c2ea3e31bca91da5989159d0dd0da413e86 /net/tipc/bcast.c | |
parent | 9f54b545bd62a42ec354727d90eacadc5846406b (diff) |
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>
Diffstat (limited to 'net/tipc/bcast.c')
-rw-r--r-- | net/tipc/bcast.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c index a5eb7dbfa0c3..63df42b2d101 100644 --- a/net/tipc/bcast.c +++ b/net/tipc/bcast.c | |||
@@ -418,8 +418,6 @@ int tipc_bclink_send_msg(struct sk_buff *buf) | |||
418 | else | 418 | else |
419 | bclink_set_last_sent(); | 419 | bclink_set_last_sent(); |
420 | 420 | ||
421 | if (bcl->out_queue_size > bcl->stats.max_queue_sz) | ||
422 | bcl->stats.max_queue_sz = bcl->out_queue_size; | ||
423 | bcl->stats.queue_sz_counts++; | 421 | bcl->stats.queue_sz_counts++; |
424 | bcl->stats.accu_queue_sz += bcl->out_queue_size; | 422 | bcl->stats.accu_queue_sz += bcl->out_queue_size; |
425 | 423 | ||