]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit74c6a353ef8d9fb5ec4bea80c81be620ac907243
treecc2064b4b4b3359e9fb35c450f4ce703fac402ef
parent303cf7fa95e9c028e9e18b03c52189b840c14d76
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