]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-pf: Cleanup flow rule management
authorSunil Goutham <sgoutham@marvell.com>
Sun, 13 Jun 2021 10:53:05 +0000 (16:23 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jun 2021 19:31:41 +0000 (12:31 -0700)
commita0a0fe19b8ca5f08e6055c67408daf081240d1b2
tree7ca12949a8202ef2f79d1fcce8ea422efc8e8702
parent3f8d61eadde68ad4d928c0c836f5e2da591a96da
octeontx2-pf: Cleanup flow rule management

Current MCAM allocation scheme allocates a single lot of
MCAM entries for ntuple filters, unicast filters and VF VLAN
rules. This patch attempts to cleanup this logic by segregating
MCAM rule allocation and management for Ntuple rules and unicast,
VF VLAN rules. This segregation will result in reusing most of
the logic for supporting ntuple filters for VF devices.

Also added debug messages for MCAM entry allocation failures.

Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c