aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt.h
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2020-05-04 04:50:37 -0400
committerDavid S. Miller <davem@davemloft.net>2020-05-04 10:44:11 -0700
commit8ae2473842bdbb95bfb451b130dad6a650b3ad1b (patch)
tree7bb9dc3d78270635d2b1b5fdf402cd3f44f5b148 /drivers/net/ethernet/broadcom/bnxt/bnxt.h
parentbnxt_en: Set the db_offset on 57500 chips for the RDMA MSIX entries. (diff)
downloadwireguard-linux-8ae2473842bdbb95bfb451b130dad6a650b3ad1b.tar.xz
wireguard-linux-8ae2473842bdbb95bfb451b130dad6a650b3ad1b.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/broadcom/bnxt/bnxt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h
index a3b80409c25e..6114b0a576ff 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h
@@ -1820,6 +1820,7 @@ struct bnxt {
/* ensure atomic 64-bit doorbell writes on 32-bit systems. */
spinlock_t db_lock;
#endif
+ int db_size;
#define BNXT_NTP_FLTR_MAX_FLTR 4096
#define BNXT_NTP_FLTR_HASH_SIZE 512