- Do not reinitialize the card if it is already running.
This fixes bootp on if_smc, as bootp code perform SIOCSIFADDR ioctl call immediately after sending the request (which causes if_init being called) which causes the adapter to drop all the packets received in the meantime.
This commit is contained in:
parent
4d7f883711
commit
8a31831551
@ -1237,9 +1237,10 @@ smc_init_locked(struct smc_softc *sc)
|
||||
{
|
||||
struct ifnet *ifp;
|
||||
|
||||
ifp = sc->smc_ifp;
|
||||
|
||||
SMC_ASSERT_LOCKED(sc);
|
||||
ifp = sc->smc_ifp;
|
||||
if ((ifp->if_drv_flags & IFF_DRV_RUNNING) != 0)
|
||||
return;
|
||||
|
||||
smc_reset(sc);
|
||||
smc_enable(sc);
|
||||
|
Loading…
Reference in New Issue
Block a user