RDMA/rxe: Let pools support both keys and indices
authorBob Pearson <rpearsonhpe@gmail.com>
Wed, 16 Dec 2020 23:15:45 +0000 (17:15 -0600)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 12 Jan 2021 20:35:38 +0000 (16:35 -0400)
commitc06ee3a0147e016b6127eb25432739a4f4b151f5
treefc99124621d8e092ba217a5e372349b05db5f955
parent1d11c1b7f9ff28196d66d995f11fcf3101301fe9
RDMA/rxe: Let pools support both keys and indices

Allow both indices and keys to exist for objects in pools.  Previously you
were limited to one or the other.

This is required for later implementing rxe memory windows.

Link: https://lore.kernel.org/r/20201216231550.27224-3-rpearson@hpe.com
Signed-off-by: Bob Pearson <rpearson@hpe.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_pool.c
drivers/infiniband/sw/rxe/rxe_pool.h