aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxlutil.h
diff options
context:
space:
mode:
authorMathieu Gagne <mgagne@iweb.com>2012-04-24 17:09:22 +0100
committerMathieu Gagne <mgagne@iweb.com>2012-04-24 17:09:22 +0100
commitdeaed905dac4f87a08d35c0358fcf7657d817ad5 (patch)
tree0df710361097354badd55ea1e9e650475e5ea390 /tools/libxl/libxlutil.h
parent9684ac597a610155a19a7a33038cb874b4d8de23 (diff)
downloadxen-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/libxlutil.h')
-rw-r--r--tools/libxl/libxlutil.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/libxl/libxlutil.h b/tools/libxl/libxlutil.h
index 1b05f4c343..0333e55ba7 100644
--- a/tools/libxl/libxlutil.h
+++ b/tools/libxl/libxlutil.h
@@ -94,6 +94,13 @@ int xlu_disk_parse(XLU_Config *cfg, int nspecs, const char *const *specs,
int xlu_pci_parse_bdf(XLU_Config *cfg, libxl_device_pci *pcidev, const char *str);
+/*
+ * Vif rate parsing.
+ */
+
+int xlu_vif_parse_rate(XLU_Config *cfg, const char *rate,
+ libxl_device_nic *nic);
+
#endif /* LIBXLUTIL_H */
/*