RDMA/bnxt_re: Remove dynamic pkey table
authorKamal Heib <kamalheib1@gmail.com>
Thu, 25 Nov 2021 03:36:15 +0000 (05:36 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 25 Nov 2021 17:35:51 +0000 (13:35 -0400)
commit0e938533d96d656764fbd3fe0e2578873ec6d3e6
tree0a964f63bd29b654b2239fb60d76cbafbef54327
parent0abfc79d724102ec91287e3e77ac8115fcf3ffe9
RDMA/bnxt_re: Remove dynamic pkey table

The RoCE spec requires RoCE devices to support only the default pkey.
However the bnxt_re driver maintains a 0xFFFF entry pkey table and uses
only the first entry. Remove the pkey table and hard code a table of
length one hard wired with the default pkey.

Link: https://lore.kernel.org/r/20211125033615.483750-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Devesh Sharma <devesh.s.sharma@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/qplib_fp.c
drivers/infiniband/hw/bnxt_re/qplib_res.c
drivers/infiniband/hw/bnxt_re/qplib_res.h
drivers/infiniband/hw/bnxt_re/qplib_sp.c
drivers/infiniband/hw/bnxt_re/qplib_sp.h