RDMA/rxe: Remove pkey table
authorKamal Heib <kamalheib1@gmail.com>
Tue, 21 Jul 2020 10:16:18 +0000 (13:16 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 31 Jul 2020 19:17:56 +0000 (16:17 -0300)
commit76251e15ea73898b62ed0da3210189e50e1fe3c9
treefeafb95183f04bc25074b574a535888ed0ab7e42
parent928da37a229f344424ffc89c9a58feb2368bb018
RDMA/rxe: Remove pkey table

The RoCE spec requires RoCE devices to support only the default pkey.
However the rxe driver maintains a 64 enties 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. Replace all checks of the pkey_table
with a comparison to the default_pkey instead.

Link: https://lore.kernel.org/r/20200721101618.686110-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe.c
drivers/infiniband/sw/rxe/rxe_param.h
drivers/infiniband/sw/rxe/rxe_recv.c
drivers/infiniband/sw/rxe/rxe_req.c
drivers/infiniband/sw/rxe/rxe_verbs.c
drivers/infiniband/sw/rxe/rxe_verbs.h