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:
parent
fed7988436
commit
4b14416350
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user