rds/ib: Remove ib_get_dma_mr calls
The pd now has a local_dma_lkey member which completely replaces ib_get_dma_mr, use it instead. Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

committed by
Doug Ledford

parent
2f31fa881f
commit
e5580242aa
@@ -62,12 +62,12 @@ void rds_ib_recv_init_ring(struct rds_ib_connection *ic)
|
||||
sge = &recv->r_sge[0];
|
||||
sge->addr = ic->i_recv_hdrs_dma + (i * sizeof(struct rds_header));
|
||||
sge->length = sizeof(struct rds_header);
|
||||
sge->lkey = ic->i_mr->lkey;
|
||||
sge->lkey = ic->i_pd->local_dma_lkey;
|
||||
|
||||
sge = &recv->r_sge[1];
|
||||
sge->addr = 0;
|
||||
sge->length = RDS_FRAG_SIZE;
|
||||
sge->lkey = ic->i_mr->lkey;
|
||||
sge->lkey = ic->i_pd->local_dma_lkey;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -520,7 +520,7 @@ void rds_ib_recv_init_ack(struct rds_ib_connection *ic)
|
||||
|
||||
sge->addr = ic->i_ack_dma;
|
||||
sge->length = sizeof(struct rds_header);
|
||||
sge->lkey = ic->i_mr->lkey;
|
||||
sge->lkey = ic->i_pd->local_dma_lkey;
|
||||
|
||||
wr->sg_list = sge;
|
||||
wr->num_sge = 1;
|
||||
|
Reference in New Issue
Block a user