FreeBSD/sys/dev/cxgb/common/cxgb_t3_hw.c
/**
 *	t3_set_vlan_accel - control HW VLAN extraction
 *	@adapter: the adapter
 *	@ports: bitmap of adapter ports to operate on
 *	@on: enable (1) or disable (0) HW VLAN extraction
 *
 *	Enables or disables HW extraction of VLAN tags for the given port.
 */
control HW VLAN extraction
@adapter: the adapter
@ports: bitmap of adapter ports to operate on
@on: enable (1) or disable (0) HW VLAN extraction

Enables or disables HW extraction of VLAN tags for the given port.
control HW VLAN extraction @adapter : the adapter @ports : bitmap of adapter ports to operate on @on : enable ( 1 ) or disable ( 0 ) HW VLAN extraction Enables or disables HW extraction of VLAN tags for the given port .
void t3_set_vlan_accel(adapter_t *adapter, unsigned int ports, int on)
{
	t3_set_reg_field(adapter, A_TP_OUT_CONFIG,
			 ports << S_VLANEXTRACTIONENABLE,
			 on ? (ports << S_VLANEXTRACTIONENABLE) : 0);
}
void t3_set_vlan_accel ( adapter_t * adapter , unsigned int ports , int on ) { t3_set_reg_field ( adapter , A_TP_OUT_CONFIG , ports << S_VLANEXTRACTIONENABLE , on ? ( ports << S_VLANEXTRACTIONENABLE ) : 0 ) ; }
t3_set_vlan_accel - control HW VLAN extraction
      @adapter: the adapter
      @ports: bitmap of adapter ports to operate on
      @on: enable (1) or disable (0) HW VLAN extraction
t3_set_vlan_accel - control HW VLAN extraction @adapter : the adapter @ports : bitmap of adapter ports to operate on @on : enable ( 1 ) or disable ( 0 ) HW VLAN extraction