Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159008
b: refs/heads/master
c: ed9e352
h: refs/heads/master
v: v3
  • Loading branch information
Andy Grover authored and David S. Miller committed Jul 20, 2009
1 parent 0fbb73e commit b24b9d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 404bb72a56e553febe1055f98347a7a3e3145759
refs/heads/master: ed9e352a350ec85eb354046e0db6a86019620f53
13 changes: 4 additions & 9 deletions trunk/net/rds/iw.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,10 @@ void rds_iw_add_one(struct ib_device *device)
goto free_dev;

if (!rds_iwdev->dma_local_lkey) {
if (device->node_type != RDMA_NODE_RNIC) {
rds_iwdev->mr = ib_get_dma_mr(rds_iwdev->pd,
IB_ACCESS_LOCAL_WRITE);
} else {
rds_iwdev->mr = ib_get_dma_mr(rds_iwdev->pd,
IB_ACCESS_REMOTE_READ |
IB_ACCESS_REMOTE_WRITE |
IB_ACCESS_LOCAL_WRITE);
}
rds_iwdev->mr = ib_get_dma_mr(rds_iwdev->pd,
IB_ACCESS_REMOTE_READ |
IB_ACCESS_REMOTE_WRITE |
IB_ACCESS_LOCAL_WRITE);
if (IS_ERR(rds_iwdev->mr))
goto err_pd;
} else
Expand Down

0 comments on commit b24b9d1

Please sign in to comment.