IB/core: IB cache enhancements to support Infiniband security
authorDaniel Jurgens <danielj@mellanox.com>
Fri, 19 May 2017 12:48:51 +0000 (15:48 +0300)
committerPaul Moore <paul@paul-moore.com>
Tue, 23 May 2017 14:24:17 +0000 (10:24 -0400)
commit883c71feaf2e810e0331cf780c738cbb09e93b58
tree35c4bf3f56bce25fd38c2ccab50eaa08ff9607ad
parent270e8573145a26de924e2dc644596332d400445b
IB/core: IB cache enhancements to support Infiniband security

Cache the subnet prefix and add a function to access it. Enforcing
security requires frequent queries of the subnet prefix and the pkeys in
the pkey table.

Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: James Morris <james.l.morris@oracle.com>
Acked-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
drivers/infiniband/core/cache.c
drivers/infiniband/core/core_priv.h
include/rdma/ib_verbs.h