/* Enables or disables HW extraction of VLAN tags for the given port.  */
void t3_set_vlan_accel(struct adapter *adapter, unsigned int ports, int on)
/* Enables or disables HW extraction of VLAN tags for the given port.  */
void t3_set_vlan_accel(struct adapter *adapter, unsigned int ports, int on)
{
	t3_set_reg_field(adapter, A_TP_OUT_CONFIG,
			 ports << S_VLANEXTRACTIONENABLE,
			 on ? (ports << S_VLANEXTRACTIONENABLE) : 0);
}