src/dpdk/drivers/net/i40e/i40e_ethdev.c
struct i40e_ethertype_filter *
i40e_sw_ethertype_filter_lookup(struct i40e_ethertype_rule *ethertype_rule,
				const struct i40e_ethertype_filter_input *input)
{
	int ret;

	ret = rte_hash_lookup(ethertype_rule->hash_table, (const void *)input);
	if (ret < 0)
		return NULL;

	return ethertype_rule->hash_map[ret];
}
/* Check if there exists the ehtertype filter */
Check if there exists the ehtertype filter
Check if there exists the ehtertype filter
struct i40e_ethertype_filter *
i40e_sw_ethertype_filter_lookup(struct i40e_ethertype_rule *ethertype_rule,
				const struct i40e_ethertype_filter_input *input)
{
	int ret;
	ret = rte_hash_lookup(ethertype_rule->hash_table, (const void *)input);
	if (ret < 0)
		return NULL;
	return ethertype_rule->hash_map[ret];
}
struct i40e_ethertype_filter * i40e_sw_ethertype_filter_lookup ( struct i40e_ethertype_rule * ethertype_rule , const struct i40e_ethertype_filter_input * input ) { int ret ; ret = rte_hash_lookup ( ethertype_rule -> hash_table , ( const void * ) input ) ; if ( ret < 0 ) return NULL ; return ethertype_rule -> hash_map [ ret ] ; }
Check if there exists the ehtertype filter
Check if there exists the ehtertype filter