Skip to content
Snippets Groups Projects
Commit aee51224 authored by Vidya's avatar Vidya Committed by David S. Miller
Browse files

octeontx2-af: configure npc for cn10k to allow packets from cpt


On CN10K, the higher bits in the channel number represents the CPT
channel number. Mask out these higher bits in the npc configuration
to allow packets from cpt for parsing.

Signed-off-by: default avatarVidya <vvelumuri@marvell.com>
Signed-off-by: default avatarSunil Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarSubbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 99b8e547
No related branches found
No related tags found
No related merge requests found
...@@ -724,7 +724,17 @@ void rvu_npc_install_promisc_entry(struct rvu *rvu, u16 pcifunc, ...@@ -724,7 +724,17 @@ void rvu_npc_install_promisc_entry(struct rvu *rvu, u16 pcifunc,
action.index = pfvf->promisc_mce_idx; action.index = pfvf->promisc_mce_idx;
} }
req.chan_mask = 0xFFFU; /* For cn10k the upper two bits of the channel number are
* cpt channel number. with masking out these bits in the
* mcam entry, same entry used for NIX will allow packets
* received from cpt for parsing.
*/
if (!is_rvu_otx2(rvu)) {
req.chan_mask = NIX_CHAN_CPT_X2P_MASK;
} else {
req.chan_mask = 0xFFFU;
}
if (chan_cnt > 1) { if (chan_cnt > 1) {
if (!is_power_of_2(chan_cnt)) { if (!is_power_of_2(chan_cnt)) {
dev_err(rvu->dev, dev_err(rvu->dev,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment