From: Nithin Dabilpuram <[email protected]> update channel mask for cn20k platform as well.
Signed-off-by: Nithin Dabilpuram <[email protected]> --- 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

