Two problems are found and fixed below:
1. Ingress rules is not clean on previous version of
virNetDevOpenvswitchInterfaceClearQos.
2. If errors occurs when removing inbound qos on multi interfaces vm, some rules may not
be delete as aspected.
Fix by:
Instead of cleaning all qos rules each time new qos is set, tx and rx's qos are set or
cleaned respectively.
Replace virReportError with VIR_WARN to let the cleaning process continue when error
occurs.
Add ifname into ovs querying statements, which will reduce failure of removing qos on the
other interfaces of the same vm.
Test virNetDevOpenvswitchInterfaceSetQos and virNetDevOpenvswitchInterfaceClearQos with
dryrun method.
Since commands in tests are not actually run, it is difficult to emulate some complex
senario, such as set and then update qos.
So basic tests are added in patches.
Jinsheng Zhang (2):
virDomain: interface: add virNetDevOpenvswitchInterfaceClearTxQos and
virNetDevOpenvswitchInterfaceClearRxQos.
tests: add test on virNetDevOpenvswitchInterfaceSetQos and
virNetDevOpenvswitchInterfaceClearQos
src/libvirt_private.syms | 2 +
src/util/virnetdevopenvswitch.c | 69 +++++++++--
src/util/virnetdevopenvswitch.h | 7 ++
tests/virnetdevopenvswitchtest.c | 196 ++++++++++++++++++++++++++++++-
4 files changed, 262 insertions(+), 12 deletions(-)
--
2.30.2.windows.1