diff options
author | Subbaraya Sundeep <sbhatta@marvell.com> | 2020-10-29 08:15:43 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-01 00:16:46 +0300 |
commit | c5a73b632b901c4b07d156bb8a8a2c5517678f35 (patch) | |
tree | 63825bb3c2628c1ad396f7d5447d0c4c56f45db0 /drivers/net/ethernet/marvell/octeontx2/af/rvu.h | |
parent | 221f3dff2999de4c7599a83d6c53eaf668699d33 (diff) | |
download | linux-c5a73b632b901c4b07d156bb8a8a2c5517678f35.tar.xz |
octeontx2-af: Map NIX block from CGX connection
Firmware configures NIX block mapping for all CGXs
to achieve maximum throughput. This patch reads
the configuration and create mapping between RVU
PF and NIX blocks. And for LBK VFs assign NIX0 for
even numbered VFs and NIX1 for odd numbered VFs.
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Rakesh Babu <rsaladi2@marvell.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/marvell/octeontx2/af/rvu.h')
-rw-r--r-- | drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu.h b/drivers/net/ethernet/marvell/octeontx2/af/rvu.h index a419075a9328..5d0815bd9a81 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu.h +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu.h @@ -184,6 +184,8 @@ struct rvu_pfvf { bool cgx_in_use; /* this PF/VF using CGX? */ int cgx_users; /* number of cgx users - used only by PFs */ + + u8 nix_blkaddr; /* BLKADDR_NIX0/1 assigned to this PF */ }; struct nix_txsch { |