Netdev List
 help / color / mirror / Atom feed
From: Radheka Godse <radheka.godse@intel.com>
To: fubar@us.ibm.com, bonding-devel@lists.sourceforge.net
Cc: netdev@oss.sgi.com
Subject: [PATCH 2.6.13-rc1 17/17] bonding: Optimization to read MII only when link status has changed.
Date: Fri, 1 Jul 2005 14:14:00 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.61.0507011410190.17459@localhost.localdomain> (raw)

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);
~

                 reply	other threads:[~2005-07-01 21:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.61.0507011410190.17459@localhost.localdomain \
    --to=radheka.godse@intel.com \
    --cc=bonding-devel@lists.sourceforge.net \
    --cc=fubar@us.ibm.com \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox