PERFORCE change 122729 for review

Marko Zec zec at FreeBSD.org
Mon Jul 2 16:41:26 UTC 2007


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

Change 122729 by zec at zec_tca51 on 2007/07/02 16:41:05

	Resolve if_addr directly in struct ifnet *, instead of going
	around through the ifnet_bindex[] table by using the
	ifaddr_byindex macro.

Affected files ...

.. //depot/projects/vimage/src/sys/dev/nxge/if_nxge.c#2 edit

Differences ...

==== //depot/projects/vimage/src/sys/dev/nxge/if_nxge.c#2 (text+ko) ====

@@ -2246,7 +2246,7 @@
 	xge_hal_device_enable(hldev);
 
 	/* Get MAC address and update in HAL */
-	ifaddrp             = ifaddr_byindex(ifnetp->if_index);
+	ifaddrp             = ifnetp->if_addr;
 	sockaddrp           = (struct sockaddr_dl *)ifaddrp->ifa_addr;
 	sockaddrp->sdl_type = IFT_ETHER;
 	sockaddrp->sdl_alen = ifnetp->if_addrlen;


More information about the p4-projects mailing list