entry->container.byte_data = &entry->mem_data[size];
entry->container.byte_order = tbl->result_byte_order;
} else {
- BNXT_TF_DBG(ERR, "%s:Invalid gen table num of ent %d\n",
+ BNXT_TF_DBG(DEBUG, "%s: Unused Gen tbl entry is %d\n",
tbl->name, idx);
- return -EINVAL;
+ /* return -EINVAL; */
}
if (tbl->hash_tbl_entries) {
cparams.key_size = tbl->key_num_bytes;
return -EINVAL;
}
fid = tfp_be_to_cpu_32(fid);
-
- /* Destroy the flow associated with the shared flow id */
- if (ulp_mapper_flow_destroy(ulp_ctx, BNXT_ULP_FDB_TYPE_RID,
- fid))
- BNXT_TF_DBG(ERR, "Error in deleting shared flow id %x\n", fid);
+ /* no need to del if fid is 0 since there is no associated resource */
+ if (fid) {
+ /* Destroy the flow associated with the shared flow id */
+ if (ulp_mapper_flow_destroy(ulp_ctx, BNXT_ULP_FDB_TYPE_RID,
+ fid))
+ BNXT_TF_DBG(ERR,
+ "Error in deleting shared flow id %x\n",
+ fid);
+ }
/* Delete the entry from the hash table */
if (gen_tbl_list->hash_tbl)