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>
This commit is contained in:
Родитель
8ae2473842
Коммит
098286ff93
|
@ -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;
|
||||
|
|
|
@ -67,6 +67,14 @@ struct bnxt_en_dev {
|
|||
#define BNXT_EN_FLAG_ULP_STOPPED 0x8
|
||||
const struct bnxt_en_ops *en_ops;
|
||||
struct bnxt_ulp ulp_tbl[BNXT_MAX_ULP];
|
||||
int l2_db_size; /* Doorbell BAR size in
|
||||
* bytes mapped by L2
|
||||
* driver.
|
||||
*/
|
||||
int l2_db_size_nc; /* Doorbell BAR size in
|
||||
* bytes mapped as non-
|
||||
* cacheable.
|
||||
*/
|
||||
};
|
||||
|
||||
struct bnxt_en_ops {
|
||||
|
|
Загрузка…
Ссылка в новой задаче