PERFORCE change 124731 for review

Marko Zec zec at FreeBSD.org
Sun Aug 5 09:06:39 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=124731

Change 124731 by zec at zec_tpx32 on 2007/08/05 16:06:10

	Print the "Ethernet address: x.x.x.x.x" message on the console
	only the first time the ifnet is attached, not each time it
	moves from one vnet to another.

Affected files ...

.. //depot/projects/vimage/src/sys/net/if_ethersubr.c#14 edit

Differences ...

==== //depot/projects/vimage/src/sys/net/if_ethersubr.c#14 (text+ko) ====

@@ -909,6 +909,9 @@
 	int i;
 	struct ifaddr *ifa;
 	struct sockaddr_dl *sdl;
+#ifdef VIMAGE
+	struct vnet *home_vnet_0 = ifp->if_home_vnet;
+#endif
 
 	ifp->if_addrlen = ETHER_ADDR_LEN;
 	ifp->if_hdrlen = ETHER_HDR_LEN;
@@ -936,7 +939,11 @@
 	for (i = 0; i < ifp->if_addrlen; i++)
 		if (lla[i] != 0)
 			break; 
+#ifdef VIMAGE
+	if (i != ifp->if_addrlen && home_vnet_0 != ifp->if_home_vnet)
+#else
 	if (i != ifp->if_addrlen)
+#endif
 		if_printf(ifp, "Ethernet address: %6D\n", lla, ":");
 	if (ifp->if_flags & IFF_NEEDSGIANT)
 		if_printf(ifp, "if_start running deferred for Giant\n");


More information about the p4-projects mailing list