svn commit: r187083 - in stable/7/sys: . contrib/pf dev/cxgb pci

Pyun YongHyeon yongari at FreeBSD.org
Sun Jan 11 20:10:42 PST 2009


Author: yongari
Date: Mon Jan 12 04:10:40 2009
New Revision: 187083
URL: http://svn.freebsd.org/changeset/base/187083

Log:
  MFC r186390:
    Since we don't request reset for rlphy(4), the link state 'UP'
    event from mii(4) may not be delivered if valid link was already
    established. To address the issue, check current link state after
    driving MII_TICK. This should fix a regression introduced in
    r184245.

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/dev/cxgb/   (props changed)
  stable/7/sys/pci/if_rl.c

Modified: stable/7/sys/pci/if_rl.c
==============================================================================
--- stable/7/sys/pci/if_rl.c	Mon Jan 12 04:03:25 2009	(r187082)
+++ stable/7/sys/pci/if_rl.c	Mon Jan 12 04:10:40 2009	(r187083)
@@ -1395,6 +1395,8 @@ rl_tick(void *xsc)
 	RL_LOCK_ASSERT(sc);
 	mii = device_get_softc(sc->rl_miibus);
 	mii_tick(mii);
+	if ((sc->rl_flags & RL_FLAG_LINK) == 0)
+		rl_miibus_statchg(sc->rl_dev);
 
 	rl_watchdog(sc);
 


More information about the svn-src-stable-7 mailing list