]> 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)
commit1fcf90000ee64dc34d662fddc758d0fe984a1030
tree4ff891b215592ffa003dc430a34597f96d4d1084
parentbee1c577226cf922156a026d3c21e83a70a9d22a
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