vswitchd: Comment out annoying bonding-related logging, for now.
authorBen Pfaff <blp@nicira.com>
Mon, 29 Dec 2008 23:59:48 +0000 (15:59 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 29 Dec 2008 23:59:48 +0000 (15:59 -0800)
vswitchd/bridge.c

index 07067adba0f87c60a6cb026c405d78f2c5cc2b40..a99171fc0b1f7eca2e6d0fe7ecdae68421d4c5b1 100644 (file)
@@ -1678,9 +1678,9 @@ resort_bals(struct slave_balance *p, struct slave_balance *bals, size_t n_bals)
     }
 }
 
-static void
+static void UNUSED
 log_bals(const char *title, const struct slave_balance *bals, size_t n_bals,
-           struct port *port)
+         struct port *port)
 {
     const struct slave_balance *b;
 
@@ -1738,7 +1738,7 @@ bond_rebalance_port(struct port *port)
     /* Shift load from the most-heavily-loaded slaves to the
      * least-heavily-loaded slaves. */
     least_loaded = &bals[port->n_ifaces - 1];
-    log_bals("before", bals, port->n_ifaces, port);
+    //log_bals("before", bals, port->n_ifaces, port);
     for (b = bals; b < least_loaded; ) {
         uint64_t overload = b->tx_bytes - least_loaded->tx_bytes;
         if (overload < least_loaded->tx_bytes >> 5 || overload < 100000) {
@@ -1785,7 +1785,7 @@ bond_rebalance_port(struct port *port)
 
     again: ;
     }
-    log_bals("after", bals, port->n_ifaces, port);
+    //log_bals("after", bals, port->n_ifaces, port);
 
     /* Implement exponentially weighted moving average.  A weight of 1/2 causes
      * historical data to decay to <1% in 7 rebalancing runs.  */