Lines Matching defs:login
3 * This file contains the login functions used by the iSCSI Target driver.
40 struct iscsi_login *login;
42 login = kzalloc(sizeof(struct iscsi_login), GFP_KERNEL);
43 if (!login) {
47 conn->login = login;
48 login->conn = conn;
49 login->first_request = 1;
51 login->req_buf = kzalloc(MAX_KEY_VALUE_PAIRS, GFP_KERNEL);
52 if (!login->req_buf) {
57 login->rsp_buf = kzalloc(MAX_KEY_VALUE_PAIRS, GFP_KERNEL);
58 if (!login->rsp_buf) {
63 conn->conn_login = login;
65 return login;
68 kfree(login->req_buf);
70 kfree(login);
121 " version Min/Max 0x%02x/0x%02x, rejecting login.\n",
307 * Initiator Node's ACL once the login has been successfully completed.
391 * Need to send TargetPortalGroupTag back in first login response
529 * the timer if the login is not successful.
549 * Need to send TargetPortalGroupTag back in first login response
571 * By following item 5 in the login table, if we have found
589 * We use the original ExpStatSN sent in the first login request
608 * Else we follow item 4 from the login table in that we have
618 " would exceed MaxConnections %d, login failed.\n",
968 int iscsit_get_login_rx(struct iscsit_conn *conn, struct iscsi_login *login)
973 if (iscsi_login_rx_data(conn, login->req, ISCSI_HDR_LEN) < 0)
976 login_req = (struct iscsi_login_req *)login->req;
986 * login request PDU.
988 if (login->first_request) {
989 login_req = (struct iscsi_login_req *)login->req;
990 login->leading_connection = (!login_req->tsih) ? 1 : 0;
991 login->current_stage = ISCSI_LOGIN_CURRENT_STAGE(login_req->flags);
992 login->version_min = login_req->min_version;
993 login->version_max = login_req->max_version;
994 memcpy(login->isid, login_req->isid, 6);
995 login->cmd_sn = be32_to_cpu(login_req->cmdsn);
996 login->init_task_tag = login_req->itt;
997 login->initial_exp_statsn = be32_to_cpu(login_req->exp_statsn);
998 login->cid = be16_to_cpu(login_req->cid);
999 login->tsih = be16_to_cpu(login_req->tsih);
1002 if (iscsi_target_check_login_request(conn, login) < 0)
1005 memset(login->req_buf, 0, MAX_KEY_VALUE_PAIRS);
1006 if (iscsi_login_rx_data(conn, login->req_buf,
1013 int iscsit_put_login_tx(struct iscsit_conn *conn, struct iscsi_login *login,
1016 if (iscsi_login_tx_data(conn, login->rsp, login->rsp_buf, length) < 0)
1149 * If login negotiation fails check if the Time2Retain timer
1202 struct iscsi_login *login;
1252 login = iscsi_login_init_conn(conn);
1253 if (!login) {
1262 * This will process the first login request + payload..
1264 rc = np->np_transport->iscsit_get_login_rx(conn, login);
1270 buffer = &login->req[0];
1291 pr_debug("Received iSCSI login request from %pISpc on %s Network"
1331 rc = iscsi_target_locate_portal(np, conn, login);
1336 login->zero_tsih = zero_tsih;
1366 ret = iscsi_target_start_negotiation(login, conn);