Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Feb 2005 19:57:42 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 70541 for review
Message-ID:  <200502071957.j17JvgVx035062@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=70541

Change 70541 by jhb@jhb_slimer on 2005/02/07 19:57:37

	IFC @70539.

Affected files ...

.. //depot/projects/smpng/sys/dev/vge/if_vge.c#4 integrate

Differences ...

==== //depot/projects/smpng/sys/dev/vge/if_vge.c#4 (text+ko) ====

@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/sys/dev/vge/if_vge.c,v 1.4 2005/01/06 01:43:31 imp Exp $");
+__FBSDID("$FreeBSD: src/sys/dev/vge/if_vge.c,v 1.5 2005/02/07 19:39:29 glebius Exp $");
 
 /*
  * VIA Networking Technologies VT612x PCI gigabit ethernet NIC driver.
@@ -97,7 +97,6 @@
 #include <net/if_dl.h>
 #include <net/if_media.h>
 #include <net/if_vlan_var.h>
-#include <net/route.h>
 
 #include <net/bpf.h>
 
@@ -1570,19 +1569,15 @@
 	if (sc->vge_link) {
 		if (!(mii->mii_media_status & IFM_ACTIVE)) {
 			sc->vge_link = 0;
-#ifdef LINK_STATE_UP
-			sc->arpcom.ac_if.if_link_state = LINK_STATE_UP;
-			rt_ifmsg(&(sc->arpcom.ac_if));
-#endif /* LINK_STATE_UP */
+			if_link_state_change(&sc->arpcom.ac_if,
+			    LINK_STATE_UP);
 		}
 	} else {
 		if (mii->mii_media_status & IFM_ACTIVE &&
 		    IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) {
 			sc->vge_link = 1;
-#ifdef LINK_STATE_DOWN
-			sc->arpcom.ac_if.if_link_state = LINK_STATE_DOWN;
-			rt_ifmsg(&(sc->arpcom.ac_if));
-#endif /* LINK_STATE_DOWN */
+			if_link_state_change(&sc->arpcom.ac_if,
+			    LINK_STATE_DOWN);
 #if __FreeBSD_version < 502114
 			if (ifp->if_snd.ifq_head != NULL)
 #else



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502071957.j17JvgVx035062>