OSDN Git Service

octeontx2-pf: Handle VF function level reset
authorGeetha sowjanya <gakula@marvell.com>
Fri, 20 Mar 2020 18:57:20 +0000 (00:27 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2020 04:11:43 +0000 (21:11 -0700)
commit547d20f10dc57eaa5b95b50682fc9beecdf670ad
tree4ff891b215592ffa003dc430a34597f96d4d1084
parentd424b6c024157fe04e6530757b8b4a0e48bbe389
octeontx2-pf: Handle VF 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 cleanups all resources attached
to that VF.

Also handled IRQs triggered when master enable bit is cleared
or set for VFs. This handler just clears the transaction pending
ie TRPEND bit.

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