return -EINVAL;
}
+ if (!dparms->mark_db_lfid_entries || !dparms->mark_db_gfid_entries) {
+ BNXT_TF_DBG(DEBUG, "mark Table is not allocated\n");
+ bnxt_ulp_cntxt_ptr2_mark_db_set(ctxt, NULL);
+ return 0;
+ }
+
mark_tbl = rte_zmalloc("ulp_rx_mark_tbl_ptr",
sizeof(struct bnxt_ulp_mark_tbl), 0);
if (!mark_tbl)
return -EINVAL;
mtbl = bnxt_ulp_cntxt_ptr2_mark_db_get(ctxt);
- if (!mtbl) {
- BNXT_TF_DBG(ERR, "Unable to get Mark Table\n");
+ if (!mtbl)
return -EINVAL;
- }
idx = ulp_mark_db_idx_get(is_gfid, fid, mtbl);