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: fix meter policy flow match item
[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
8b8dccf
..
271520e
100644
(file)
--- a/
drivers/net/bnxt/tf_ulp/ulp_mark_mgr.c
+++ b/
drivers/net/bnxt/tf_ulp/ulp_mark_mgr.c
@@
-1,5
+1,5
@@
/* SPDX-License-Identifier: BSD-3-Clause
/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2014-202
0
Broadcom
+ * Copyright(c) 2014-202
1
Broadcom
* All rights reserved.
*/
* All rights reserved.
*/
@@
-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);