From: Ethan Jackson Date: Wed, 19 Jan 2011 00:01:45 +0000 (-0800) Subject: vswitchd: Display miimon interval. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b42c5c24041ddb6553aa9ca88888a2ecfd6e4c99;p=openvswitch vswitchd: Display miimon interval. Causes bond/show to display the miimon interval for bonded ports when configured to use miimon instead of carrier. Requested-by: Michael Mao Bug #4418. --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 7fa819cf..fb8ce5f1 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -3355,6 +3355,12 @@ bond_unixctl_show(struct unixctl_conn *conn, bond_mode_to_string(port->bond_mode)); ds_put_format(&ds, "bond-detect-mode: %s\n", port->miimon ? "miimon" : "carrier"); + + if (port->miimon) { + ds_put_format(&ds, "bond-miimon-interval: %lld\n", + port->bond_miimon_interval); + } + ds_put_format(&ds, "updelay: %d ms\n", port->updelay); ds_put_format(&ds, "downdelay: %d ms\n", port->downdelay);