mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
IB/core: add support to create a unsafe global rkey to ib_create_pd
Instead of exposing ib_get_dma_mr to ULPs and letting them use it more or less unchecked, this moves the capability of creating a global rkey into the RDMA core, where it can be easily audited. It also prints a warning everytime this feature is used as well. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Reviewed-by: Steve Wise <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
50d46335b0
commit
ed082d36a7
18 changed files with 57 additions and 22 deletions
|
|
@ -160,7 +160,7 @@ static void rds_ib_add_one(struct ib_device *device)
|
|||
rds_ibdev->max_responder_resources = device->attrs.max_qp_rd_atom;
|
||||
|
||||
rds_ibdev->dev = device;
|
||||
rds_ibdev->pd = ib_alloc_pd(device);
|
||||
rds_ibdev->pd = ib_alloc_pd(device, 0);
|
||||
if (IS_ERR(rds_ibdev->pd)) {
|
||||
rds_ibdev->pd = NULL;
|
||||
goto put_dev;
|
||||
|
|
|
|||
Loading…
Reference in a new issue