bnxt_en: Add support for L2 doorbell size.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 4 May 2020 08:50:37 +0000 (04:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2020 17:44:11 +0000 (10:44 -0700)
commit8ae2473842bdbb95bfb451b130dad6a650b3ad1b
tree7bb9dc3d78270635d2b1b5fdf402cd3f44f5b148
parente93b30d56fc0670e508456afc59f16d70fe1f83f
bnxt_en: Add support for L2 doorbell size.

Read the L2 doorbell size from the firmware and only map the portion
of the doorbell BAR for L2 use.  This will leave the remaining doorbell
BAR available for the RoCE driver to use.  The RoCE driver can map
the remaining portion as write-combining to support the push feature.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h