Date: Mon, 2 Jul 2007 16:41:25 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 122729 for review Message-ID: <200707021641.l62GfPZo058057@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122729 Change 122729 by zec@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707021641.l62GfPZo058057>