]> 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)
commitb5c76b0e2704f666f62d127839ad452793a0f627
treecc2064b4b4b3359e9fb35c450f4ce703fac402ef
parent5f5fa55e024b9c19450286771a65b77b32123b8a
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