isert: Fix discovery and login with actual 8192 bytes of data

Signed-off-by: Yan Burman <yanb@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6003 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Yan Burman
2015-01-28 12:16:15 +00:00
parent 4a8b416ff8
commit 0ce1128b19
3 changed files with 6 additions and 4 deletions
+2
View File
@@ -58,6 +58,8 @@ struct isert_hdr {
#define ISER_HDRS_SZ (sizeof(struct isert_hdr) + sizeof(struct iscsi_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
+3 -3
View File
@@ -1013,7 +1013,7 @@ static int isert_conn_qp_create(struct isert_connection *isert_conn)
WARN_ON(isert_conn->max_sge < 1);
qp_attr.cap.max_send_sge = isert_conn->max_sge;
qp_attr.cap.max_recv_sge = 2;
qp_attr.cap.max_recv_sge = 3;
qp_attr.sq_sig_type = IB_SIGNAL_REQ_WR;
qp_attr.qp_type = IB_QPT_RC;
@@ -1082,7 +1082,7 @@ static struct isert_connection *isert_conn_create(struct rdma_cm_id *cm_id,
spin_lock_init(&isert_conn->post_recv_lock);
isert_conn->login_req_pdu = isert_rx_pdu_alloc(isert_conn,
ISCSI_LOGIN_MAX_RDSL);
ISER_MAX_LOGIN_RDSL);
if (unlikely(!isert_conn->login_req_pdu)) {
pr_err("Failed to init login req rx pdu\n");
err = -ENOMEM;
@@ -1090,7 +1090,7 @@ static struct isert_connection *isert_conn_create(struct rdma_cm_id *cm_id,
}
isert_conn->login_rsp_pdu = isert_tx_pdu_alloc(isert_conn,
ISCSI_LOGIN_MAX_RDSL);
ISER_MAX_LOGIN_RDSL);
if (unlikely(!isert_conn->login_rsp_pdu)) {
pr_err("Failed to init login rsp tx pdu\n");
err = -ENOMEM;
+1 -1
View File
@@ -112,7 +112,7 @@ struct isert_conn_dev {
size_t write_len;
char *write_buf;
void *sg_virt;
struct page *pages[DIV_ROUND_UP(ISCSI_LOGIN_MAX_RDSL, PAGE_SIZE)];
struct page *pages[DIV_ROUND_UP(ISER_MAX_LOGIN_RDSL, PAGE_SIZE)];
enum isert_conn_dev_state state;
int is_discovery;
struct timer_list tmo_timer;