octeontx2-af: Enable Exact match flag in kex profile
authorRatheesh Kannoth <rkannoth@marvell.com>
Fri, 8 Jul 2022 04:41:51 +0000 (10:11 +0530)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 Jul 2022 17:52:14 +0000 (10:52 -0700)
Enabled EXACT match flag in Kex default profile. Since
there is no space in key, NPC_PARSE_NIBBLE_ERRCODE
is removed

Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h

index 4180376fa676366f037573fe03ca46519667b039..a820bad3abb25d4d4c076806f8da305d900efdf5 100644 (file)
 
 /* Rx parse key extract nibble enable */
 #define NPC_PARSE_NIBBLE_INTF_RX       (NPC_PARSE_NIBBLE_CHAN | \
-                                        NPC_PARSE_NIBBLE_ERRCODE | \
+                                        NPC_PARSE_NIBBLE_L2L3_BCAST | \
                                         NPC_PARSE_NIBBLE_LA_LTYPE | \
                                         NPC_PARSE_NIBBLE_LB_LTYPE | \
                                         NPC_PARSE_NIBBLE_LC_LTYPE | \
@@ -15123,7 +15123,8 @@ static struct npc_mcam_kex npc_mkex_default = {
        .kpu_version = NPC_KPU_PROFILE_VER,
        .keyx_cfg = {
                /* nibble: LA..LE (ltype only) + Error code + Channel */
-               [NIX_INTF_RX] = ((u64)NPC_MCAM_KEY_X2 << 32) | NPC_PARSE_NIBBLE_INTF_RX,
+               [NIX_INTF_RX] = ((u64)NPC_MCAM_KEY_X2 << 32) | NPC_PARSE_NIBBLE_INTF_RX |
+                                               (u64)NPC_EXACT_NIBBLE_HIT,
                /* nibble: LA..LE (ltype only) */
                [NIX_INTF_TX] = ((u64)NPC_MCAM_KEY_X2 << 32) | NPC_PARSE_NIBBLE_INTF_TX,
        },