OSDN Git Service

octeontx2-pf: offload DMAC filters to CGX/RPM block
authorHariprasad Kelam <hkelam@marvell.com>
Wed, 30 Jun 2021 10:10:59 +0000 (15:40 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jul 2021 20:02:38 +0000 (13:02 -0700)
commit79d2be385e9eabe4403eb85bcc7d3efc6b936a76
tree6f5d91c517f6d78b884506ac9bb0d409ef7ea966
parentdbc52debf95f8f902f74309e7ae0de38e1ed4e4c
octeontx2-pf: offload DMAC filters to CGX/RPM block

DMAC filtering can be achieved by either NPC MCAM rules or
CGX/RPM MAC filters. Currently we are achieving this by NPC
MCAM rules. This patch offloads DMAC filters to CGX/RPM MAC
filters instead of NPC MCAM rules. Offloading DMAC filter to
CGX/RPM block helps in reducing traffic to NPC block and
save MCAM rules

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>
drivers/net/ethernet/marvell/octeontx2/nic/Makefile
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
drivers/net/ethernet/marvell/octeontx2/nic/otx2_dmac_flt.c [new file with mode: 0644]
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c