octeontx2-af: Handle CPT function level reset
authorSrujana Challa <schalla@marvell.com>
Tue, 2 Feb 2021 15:27:09 +0000 (20:57 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Feb 2021 01:31:34 +0000 (17:31 -0800)
commitc57c58fd5c4fd288f5aca0970982c9bd547d6288
tree71aef8b5561989bde3c227d6ec3a38b576a88a45
parentb0f60fab7805cb013311ede0127f8abbf1bdc986
octeontx2-af: Handle CPT function level reset

When FLR is initiated for a VF (PCI function level reset),
the parent PF gets a interrupt. PF then sends a message to
admin function (AF), which then cleans up all resources
attached to that VF. This patch adds support to handle
CPT FLR.

Signed-off-by: Narayana Prasad Raju Atherya <pathreya@marvell.com>
Signed-off-by: Suheil Chandran <schandran@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: Srujana Challa <schalla@marvell.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.h