]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit9917060fc30a40f1ef899dc8c61ae964a9a4407c
tree7ca12949a8202ef2f79d1fcce8ea422efc8e8702
parent2d7ff2d83cac1ca8742aa02cac0516e58e8c65c8
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