On Tue, 2010-07-27 at 08:44 -0700, Chris Friesen wrote: > Hi, > Hi Chris,
> In order to simplify our network management, I've been asked to modify > the igb and ixgbe drivers so that the far end doesn't detect link > carrier when the local devices are downed using "ifdown" or equivalent. There has been a seemingly large surge of this question coming into us recently... > We have two types of devices, 82576 and 82599 (using XAUI). > > On the 82576 I'm using the PCTRL register. I'm setting bit 11 (power > down phy), clearing bit 12 (disabling autonegotiation), and then setting > bit 9 (restarting autonegotiation). This seems to work--are there any > gotchas of which I should be aware, or any better options? This is the process we've given to a few other folks looking to do the same thing on 82576. This should work just fine. > On the 82599 I can't find any way to disable the XAUI link as such. I > tried telling it to use a different protocol to force a mismatch but > this resulted in the device itself losing carrier, but the far end still > claiming to see carrier. (Specifically, I tried changing the > IXGBE_AUTOC_LMS_10G_LINK_NO_AN bits in AUTOC to > IXGBE_AUTOC_LMS_10G_SERIAL and then set the IXGBE_AUTOC_AN_RESTART bit. > I've tried other LMS bits as well as various 10G_PMA_PMD_PARALLEL bits > but they all behaved the same.) Is there a "proper" way to shut down > the MAUI interface such that the other end cannot possibly detect a link > as present? There is no proper way to shut down XAUI for 82599 unfortunately. What we've recommended to other people is to set AUTOC.LMS to 000b (1G link, no auto-neg). That should be enough to "break" the physical link on the wire, then write AUTOC.Restart_AN. Let me know if this helps. Cheers, -PJ Waskiewicz ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ E1000-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
