No need to reprogram hardware RX filter when driver is not running.

This commit is contained in:
Pyun YongHyeon 2012-02-23 05:25:14 +00:00
parent 7ae32f8a3c
commit 1f8b1fbd02

View File

@ -600,7 +600,8 @@ sf_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
case SIOCADDMULTI:
case SIOCDELMULTI:
SF_LOCK(sc);
sf_rxfilter(sc);
if ((ifp->if_drv_flags & IFF_DRV_RUNNING) != 0)
sf_rxfilter(sc);
SF_UNLOCK(sc);
break;
case SIOCGIFMEDIA: