]> git.droids-corp.org - dpdk.git/commit
common/cnxk: fix channel number setting in MCAM entries
authorSatheesh Paul <psatheesh@marvell.com>
Mon, 2 May 2022 08:47:30 +0000 (14:17 +0530)
committerJerin Jacob <jerinj@marvell.com>
Mon, 13 Jun 2022 07:29:24 +0000 (09:29 +0200)
commit670692191a938fb8aaa887aa268437aacc51de7d
treed5133f65637a271c74b68dfbc4b8a53bf75943bd
parented665c3e6aafae95361a16653f3d25ec5930bb75
common/cnxk: fix channel number setting in MCAM entries

Adding changes to accommodate the following requirements
while masking the channel number.
1. For CN10K device, channel number should not be masked
   for first pass rules with RTE_FLOW_ACTION_TYPE_SECURITY
   action. And channel number should be masked for all
   other flow rules.
2. For CN9K device channel number should not be masked.

Fixes: 4968b362b639 ("common/cnxk: support CPT second pass flow rules")
Cc: stable@dpdk.org
Signed-off-by: Satheesh Paul <psatheesh@marvell.com>
Reviewed-by: Kiran Kumar K <kirankumark@marvell.com>
drivers/common/cnxk/roc_npc_mcam.c