Skip to content

Commit 61220e0

Browse files
chandramohan-akulajgunthorpe
authored andcommitted
bnxt_en: Share the bar0 address with the RoCE driver
Add a parameter in the bnxt_en_dev structure to share the bar0 address with RoCE driver. Link: https://lore.kernel.org/r/1689742977-9128-3-git-send-email-selvin.xavier@broadcom.com CC: Michael Chan <michael.chan@broadcom.com> Signed-off-by: Chandramohan Akula <chandramohan.akula@broadcom.com> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent cf1694f commit 61220e0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ static void bnxt_set_edev_info(struct bnxt_en_dev *edev, struct bnxt *bp)
345345
edev->hw_ring_stats_size = bp->hw_ring_stats_size;
346346
edev->pf_port_id = bp->pf.port_id;
347347
edev->en_state = bp->state;
348-
348+
edev->bar0 = bp->bar0;
349349
edev->ulp_tbl->msix_requested = bnxt_get_ulp_msix_num(bp);
350350
}
351351

drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ struct bnxt_en_dev {
8181
* mode only. Will be
8282
* updated in resume.
8383
*/
84+
void __iomem *bar0;
8485
};
8586

8687
static inline bool bnxt_ulp_registered(struct bnxt_en_dev *edev)

0 commit comments

Comments
 (0)