diff options
author | Christoph Hellwig <hch@lst.de> | 2016-02-24 19:24:05 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-03-10 21:48:44 -0800 |
commit | 5adabdd122e471fe978d49471624bab08b5373a7 (patch) | |
tree | 83ae3d0ff9c3263ad1c347419800397d7ed5ccff /drivers/infiniband/ulp/isert/ib_isert.h | |
parent | ed1083b251f0ed992e90739994c31cffa597abfa (diff) | |
download | op-kernel-dev-5adabdd122e471fe978d49471624bab08b5373a7.zip op-kernel-dev-5adabdd122e471fe978d49471624bab08b5373a7.tar.gz |
iser-target: Split and properly type the login buffer
The login receive buffer is used as a iser_rx_desc, so type it as such
in struct isert_conn and allocate the exactly right space for it. The
TX buffer is moved to a separate variable and properly sized as well.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/infiniband/ulp/isert/ib_isert.h')
-rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.h b/drivers/infiniband/ulp/isert/ib_isert.h index 2ef2d6c..6c2c5fa 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.h +++ b/drivers/infiniband/ulp/isert/ib_isert.h @@ -182,8 +182,7 @@ struct isert_conn { u32 initiator_depth; bool pi_support; u32 max_sge; - char *login_buf; - char *login_req_buf; + struct iser_rx_desc *login_req_buf; char *login_rsp_buf; u64 login_req_dma; int login_req_len; |