MFC: 1.119: Make sure we reprogram multicast filter on IFF_ALLMULTI.

Approved by:	re (kensmith)
This commit is contained in:
ru 2006-02-03 15:56:42 +00:00
parent 0964959703
commit 610b3e366d

View File

@ -3439,7 +3439,7 @@ bge_ioctl(ifp, command, data)
* instead of reinitializing the entire NIC. Doing
* a full re-init means reloading the firmware and
* waiting for it to start up, which may take a
* second or two.
* second or two. Similarly for ALLMULTI.
*/
if (ifp->if_drv_flags & IFF_DRV_RUNNING &&
ifp->if_flags & IFF_PROMISC &&
@ -3451,6 +3451,9 @@ bge_ioctl(ifp, command, data)
sc->bge_if_flags & IFF_PROMISC) {
BGE_CLRBIT(sc, BGE_RX_MODE,
BGE_RXMODE_RX_PROMISC);
} else if (ifp->if_drv_flags & IFF_DRV_RUNNING &&
(ifp->if_flags ^ sc->bge_if_flags) & IFF_ALLMULTI) {
bge_setmulti(sc);
} else
bge_init_locked(sc);
} else {