]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45f8908dd506857b8bb179d9446bd0015ba21c6e
tree4ff891b215592ffa003dc430a34597f96d4d1084
parent0bedf57ff1b3cdc912074d24b833af7c175f9c71
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