* [PATCH 2.6.13-rc1 17/17] bonding: Optimization to read MII only when link status has changed.
@ 2005-07-01 21:14 Radheka Godse
0 siblings, 0 replies; only message in thread
From: Radheka Godse @ 2005-07-01 21:14 UTC (permalink / raw)
To: fubar, bonding-devel; +Cc: netdev
Enhanced bond_mii_monitor fn: to read MII only when link status has
changed for an enslaved adapter.
Signed-off-by: Radheka Godse <radheka.godse@intel.com>
diff -urN -X dontdiff linux-2.6.12post/drivers/net/bonding/bond_main.c linux-2.6.12post-sysfs/drivers/net/bonding/bond_main.c
--- linux-2.6.12post/drivers/net/bonding/bond_main.c 2005-06-28 18:18:03.000000000 -0700
+++ linux-2.6.12post-sysfs/drivers/net/bonding/bond_main.c 2005-06-30 13:53:55.000000000 -0700
@@ -2652,6 +2652,7 @@
if (slave == oldcurrent) {
do_failover = 1;
}
+ bond_update_speed_duplex(slave);
} else {
slave->delay--;
}
@@ -2742,6 +2675,7 @@
} else {
slave->delay--;
}
+ bond_update_speed_duplex(slave);
}
break;
default:
@@ -2754,8 +2675,6 @@
goto out;
} /* end of switch (slave->link) */
- bond_update_speed_duplex(slave);
-
if (bond->params.mode == BOND_MODE_8023AD) {
if (old_speed != slave->speed) {
bond_3ad_adapter_speed_changed(slave);
~
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-07-01 21:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-01 21:14 [PATCH 2.6.13-rc1 17/17] bonding: Optimization to read MII only when link status has changed Radheka Godse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox