[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libvir] brSetForwardDelay / brSetEnableSTP



Proposed patch. I'm going to apply this one unless anyone objects, because it seems simple / obvious enough.

Rich.

--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
Index: src/bridge.c
===================================================================
RCS file: /data/cvs/libvirt/src/bridge.c,v
retrieving revision 1.4
diff -u -r1.4 bridge.c
--- src/bridge.c	20 Sep 2007 18:40:36 -0000	1.4
+++ src/bridge.c	21 Nov 2007 11:36:07 -0000
@@ -731,7 +731,7 @@
     int n;
 
     n = 1 + /* brctl */
-        1 + /* setfd */
+        1 + /* stp */
         1 + /* brige name */
         1;  /* value */
 
Index: src/qemu_driver.c
===================================================================
RCS file: /data/cvs/libvirt/src/qemu_driver.c,v
retrieving revision 1.35
diff -u -r1.35 qemu_driver.c
--- src/qemu_driver.c	15 Nov 2007 17:45:44 -0000	1.35
+++ src/qemu_driver.c	21 Nov 2007 11:36:09 -0000
@@ -1159,7 +1159,7 @@
         goto err_delbr;
     }
 
-    if ((err = brSetForwardDelay(driver->brctl, network->bridge, network->def->disableSTP ? 0 : 1))) {
+    if ((err = brSetEnableSTP(driver->brctl, network->bridge, network->def->disableSTP ? 0 : 1))) {
         qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
                          "failed to set bridge STP to %s\n",
                          network->def->disableSTP ? "off" : "on");

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]