FreeBSD/sys/dev/oce/oce_if.c
/*
 * A max of 64 vlans can be configured in BE. If the user configures
 * more, place the card in vlan promiscuous mode.
 */
A max of 64 vlans can be configured in BE. If the user configures
more, place the card in vlan promiscuous mode.
A max of 64 vlans can be configured in BE . If the user configures more place the card in vlan promiscuous mode .
static int
oce_vid_config(POCE_SOFTC sc)
{
	struct normal_vlan vtags[MAX_VLANFILTER_SIZE];
	uint16_t ntags = 0, i;
	int status = 0;
	if ((sc->vlans_added <= MAX_VLANFILTER_SIZE) && 
			(sc->ifp->if_capenable & IFCAP_VLAN_HWFILTER)) {
		for (i = 0; i < MAX_VLANS; i++) {
			if (sc->vlan_tag[i]) {
				vtags[ntags].vtag = i;
				ntags++;
			}
		}
		if (ntags)
			status = oce_config_vlan(sc, (uint8_t) sc->if_id,
						vtags, ntags, 1, 0); 
	} else 
		status = oce_config_vlan(sc, (uint8_t) sc->if_id,
					 	NULL, 0, 1, 1);
	return status;
}
static int oce_vid_config ( POCE_SOFTC sc ) { struct normal_vlan vtags [ MAX_VLANFILTER_SIZE ] ; uint16_t ntags = 0 , i ; int status = 0 ; if ( ( sc -> vlans_added <= MAX_VLANFILTER_SIZE ) && ( sc -> ifp -> if_capenable & IFCAP_VLAN_HWFILTER ) ) { for ( i = 0 ; i < MAX_VLANS ; i ++ ) { if ( sc -> vlan_tag [ i ] ) { vtags [ ntags ] . vtag = i ; ntags ++ ; } } if ( ntags ) status = oce_config_vlan ( sc , ( uint8_t ) sc -> if_id , vtags , ntags , 1 , 0 ) ; } else status = oce_config_vlan ( sc , ( uint8_t ) sc -> if_id , NULL , 0 , 1 , 1 ) ; return status ; }
A max of 64 vlans can be configured in BE.
A max of 64 vlans can be configured in BE .