diff options
author | Daniel Jurgens <danielj@mellanox.com> | 2017-05-19 15:48:51 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-05-23 10:24:17 -0400 |
commit | 883c71feaf2e810e0331cf780c738cbb09e93b58 (patch) | |
tree | 35c4bf3f56bce25fd38c2ccab50eaa08ff9607ad /include/rdma | |
parent | 270e8573145a26de924e2dc644596332d400445b (diff) |
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>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_verbs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index ba8314ec5768..9dc4e7e0aba4 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -1891,6 +1891,7 @@ enum ib_mad_result { }; struct ib_port_cache { + u64 subnet_prefix; struct ib_pkey_cache *pkey; struct ib_gid_table *gid; u8 lmc; |