Skip to content

Commit ce86c2a

Browse files
Subbaraya Sundeepdavem330
authored andcommitted
octeontx2-af: Remove TOS field from MKEX TX
The MKEX profile describes what packet fields need to be extracted from the input packet and how to place those packet fields in the output key for MCAM matching. The MKEX profile can be in a way where higher layer packet fields can overwrite lower layer packet fields in output MCAM Key. Hence MKEX profile is always ensured that there are no overlaps between any of the layers. But the commit 4200691 ("octeontx2-af: cleanup KPU config data") introduced TX TOS field which overlaps with DMAC in MCAM key. This led to AF driver returning error when TX rule is installed with DMAC as match criteria since DMAC gets overwritten and cannot be supported. This patch fixes the issue by removing TOS field from MKEX TX profile. Fixes: 4200691 ("octeontx2-af: cleanup KPU config data") Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com> Signed-off-by: Hariprasad Kelam <hkelam@marvell.com> Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f788409 commit ce86c2a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13499,8 +13499,6 @@ static struct npc_mcam_kex npc_mkex_default = {
1349913499
[NPC_LT_LC_IP] = {
1350013500
/* SIP+DIP: 8 bytes, KW2[63:0] */
1350113501
KEX_LD_CFG(0x07, 0xc, 0x1, 0x0, 0x10),
13502-
/* TOS: 1 byte, KW1[63:56] */
13503-
KEX_LD_CFG(0x0, 0x1, 0x1, 0x0, 0xf),
1350413502
},
1350513503
/* Layer C: IPv6 */
1350613504
[NPC_LT_LC_IP6] = {

0 commit comments

Comments
 (0)