src/dpdk/drivers/net/i40e/i40e_ethdev.c
struct i40e_tunnel_filter *
i40e_sw_tunnel_filter_lookup(struct i40e_tunnel_rule *tunnel_rule,
			     const struct i40e_tunnel_filter_input *input)
{
	int ret;

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

	return tunnel_rule->hash_map[ret];
}
/* Check if there exists the tunnel filter */
Check if there exists the tunnel filter
Check if there exists the tunnel filter
struct i40e_tunnel_filter *
i40e_sw_tunnel_filter_lookup(struct i40e_tunnel_rule *tunnel_rule,
			     const struct i40e_tunnel_filter_input *input)
{
	int ret;
	ret = rte_hash_lookup(tunnel_rule->hash_table, (const void *)input);
	if (ret < 0)
		return NULL;
	return tunnel_rule->hash_map[ret];
}
struct i40e_tunnel_filter * i40e_sw_tunnel_filter_lookup ( struct i40e_tunnel_rule * tunnel_rule , const struct i40e_tunnel_filter_input * input ) { int ret ; ret = rte_hash_lookup ( tunnel_rule -> hash_table , ( const void * ) input ) ; if ( ret < 0 ) return NULL ; return tunnel_rule -> hash_map [ ret ] ; }
Check if there exists the tunnel filter
Check if there exists the tunnel filter