diff options
author | Sunil Goutham <sgoutham@marvell.com> | 2018-10-10 14:44:27 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-10 19:06:02 +0200 |
commit | 114a767e8b24bf5d5be5101c1713ff2eb0149657 (patch) | |
tree | cc2064b4b4b3359e9fb35c450f4ce703fac402ef /drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h | |
parent | octeontx2-af: Convert mbox msg id check to a macro (diff) | |
download | linux-114a767e8b24bf5d5be5101c1713ff2eb0149657.tar.xz linux-114a767e8b24bf5d5be5101c1713ff2eb0149657.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h')
-rw-r--r-- | drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h b/drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h index 4214bc095b27..eb5cd1ecac1a 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h @@ -31,6 +31,22 @@ enum rvu_block_addr_e { BLK_COUNT = 0xfULL, }; +/* RVU Block Type Enumeration */ +enum rvu_block_type_e { + BLKTYPE_RVUM = 0x0, + BLKTYPE_MSIX = 0x1, + BLKTYPE_LMT = 0x2, + BLKTYPE_NIX = 0x3, + BLKTYPE_NPA = 0x4, + BLKTYPE_NPC = 0x5, + BLKTYPE_SSO = 0x6, + BLKTYPE_SSOW = 0x7, + BLKTYPE_TIM = 0x8, + BLKTYPE_CPT = 0x9, + BLKTYPE_NDC = 0xa, + BLKTYPE_MAX = 0xa, +}; + /* RVU Admin function Interrupt Vector Enumeration */ enum rvu_af_int_vec_e { RVU_AF_INT_VEC_POISON = 0x0, |