OSDN Git Service

octeontx2-af: Exact match support
authorRatheesh Kannoth <rkannoth@marvell.com>
Fri, 8 Jul 2022 04:41:41 +0000 (10:11 +0530)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 Jul 2022 17:52:12 +0000 (10:52 -0700)
commitb747923afff8c605c658f12fc059ae8041cb0ed4
tree41a7c410f5a21c12191aba663b3df1274ffb8581
parent56d9f5fd22462410bf509d11b026b269031321ac
octeontx2-af: Exact match support

CN10KB silicon has support for exact match table. This table
can be used to match maimum 64 bit value of KPU parsed output.
Hit/non hit in exact match table can be used as a KEX key to
NPC mcam.

This patch makes use of Exact match table to increase number of
DMAC filters supported. NPC  mcam is no more need for each of these
DMAC entries as will be populated in Exact match table.

This patch implements following

1. Initialization of exact match table only for CN10KB.
2. Add/del/update interface function for exact match table.

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