src/dpdk/drivers/net/ice/ice_fdir_filter.c
static int
ice_fdir_entry_insert(struct ice_pf *pf,
		      struct ice_fdir_filter_conf *entry,
		      struct ice_fdir_fltr_pattern *key)
{
	struct ice_fdir_info *fdir_info = &pf->fdir;
	int ret;

	ret = rte_hash_add_key(fdir_info->hash_table, key);
	if (ret < 0) {
		PMD_DRV_LOG(ERR,
			    "Failed to insert fdir entry to hash table %d!",
			    ret);
		return ret;
	}
	fdir_info->hash_map[ret] = entry;

	return 0;
}
/* Add a flow director entry into the SW list */
Add a flow director entry into the SW list
Add a flow director entry into the SW list
static int
ice_fdir_entry_insert(struct ice_pf *pf,
		      struct ice_fdir_filter_conf *entry,
		      struct ice_fdir_fltr_pattern *key)
{
	struct ice_fdir_info *fdir_info = &pf->fdir;
	int ret;
	ret = rte_hash_add_key(fdir_info->hash_table, key);
	if (ret < 0) {
		PMD_DRV_LOG(ERR,
			    "Failed to insert fdir entry to hash table %d!",
			    ret);
		return ret;
	}
	fdir_info->hash_map[ret] = entry;
	return 0;
}
static int ice_fdir_entry_insert ( struct ice_pf * pf , struct ice_fdir_filter_conf * entry , struct ice_fdir_fltr_pattern * key ) { struct ice_fdir_info * fdir_info = & pf -> fdir ; int ret ; ret = rte_hash_add_key ( fdir_info -> hash_table , key ) ; if ( ret < 0 ) { PMD_DRV_LOG ( ERR , " " , ret ) ; return ret ; } fdir_info -> hash_map [ ret ] = entry ; return 0 ; }
Add a flow director entry into the SW list
Add a flow director entry into the SW list