mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
migration: We don't need the field rate_limit_used anymore
Since previous commit, we calculate how much data we have send with migration_transferred_bytes() so no need to maintain this counter and remember to always update it. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20230515195709.63843-10-quintela@redhat.com>
This commit is contained in:
parent
813cd61669
commit
bd7ceaf6d5
4 changed files with 0 additions and 25 deletions
|
@ -89,10 +89,6 @@ typedef struct {
|
|||
* Maximum amount of data we can send in a cycle.
|
||||
*/
|
||||
Stat64 rate_limit_max;
|
||||
/*
|
||||
* Amount of data we have sent in the current cycle.
|
||||
*/
|
||||
Stat64 rate_limit_used;
|
||||
/*
|
||||
* Total number of bytes transferred.
|
||||
*/
|
||||
|
@ -105,16 +101,6 @@ typedef struct {
|
|||
|
||||
extern MigrationAtomicStats mig_stats;
|
||||
|
||||
/**
|
||||
* migration_rate_account: Increase the number of bytes transferred.
|
||||
*
|
||||
* Report on a number of bytes the have been transferred that need to
|
||||
* be applied to the rate limiting calcuations.
|
||||
*
|
||||
* @len: amount of bytes transferred
|
||||
*/
|
||||
void migration_rate_account(uint64_t len);
|
||||
|
||||
/**
|
||||
* migration_rate_get: Get the maximum amount that can be transferred.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue