diff options
author | Naresh Kumar PBS <nareshkumar.pbs@broadcom.com> | 2020-08-24 11:14:35 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2020-08-27 09:30:44 -0300 |
commit | 847b97887ed4569968d5b9a740f2334abca9f99a (patch) | |
tree | 505079007d6b903d785015cf18860945cb91fc05 /drivers/infiniband/hw/bnxt_re/qplib_sp.h | |
parent | f86b31c6a28f06eed3f6d9dc958079853b0792f1 (diff) | |
download | linux-847b97887ed4569968d5b9a740f2334abca9f99a.tar.gz linux-847b97887ed4569968d5b9a740f2334abca9f99a.tar.bz2 linux-847b97887ed4569968d5b9a740f2334abca9f99a.zip |
RDMA/bnxt_re: Restrict the max_gids to 256
Some adapters report more than 256 gid entries. Restrict it to 256 for
now.
Fixes: 1ac5a4047975("RDMA/bnxt_re: Add bnxt_re RoCE driver")
Link: https://lore.kernel.org/r/1598292876-26529-6-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Naresh Kumar PBS <nareshkumar.pbs@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/bnxt_re/qplib_sp.h')
-rw-r--r-- | drivers/infiniband/hw/bnxt_re/qplib_sp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/bnxt_re/qplib_sp.h b/drivers/infiniband/hw/bnxt_re/qplib_sp.h index 6404f0da1051..967890cd81f2 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_sp.h +++ b/drivers/infiniband/hw/bnxt_re/qplib_sp.h @@ -47,6 +47,7 @@ struct bnxt_qplib_dev_attr { #define FW_VER_ARR_LEN 4 u8 fw_ver[FW_VER_ARR_LEN]; +#define BNXT_QPLIB_NUM_GIDS_SUPPORTED 256 u16 max_sgid; u16 max_mrw; u32 max_qp; |