From: Ben Pfaff Date: Mon, 29 Dec 2008 23:59:48 +0000 (-0800) Subject: vswitchd: Comment out annoying bonding-related logging, for now. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c2649a7f0a92bb20f56d30008e4122ed3a1c9b3;p=openvswitch vswitchd: Comment out annoying bonding-related logging, for now. --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 07067adb..a99171fc 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -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. */