iscsit.h (9586:bd5e99a50121) | iscsit.h (9601:e0ed15140e6d) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 455 unchanged lines hidden (view full) --- 464 char *icl_initiator_name; 465 char *icl_login_resp_buf; 466 void *icl_login_resp_itb; /* mult-pdu idm buf */ 467 int icl_login_resp_len; /* For kmem_free */ 468 int icl_login_resp_valid_len; 469 uint8_t icl_login_resp_err_class; 470 uint8_t icl_login_resp_err_detail; 471 iscsi_login_rsp_hdr_t *icl_login_resp_tmpl; | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 455 unchanged lines hidden (view full) --- 464 char *icl_initiator_name; 465 char *icl_login_resp_buf; 466 void *icl_login_resp_itb; /* mult-pdu idm buf */ 467 int icl_login_resp_len; /* For kmem_free */ 468 int icl_login_resp_valid_len; 469 uint8_t icl_login_resp_err_class; 470 uint8_t icl_login_resp_err_detail; 471 iscsi_login_rsp_hdr_t *icl_login_resp_tmpl; |
472 idm_pdu_t *icl_login_resp; | |
473 nvlist_t *icl_request_nvlist; 474 nvlist_t *icl_response_nvlist; 475 nvlist_t *icl_negotiated_values; 476} iscsit_conn_login_t; 477 478#define SET_LOGIN_ERROR(SLE_ICT, SLE_CLASS, SLE_DETAIL) \ 479 (SLE_ICT)->ict_login_sm.icl_login_resp_err_class = (SLE_CLASS); \ 480 (SLE_ICT)->ict_login_sm.icl_login_resp_err_detail = (SLE_DETAIL); --- 9 unchanged lines hidden (view full) --- 490 iscsit_op_params_t ict_op; 491 uint16_t ict_cid; 492 uint32_t ict_statsn; 493 uint32_t ict_keepalive_ttt; 494 struct iscsit_conn_s *ict_reinstate_conn; 495 uint32_t ict_reinstating:1, 496 ict_lost:1, 497 ict_destroyed:1; | 472 nvlist_t *icl_request_nvlist; 473 nvlist_t *icl_response_nvlist; 474 nvlist_t *icl_negotiated_values; 475} iscsit_conn_login_t; 476 477#define SET_LOGIN_ERROR(SLE_ICT, SLE_CLASS, SLE_DETAIL) \ 478 (SLE_ICT)->ict_login_sm.icl_login_resp_err_class = (SLE_CLASS); \ 479 (SLE_ICT)->ict_login_sm.icl_login_resp_err_detail = (SLE_DETAIL); --- 9 unchanged lines hidden (view full) --- 489 iscsit_op_params_t ict_op; 490 uint16_t ict_cid; 491 uint32_t ict_statsn; 492 uint32_t ict_keepalive_ttt; 493 struct iscsit_conn_s *ict_reinstate_conn; 494 uint32_t ict_reinstating:1, 495 ict_lost:1, 496 ict_destroyed:1; |
497 /* 498 * Parameters for processing text commands 499 */ 500 char *ict_text_rsp_buf; 501 uint32_t ict_text_rsp_len; 502 uint32_t ict_text_rsp_valid_len; 503 uint32_t ict_text_rsp_off; 504 uint32_t ict_text_req_itt; /* from initiator */ 505 uint32_t ict_text_rsp_ttt; |
|
498} iscsit_conn_t; 499 500#define ICT_FLAGS_DISCOVERY 0x00000001 501 502typedef struct { 503 idm_buf_t *ibuf_idm_buf; 504 stmf_data_buf_t *ibuf_stmf_buf; 505 idm_pdu_t *ibuf_immed_data_pdu; --- 85 unchanged lines hidden (view full) --- 591 idm_pdu_t *pdu); 592 593void 594iscsit_send_async_event(iscsit_conn_t *ict, uint8_t async_event); 595 596void 597iscsit_pdu_tx(idm_pdu_t *pdu); 598 | 506} iscsit_conn_t; 507 508#define ICT_FLAGS_DISCOVERY 0x00000001 509 510typedef struct { 511 idm_buf_t *ibuf_idm_buf; 512 stmf_data_buf_t *ibuf_stmf_buf; 513 idm_pdu_t *ibuf_immed_data_pdu; --- 85 unchanged lines hidden (view full) --- 599 idm_pdu_t *pdu); 600 601void 602iscsit_send_async_event(iscsit_conn_t *ict, uint8_t async_event); 603 604void 605iscsit_pdu_tx(idm_pdu_t *pdu); 606 |
607void 608iscsit_send_reject(iscsit_conn_t *ict, idm_pdu_t *rejected_pdu, uint8_t reason); 609 610void 611iscsit_text_cmd_fini(iscsit_conn_t *ict); 612 |
|
599/* 600 * IDM conn ops 601 */ 602 603idm_rx_pdu_cb_t iscsit_op_scsi_cmd; 604idm_rx_pdu_cb_t iscsit_rx_pdu; 605idm_rx_pdu_error_cb_t iscsit_rx_pdu_error; 606idm_task_cb_t iscsit_task_aborted; --- 200 unchanged lines hidden --- | 613/* 614 * IDM conn ops 615 */ 616 617idm_rx_pdu_cb_t iscsit_op_scsi_cmd; 618idm_rx_pdu_cb_t iscsit_rx_pdu; 619idm_rx_pdu_error_cb_t iscsit_rx_pdu_error; 620idm_task_cb_t iscsit_task_aborted; --- 200 unchanged lines hidden --- |