diff --git a/iscsi-scst/kernel/isert-scst/iser_hdr.h b/iscsi-scst/kernel/isert-scst/iser_hdr.h index 308bbf14a..4cfd74a94 100644 --- a/iscsi-scst/kernel/isert-scst/iser_hdr.h +++ b/iscsi-scst/kernel/isert-scst/iser_hdr.h @@ -60,5 +60,13 @@ struct isert_hdr { #define ISER_MAX_LOGIN_RDSL (ISCSI_LOGIN_MAX_RDSL + ISER_HDRS_SZ) +#define ISER_ZBVA_NOT_SUPPORTED 0x80 +#define ISER_SEND_W_INV_NOT_SUPPORTED 0x40 + +struct isert_cm_hdr { + u8 flags; + u8 rsvd[3]; +} __packed; + #endif diff --git a/iscsi-scst/kernel/isert-scst/iser_rdma.c b/iscsi-scst/kernel/isert-scst/iser_rdma.c index 1596fb56a..3756120a7 100644 --- a/iscsi-scst/kernel/isert-scst/iser_rdma.c +++ b/iscsi-scst/kernel/isert-scst/iser_rdma.c @@ -1234,6 +1234,7 @@ static int isert_cm_conn_req_handler(struct rdma_cm_id *cm_id, struct isert_connection *isert_conn; struct rdma_conn_param *ini_conn_param; struct rdma_conn_param tgt_conn_param; + struct isert_cm_hdr cm_hdr = { 0 }; int err; TRACE_ENTRY(); @@ -1281,6 +1282,10 @@ static int isert_cm_conn_req_handler(struct rdma_cm_id *cm_id, if (tgt_conn_param.initiator_depth > ini_conn_param->initiator_depth) tgt_conn_param.initiator_depth = ini_conn_param->initiator_depth; + tgt_conn_param.private_data_len = sizeof(cm_hdr); + tgt_conn_param.private_data = &cm_hdr; + cm_hdr.flags = ISER_ZBVA_NOT_SUPPORTED | ISER_SEND_W_INV_NOT_SUPPORTED; + err = rdma_accept(cm_id, &tgt_conn_param); if (unlikely(err)) { pr_err("Failed to accept conn request, err:%d\n", err);