diff options
author | Michael Chan <michael.chan@broadcom.com> | 2020-05-04 04:50:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-04 10:44:11 -0700 |
commit | 098286ff930ca752e4c9295ea65840dd55f5f290 (patch) | |
tree | 4061c29960a2928afa22827b71d97b2aff5f43d7 /drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | |
parent | 8ae2473842bdbb95bfb451b130dad6a650b3ad1b (diff) | |
download | linux-098286ff930ca752e4c9295ea65840dd55f5f290.tar.gz linux-098286ff930ca752e4c9295ea65840dd55f5f290.tar.bz2 linux-098286ff930ca752e4c9295ea65840dd55f5f290.zip |
bnxt_en: Add doorbell information to bnxt_en_dev struct.
The purpose of this is to inform the RDMA driver the size of the doorbell
BAR that the L2 driver has mapped and the portion that is mapped
uncacheable. The unchaeable portion is shared with the RoCE driver.
Any remaining unmapped doorbell BAR can be used by the RDMA driver for
its own purpose. Currently, the entire L2 portion is mapped uncacheable.
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c index 4b40778ac8dd..8c8368c2f335 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c @@ -481,6 +481,8 @@ struct bnxt_en_dev *bnxt_ulp_probe(struct net_device *dev) edev->flags |= BNXT_EN_FLAG_ROCEV2_CAP; edev->net = dev; edev->pdev = bp->pdev; + edev->l2_db_size = bp->db_size; + edev->l2_db_size_nc = bp->db_size; bp->edev = edev; } return bp->edev; |