Fix ifconfig up when the HW was down. If the driver isn't running

then we need to call init otherwise just start the rx.

Interestingly dhclient seemed to work but ifconfig <IP> didn't
for me.

Reviewed by:	jhb
This commit is contained in:
Doug Ambrisko 2006-07-12 23:13:09 +00:00
parent fed7988436
commit 4b14416350

View File

@ -4853,8 +4853,13 @@ bce_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
/* Check if the interface is up. */
if (ifp->if_flags & IFF_UP) {
/* Change the promiscuous/multicast flags as necessary. */
bce_set_rx_mode(sc);
if (ifp->if_drv_flags & IFF_DRV_RUNNING) {
/* Change the promiscuous/multicast flags as necessary. */
bce_set_rx_mode(sc);
} else {
/* Start the HW */
bce_init_locked(sc);
}
} else {
/* The interface is down. Check if the driver is running. */
if (ifp->if_drv_flags & IFF_DRV_RUNNING) {