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>
This commit is contained in:

committed by
Paul Gortmaker

parent
9f54b545bd
commit
9bd80b6082
@@ -418,8 +418,6 @@ int tipc_bclink_send_msg(struct sk_buff *buf)
|
||||
else
|
||||
bclink_set_last_sent();
|
||||
|
||||
if (bcl->out_queue_size > bcl->stats.max_queue_sz)
|
||||
bcl->stats.max_queue_sz = bcl->out_queue_size;
|
||||
bcl->stats.queue_sz_counts++;
|
||||
bcl->stats.accu_queue_sz += bcl->out_queue_size;
|
||||
|
||||
|
Reference in New Issue
Block a user