diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-07-12 10:03:29 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-07-12 10:03:29 +0000 |
commit | 66809d90575728192aec93f7b71a9d7a38987c09 (patch) | |
tree | 1a27d467884ba91729af8242995d3f2f2ee65ed8 | |
parent | 7d726d3c98d2a4f21ba0561188a21bcd0b2b59df (diff) | |
download | FreeBSD-src-66809d90575728192aec93f7b71a9d7a38987c09.zip FreeBSD-src-66809d90575728192aec93f7b71a9d7a38987c09.tar.gz |
Directly initialize nxge's ifaddrp pointer to ifnetp->if_addr rather
than indirecting through ifaddr_byindex, which makes things easier with
respect to virtualized network stacks.
Submitted by: Marko Zec <zec at icir dot org>
Reviewed by: Leonid Grossman <Leonid dot Grossman at neterion dot com>
Approved by: re (kensmith)
-rw-r--r-- | sys/dev/nxge/if_nxge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/nxge/if_nxge.c b/sys/dev/nxge/if_nxge.c index 5390120..0b8b508 100644 --- a/sys/dev/nxge/if_nxge.c +++ b/sys/dev/nxge/if_nxge.c @@ -2246,7 +2246,7 @@ void xge_initialize(device_t dev, xge_hal_channel_reopen_e option) 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; |