FreeBSD/sys/dev/ixl/if_ixlv.c
/*
** This routine refreshes vlan filters, called by init
** it scans the filter table and then updates the AQ
*/
This routine refreshes vlan filters, called by init
it scans the filter table and then updates the AQ
This routine refreshes vlan filters called by init it scans the filter table and then updates the AQ
static void
ixlv_setup_vlan_filters(struct ixlv_sc *sc)
{
	struct ixl_vsi			*vsi = &sc->vsi;
	struct ixlv_vlan_filter	*f;
	int				cnt = 0;
	if (vsi->num_vlans == 0)
		return;
	SLIST_FOREACH(f, sc->vlan_filters, next)
                if (f->flags & IXL_FILTER_ADD)
			cnt++;
	if (cnt > 0)
		ixl_vc_enqueue(&sc->vc_mgr, &sc->add_vlan_cmd,
		    IXLV_FLAG_AQ_ADD_VLAN_FILTER, ixl_init_cmd_complete, sc);
}
static void ixlv_setup_vlan_filters ( struct ixlv_sc * sc ) { struct ixl_vsi * vsi = & sc -> vsi ; struct ixlv_vlan_filter * f ; int cnt = 0 ; if ( vsi -> num_vlans == 0 ) return ; SLIST_FOREACH ( f , sc -> vlan_filters , next ) if ( f -> flags & IXL_FILTER_ADD ) cnt ++ ; if ( cnt > 0 ) ixl_vc_enqueue ( & sc -> vc_mgr , & sc -> add_vlan_cmd , IXLV_FLAG_AQ_ADD_VLAN_FILTER , ixl_init_cmd_complete , sc ) ; }
This routine refreshes vlan filters, called by init
it scans the filter table and then updates the AQ
This routine refreshes vlan filters called by init it scans the filter table and then updates the AQ
/*
	** Scan the filter table for vlan entries,
	** and if found call for the AQ update.
	*/