]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: support vif outgoing bandwidth QoS
authorJim Fehlig <jfehlig@suse.com>
Tue, 29 Dec 2015 00:26:58 +0000 (17:26 -0700)
committerJim Fehlig <jfehlig@suse.com>
Sat, 9 Jan 2016 01:56:00 +0000 (18:56 -0700)
commitf988ecfb347f32a7f197332f13b7a0fcda4def74
tree5529a3bbf77589e233c369cfcaa9ce9c32067ed4
parentec63000a62819bf29b930e8c43fa8ff9203ada4a
libxl: support vif outgoing bandwidth QoS

The libxl_device_nic structure supports specifying an outgoing rate
limit based on a time interval and bytes allowed per interval. In xl
config a rate limit is specified as "<RATE>/s@<INTERVAL>". INTERVAL
is optional and defaults to 50ms.

libvirt expresses outgoing limits by average (required), peak, burst,
and floor attributes in units of KB/s. This patch supports the outgoing
bandwidth limit by converting the average KB/s to bytes per interval
based on the same default interval (50ms) used by xl.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_conf.c