git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: workaround drop action with old kernel
[dpdk.git]
/
drivers
/
net
/
bnxt
/
tf_ulp
/
ulp_mark_mgr.c
diff --git
a/drivers/net/bnxt/tf_ulp/ulp_mark_mgr.c
b/drivers/net/bnxt/tf_ulp/ulp_mark_mgr.c
index
06ad5a9
..
271520e
100644
(file)
--- a/
drivers/net/bnxt/tf_ulp/ulp_mark_mgr.c
+++ b/
drivers/net/bnxt/tf_ulp/ulp_mark_mgr.c
@@
-73,6
+73,12
@@
ulp_mark_db_init(struct bnxt_ulp_context *ctxt)
return -EINVAL;
}
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)
mark_tbl = rte_zmalloc("ulp_rx_mark_tbl_ptr",
sizeof(struct bnxt_ulp_mark_tbl), 0);
if (!mark_tbl)
@@
-182,10
+188,8
@@
ulp_mark_db_mark_get(struct bnxt_ulp_context *ctxt,
return -EINVAL;
mtbl = bnxt_ulp_cntxt_ptr2_mark_db_get(ctxt);
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;
return -EINVAL;
- }
idx = ulp_mark_db_idx_get(is_gfid, fid, mtbl);
idx = ulp_mark_db_idx_get(is_gfid, fid, mtbl);