| To: | fubar@xxxxxxxxxx, bonding-devel@xxxxxxxxxxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 2.6.13-rc1 17/17] bonding: Optimization to read MII only when link status has changed. |
| From: | Radheka Godse <radheka.godse@xxxxxxxxx> |
| Date: | Fri, 1 Jul 2005 14:14:00 -0700 (PDT) |
| Cc: | netdev@xxxxxxxxxxx |
| Replyto: | "Radheka Godse" <radheka.godse@intel.com> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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@xxxxxxxxx> 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);
~ |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2.6.13-rc1 16/17] bonding: version, date and log update, Radheka Godse |
|---|---|
| Next by Date: | controlling ARP Proxy scope?, Zdenek Radouch |
| Previous by Thread: | [PATCH 2.6.13-rc1 16/17] bonding: version, date and log update, Radheka Godse |
| Next by Thread: | controlling ARP Proxy scope?, Zdenek Radouch |
| Indexes: | [Date] [Thread] [Top] [All Lists] |