RDMA/bnxt_re: Restrict the max_gids to 256
authorNaresh Kumar PBS <nareshkumar.pbs@broadcom.com>
Mon, 24 Aug 2020 18:14:35 +0000 (11:14 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 27 Aug 2020 12:30:44 +0000 (09:30 -0300)
commit847b97887ed4569968d5b9a740f2334abca9f99a
tree505079007d6b903d785015cf18860945cb91fc05
parentf86b31c6a28f06eed3f6d9dc958079853b0792f1
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>
drivers/infiniband/hw/bnxt_re/qplib_sp.c
drivers/infiniband/hw/bnxt_re/qplib_sp.h