提交 13bce482 编写于 作者: J Jenny Derzhavetz 提交者: Doug Ledford

IB/isert: Declare correct flags when accepting a connection

iser target does not support zero based virtual addresses and
send with invalidate, so it should declare that it doesn't.
Signed-off-by: NJenny Derzhavetz <jennyf@mellanox.com>
Signed-off-by: NSagi Grimberg <sagig@mellanox.com>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 c6494153
...@@ -3072,12 +3072,18 @@ isert_rdma_accept(struct isert_conn *isert_conn) ...@@ -3072,12 +3072,18 @@ isert_rdma_accept(struct isert_conn *isert_conn)
struct rdma_cm_id *cm_id = isert_conn->cm_id; struct rdma_cm_id *cm_id = isert_conn->cm_id;
struct rdma_conn_param cp; struct rdma_conn_param cp;
int ret; int ret;
struct iser_cm_hdr rsp_hdr;
memset(&cp, 0, sizeof(struct rdma_conn_param)); memset(&cp, 0, sizeof(struct rdma_conn_param));
cp.initiator_depth = isert_conn->initiator_depth; cp.initiator_depth = isert_conn->initiator_depth;
cp.retry_count = 7; cp.retry_count = 7;
cp.rnr_retry_count = 7; cp.rnr_retry_count = 7;
memset(&rsp_hdr, 0, sizeof(rsp_hdr));
rsp_hdr.flags = (ISERT_ZBVA_NOT_USED | ISERT_SEND_W_INV_NOT_USED);
cp.private_data = (void *)&rsp_hdr;
cp.private_data_len = sizeof(rsp_hdr);
ret = rdma_accept(cm_id, &cp); ret = rdma_accept(cm_id, &cp);
if (ret) { if (ret) {
isert_err("rdma_accept() failed with: %d\n", ret); isert_err("rdma_accept() failed with: %d\n", ret);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册