FreeBSD/sys/dev/cxgb/common/cxgb_t3_hw.c
/**
 *	t3_enable_filters - enable the HW filters
 *	@adap: the adapter
 *
 *	Enables the HW filters for NIC traffic.
 */
enable the HW filters
@adap: the adapter

Enables the HW filters for NIC traffic.
enable the HW filters @adap : the adapter Enables the HW filters for NIC traffic .
void t3_enable_filters(adapter_t *adap)
{
	t3_set_reg_field(adap, A_TP_IN_CONFIG, F_NICMODE, 0);
	t3_set_reg_field(adap, A_MC5_DB_CONFIG, 0, F_FILTEREN);
	t3_set_reg_field(adap, A_TP_GLOBAL_CONFIG, 0, V_FIVETUPLELOOKUP(3));
	tp_wr_bits_indirect(adap, A_TP_INGRESS_CONFIG, 0, F_LOOKUPEVERYPKT);
}
void t3_enable_filters ( adapter_t * adap ) { t3_set_reg_field ( adap , A_TP_IN_CONFIG , F_NICMODE , 0 ) ; t3_set_reg_field ( adap , A_MC5_DB_CONFIG , 0 , F_FILTEREN ) ; t3_set_reg_field ( adap , A_TP_GLOBAL_CONFIG , 0 , V_FIVETUPLELOOKUP ( 3 ) ) ; tp_wr_bits_indirect ( adap , A_TP_INGRESS_CONFIG , 0 , F_LOOKUPEVERYPKT ) ; }
t3_enable_filters - enable the HW filters
      @adap: the adapter
t3_enable_filters - enable the HW filters @adap : the adapter