svn commit: r232027 - head/sys/dev/sf
Pyun YongHyeon
yongari at FreeBSD.org
Thu Feb 23 05:25:15 UTC 2012
Author: yongari
Date: Thu Feb 23 05:25:14 2012
New Revision: 232027
URL: http://svn.freebsd.org/changeset/base/232027
Log:
No need to reprogram hardware RX filter when driver is not running.
Modified:
head/sys/dev/sf/if_sf.c
Modified: head/sys/dev/sf/if_sf.c
==============================================================================
--- head/sys/dev/sf/if_sf.c Thu Feb 23 05:23:42 2012 (r232026)
+++ head/sys/dev/sf/if_sf.c Thu Feb 23 05:25:14 2012 (r232027)
@@ -600,7 +600,8 @@ sf_ioctl(struct ifnet *ifp, u_long comma
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:
More information about the svn-src-all
mailing list