octeontx2-af: Scan blocks for LFs provisioned to PF/VF
authorSunil Goutham <sgoutham@marvell.com>
Wed, 10 Oct 2018 12:44:27 +0000 (18:14 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Oct 2018 17:06:02 +0000 (10:06 -0700)
commit114a767e8b24bf5d5be5101c1713ff2eb0149657
treecc2064b4b4b3359e9fb35c450f4ce703fac402ef
parent1f15462539829cd05510c053538aad27a8f1fac8
octeontx2-af: Scan blocks for LFs provisioned to PF/VF

Scan all RVU blocks to find any 'LF to RVU PF/VF' mapping done by
low level firmware. If found any, mark them as used in respective
block's LF bitmap and also save mapped PF/VF's PF_FUNC info.

This is done to avoid reattaching a block LF to a different RVU PF/VF.

Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h