FreeBSD/sys/dev/ixl/if_ixlv.c
/*********************************************************************
 *  Multicast Initialization
 *
 *  This routine is called by init to reset a fresh state.
 *
 **********************************************************************/
Multicast Initialization
This routine is called by init to reset a fresh state.
Multicast Initialization This routine is called by init to reset a fresh state .
static void
ixlv_init_multi(struct ixl_vsi *vsi)
{
	struct ixlv_mac_filter *f;
	struct ixlv_sc	*sc = vsi->back;
	int			mcnt = 0;
	IOCTL_DBG_IF(vsi->ifp, "begin");
	SLIST_FOREACH(f, sc->mac_filters, next) {
		if ((f->flags & IXL_FILTER_USED)
		    && (f->flags & IXL_FILTER_MC)) {
			f->flags |= IXL_FILTER_DEL;
			mcnt++;
		}
	}
	if (mcnt > 0)
		ixl_vc_enqueue(&sc->vc_mgr, &sc->del_multi_cmd,
		    IXLV_FLAG_AQ_DEL_MAC_FILTER, ixl_init_cmd_complete,
		    sc);
	IOCTL_DBG_IF(vsi->ifp, "end");
}
static void ixlv_init_multi ( struct ixl_vsi * vsi ) { struct ixlv_mac_filter * f ; struct ixlv_sc * sc = vsi -> back ; int mcnt = 0 ; IOCTL_DBG_IF ( vsi -> ifp , " " ) ; SLIST_FOREACH ( f , sc -> mac_filters , next ) { if ( ( f -> flags & IXL_FILTER_USED ) && ( f -> flags & IXL_FILTER_MC ) ) { f -> flags |= IXL_FILTER_DEL ; mcnt ++ ; } } if ( mcnt > 0 ) ixl_vc_enqueue ( & sc -> vc_mgr , & sc -> del_multi_cmd , IXLV_FLAG_AQ_DEL_MAC_FILTER , ixl_init_cmd_complete , sc ) ; IOCTL_DBG_IF ( vsi -> ifp , " " ) ; }
Multicast Initialization
  This routine is called by init to reset a fresh state.
Multicast Initialization This routine is called by init to reset a fresh state .
/* First clear any multicast filters */