Re: [libvirt] [PATCH] qemu: fix tc old rules will be cleaned after set tc new rules fail

2014-12-30 Thread Luyao Huang
Please ignore this patch, i worked in a old upstream libvirt. Sorry for the noisy. Luyao - Original Message - From: "Luyao Huang" To: libvir-list@redhat.com Cc: "Luyao Huang" Sent: Tuesday, December 30, 2014 5:00:03 PM Subject: [libvirt] [PATCH] qemu: fix tc old r

[libvirt] [PATCH] qemu: fix tc old rules will be cleaned after set tc new rules fail

2014-12-30 Thread Luyao Huang
https://bugzilla.redhat.com/show_bug.cgi?id=1177723 If tc cmd failed when we use qemuDomainSetInterfaceParameters, the old rules will be clean. Restore the old rules if tc failed. Signed-off-by: Luyao Huang --- src/qemu/qemu_driver.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) d