diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2015-11-04 10:50:31 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2015-12-11 14:10:50 -0800 |
commit | 0f512b34c637db18cd0cf27a467acd173401209d (patch) | |
tree | dbf70bf95516bed2aa68748150614b884ae5ee42 /drivers/infiniband/ulp/iser/iser_verbs.c | |
parent | 1dc7b1f10dcbbaf875a0770b2b26d63bc326d92a (diff) | |
download | linux-stable-0f512b34c637db18cd0cf27a467acd173401209d.tar.gz linux-stable-0f512b34c637db18cd0cf27a467acd173401209d.tar.bz2 linux-stable-0f512b34c637db18cd0cf27a467acd173401209d.zip |
IB/iser: Use a dedicated descriptor for login
We'll need it later with the new CQ abstraction. also switch
login bufs to void pointers.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/infiniband/ulp/iser/iser_verbs.c')
-rw-r--r-- | drivers/infiniband/ulp/iser/iser_verbs.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_verbs.c b/drivers/infiniband/ulp/iser/iser_verbs.c index a93070210109..7eccfa7e82f6 100644 --- a/drivers/infiniband/ulp/iser/iser_verbs.c +++ b/drivers/infiniband/ulp/iser/iser_verbs.c @@ -1047,17 +1047,17 @@ int iser_post_recvl(struct iser_conn *iser_conn) { struct ib_recv_wr rx_wr, *rx_wr_failed; struct ib_conn *ib_conn = &iser_conn->ib_conn; - struct ib_sge sge; + struct iser_login_desc *desc = &iser_conn->login_desc; int ib_ret; - sge.addr = iser_conn->login_resp_dma; - sge.length = ISER_RX_LOGIN_SIZE; - sge.lkey = ib_conn->device->pd->local_dma_lkey; + desc->sge.addr = desc->rsp_dma; + desc->sge.length = ISER_RX_LOGIN_SIZE; + desc->sge.lkey = ib_conn->device->pd->local_dma_lkey; - rx_wr.wr_id = (uintptr_t)iser_conn->login_resp_buf; - rx_wr.sg_list = &sge; + rx_wr.wr_id = (uintptr_t)desc; + rx_wr.sg_list = &desc->sge; rx_wr.num_sge = 1; - rx_wr.next = NULL; + rx_wr.next = NULL; ib_conn->post_recv_buf_count++; ib_ret = ib_post_recv(ib_conn->qp, &rx_wr, &rx_wr_failed); |