src/dpdk/drivers/net/igc/igc_filter.c
static void
igc_clear_all_ethertype_filter(struct rte_eth_dev *dev)
{
	struct igc_hw *hw = IGC_DEV_PRIVATE_HW(dev);
	struct igc_adapter *igc = IGC_DEV_PRIVATE(dev);
	int i;

	for (i = 0; i < IGC_MAX_ETQF_FILTERS; i++)
		IGC_WRITE_REG(hw, IGC_ETQF(i), 0);
	IGC_WRITE_FLUSH(hw);

	memset(&igc->ethertype_filters, 0, sizeof(igc->ethertype_filters));
}
/* clear all the ether type filters */
clear all the ether type filters
clear all the ether type filters
static void
igc_clear_all_ethertype_filter(struct rte_eth_dev *dev)
{
	struct igc_hw *hw = IGC_DEV_PRIVATE_HW(dev);
	struct igc_adapter *igc = IGC_DEV_PRIVATE(dev);
	int i;
	for (i = 0; i < IGC_MAX_ETQF_FILTERS; i++)
		IGC_WRITE_REG(hw, IGC_ETQF(i), 0);
	IGC_WRITE_FLUSH(hw);
	memset(&igc->ethertype_filters, 0, sizeof(igc->ethertype_filters));
}
static void igc_clear_all_ethertype_filter ( struct rte_eth_dev * dev ) { struct igc_hw * hw = IGC_DEV_PRIVATE_HW ( dev ) ; struct igc_adapter * igc = IGC_DEV_PRIVATE ( dev ) ; int i ; for ( i = 0 ; i < IGC_MAX_ETQF_FILTERS ; i ++ ) IGC_WRITE_REG ( hw , IGC_ETQF ( i ) , 0 ) ; IGC_WRITE_FLUSH ( hw ) ; memset ( & igc -> ethertype_filters , 0 , sizeof ( igc -> ethertype_filters ) ) ; }
clear all the ether type filters
clear all the ether type filters