FreeBSD/sys/dev/ixl/ixl_pf_main.c
/*
** This routine is run via an vlan
** unconfig EVENT, remove our entry
** in the soft vfta.
*/
This routine is run via an vlan
unconfig EVENT, remove our entry
in the soft vfta.
This routine is run via an vlan unconfig EVENT remove our entry in the soft vfta .
void
ixl_unregister_vlan(void *arg, struct ifnet *ifp, u16 vtag)
{
	struct ixl_vsi	*vsi = ifp->if_softc;
	struct i40e_hw	*hw = vsi->hw;
	struct ixl_pf	*pf = (struct ixl_pf *)vsi->back;
	if (ifp->if_softc !=  arg)
		return;
	if ((vtag == 0) || (vtag > 4095))	
		return;
	IXL_PF_LOCK(pf);
	--vsi->num_vlans;
	ixl_del_filter(vsi, hw->mac.addr, vtag);
	IXL_PF_UNLOCK(pf);
}
void ixl_unregister_vlan ( void * arg , struct ifnet * ifp , u16 vtag ) { struct ixl_vsi * vsi = ifp -> if_softc ; struct i40e_hw * hw = vsi -> hw ; struct ixl_pf * pf = ( struct ixl_pf * ) vsi -> back ; if ( ifp -> if_softc != arg ) return ; if ( ( vtag == 0 ) || ( vtag > 4095 ) ) return ; IXL_PF_LOCK ( pf ) ; -- vsi -> num_vlans ; ixl_del_filter ( vsi , hw -> mac . addr , vtag ) ; IXL_PF_UNLOCK ( pf ) ; }
This routine is run via an vlan
unconfig EVENT, remove our entry
in the soft vfta.
This routine is run via an vlan unconfig EVENT remove our entry in the soft vfta .
/* Invalid */