[PATCH 04/14] common/cnxk: update channel mask for cn20k
Rahul Bhansali
rbhansali at marvell.com
Thu Sep 17 09:10:06 CEST 2026
From: Nithin Dabilpuram <ndabilpuram at marvell.com>
update channel mask for cn20k platform as well.
Signed-off-by: Nithin Dabilpuram <ndabilpuram at marvell.com>
---
drivers/common/cnxk/roc_npc_mcam.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/common/cnxk/roc_npc_mcam.c b/drivers/common/cnxk/roc_npc_mcam.c
index 34665f1bc3..613a443c7c 100644
--- a/drivers/common/cnxk/roc_npc_mcam.c
+++ b/drivers/common/cnxk/roc_npc_mcam.c
@@ -761,7 +761,7 @@ npc_mcam_set_channel(struct roc_npc_flow *flow, struct npc_cn20k_mcam_write_entr
chan = channel;
mask = chan_mask;
- if (roc_model_runtime_is_cn10k()) {
+ if (roc_model_runtime_is_cn10k() || roc_model_is_cn20k()) {
if (is_second_pass) {
chan = (channel | NIX_CHAN_CPT_CH_START);
mask = (chan_mask | NIX_CHAN_CPT_CH_START);
--
2.34.1
More information about the dev
mailing list