src/dpdk/drivers/net/e1000/igb_ethdev.c
static int igb_ntuple_filter_uninit(struct rte_eth_dev *eth_dev)
{
	struct e1000_filter_info *filter_info =
		E1000_DEV_PRIVATE_TO_FILTER_INFO(eth_dev->data->dev_private);
	struct e1000_5tuple_filter *p_5tuple;
	struct e1000_2tuple_filter *p_2tuple;

	while ((p_5tuple = TAILQ_FIRST(&filter_info->fivetuple_list))) {
		TAILQ_REMOVE(&filter_info->fivetuple_list,
			p_5tuple, entries);
			rte_free(p_5tuple);
	}
	filter_info->fivetuple_mask = 0;
	while ((p_2tuple = TAILQ_FIRST(&filter_info->twotuple_list))) {
		TAILQ_REMOVE(&filter_info->twotuple_list,
			p_2tuple, entries);
			rte_free(p_2tuple);
	}
	filter_info->twotuple_mask = 0;

	return 0;
}
/* Remove all ntuple filters of the device */
Remove all ntuple filters of the device
Remove all ntuple filters of the device
static int igb_ntuple_filter_uninit(struct rte_eth_dev *eth_dev)
{
	struct e1000_filter_info *filter_info =
		E1000_DEV_PRIVATE_TO_FILTER_INFO(eth_dev->data->dev_private);
	struct e1000_5tuple_filter *p_5tuple;
	struct e1000_2tuple_filter *p_2tuple;
	while ((p_5tuple = TAILQ_FIRST(&filter_info->fivetuple_list))) {
		TAILQ_REMOVE(&filter_info->fivetuple_list,
			p_5tuple, entries);
			rte_free(p_5tuple);
	}
	filter_info->fivetuple_mask = 0;
	while ((p_2tuple = TAILQ_FIRST(&filter_info->twotuple_list))) {
		TAILQ_REMOVE(&filter_info->twotuple_list,
			p_2tuple, entries);
			rte_free(p_2tuple);
	}
	filter_info->twotuple_mask = 0;
	return 0;
}
static int igb_ntuple_filter_uninit ( struct rte_eth_dev * eth_dev ) { struct e1000_filter_info * filter_info = E1000_DEV_PRIVATE_TO_FILTER_INFO ( eth_dev -> data -> dev_private ) ; struct e1000_5tuple_filter * p_5tuple ; struct e1000_2tuple_filter * p_2tuple ; while ( ( p_5tuple = TAILQ_FIRST ( & filter_info -> fivetuple_list ) ) ) { TAILQ_REMOVE ( & filter_info -> fivetuple_list , p_5tuple , entries ) ; rte_free ( p_5tuple ) ; } filter_info -> fivetuple_mask = 0 ; while ( ( p_2tuple = TAILQ_FIRST ( & filter_info -> twotuple_list ) ) ) { TAILQ_REMOVE ( & filter_info -> twotuple_list , p_2tuple , entries ) ; rte_free ( p_2tuple ) ; } filter_info -> twotuple_mask = 0 ; return 0 ; }
Remove all ntuple filters of the device
Remove all ntuple filters of the device