diff options
author | Mathieu Gagne <mgagne@iweb.com> | 2012-04-24 17:09:22 +0100 |
---|---|---|
committer | Mathieu Gagne <mgagne@iweb.com> | 2012-04-24 17:09:22 +0100 |
commit | deaed905dac4f87a08d35c0358fcf7657d817ad5 (patch) | |
tree | 0df710361097354badd55ea1e9e650475e5ea390 /tools/libxl/libxlu_internal.h | |
parent | 9684ac597a610155a19a7a33038cb874b4d8de23 (diff) | |
download | xen-deaed905dac4f87a08d35c0358fcf7657d817ad5.tar.gz xen-deaed905dac4f87a08d35c0358fcf7657d817ad5.tar.bz2 xen-deaed905dac4f87a08d35c0358fcf7657d817ad5.zip |
xl: add support for vif rate limiting
The `rate` keyword specifies the rate at which the outgoing traffic
will be limited to. The default if this keyword is not specified
is unlimited.
The `rate` keyword supports an optional replenishment interval
parameter for specifying the granularity of credit replenishment.
It determines the frequency at which the vif transmission credit
is replenished. The default interval is 50ms.
For example:
'rate=10Mb/s'
'rate=250KB/s'
'rate=1MB/s@20ms'
Signed-off-by: Mathieu Gagne <mgagne@iweb.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxlu_internal.h')
-rw-r--r-- | tools/libxl/libxlu_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxl/libxlu_internal.h b/tools/libxl/libxlu_internal.h index 1653c162b5..c7026854bf 100644 --- a/tools/libxl/libxlu_internal.h +++ b/tools/libxl/libxlu_internal.h @@ -17,9 +17,11 @@ #define LIBXLU_INTERNAL_H #include <stdio.h> +#include <stdlib.h> #include <errno.h> #include <string.h> #include <assert.h> +#include <regex.h> #define XLU_ConfigList XLU_ConfigSetting |