]> 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)
commitb76de554cb8891edb0ab9cfbe948e8c19517b6a9
tree7ca12949a8202ef2f79d1fcce8ea422efc8e8702
parent2f59fb56545ff181b28dd37e857b05a391eec7f3
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