]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomain: interface: add virNetDevOpenvswitchInterfaceSetQos and virNetDevOpenvswitc...
authorzhangjl02 <zhangjl02@inspur.com>
Wed, 7 Jul 2021 09:18:17 +0000 (17:18 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 12 Jul 2021 07:40:13 +0000 (09:40 +0200)
commit7c07b4894239e0e7690cf4f45f2bebb4a015d67b
treef1d55f4b982a2c0d1f056b64d973b500b8488d16
parentb9cbf5587ecb693779d9bfdaf1bc7184028318aa
virDomain: interface: add virNetDevOpenvswitchInterfaceSetQos and virNetDevOpenvswitchInterfaceClearQos

Introduce qos setting and cleaning method. Use ovs command to set qos
parameters on specific interface of qemu virtual machine.

When an ovs port is created, we add 'ifname' to external-ids. When setting
qos on an ovs port, query its qos and queue. If found, change qos on queried
queue and qos, otherwise create new queue and qos. When cleaning qos, query
and clean queues and qos in ovs table record by 'ifname' and 'vmid'.

Signed-off-by: Jinsheng Zhang <zhangjl02@inspur.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/libvirt_private.syms
src/util/virnetdevopenvswitch.c
src/util/virnetdevopenvswitch.h