Linux Kernel
3.7.1
|
#include <linux/types.h>
#include <scsi/scsi.h>
Go to the source code of this file.
Data Structures | |
struct | iscsi_hdr |
struct | iscsi_ahs_hdr |
struct | iscsi_scsi_req |
struct | iscsi_rlength_ahdr |
struct | iscsi_ecdb_ahdr |
struct | iscsi_scsi_rsp |
struct | iscsi_async |
struct | iscsi_nopout |
struct | iscsi_nopin |
struct | iscsi_tm |
struct | iscsi_tm_rsp |
struct | iscsi_r2t_rsp |
struct | iscsi_data |
struct | iscsi_data_rsp |
struct | iscsi_text |
struct | iscsi_text_rsp |
struct | iscsi_login_req |
struct | iscsi_login_rsp |
struct | iscsi_logout |
struct | iscsi_logout_rsp |
struct | iscsi_snack |
struct | iscsi_reject |
Typedefs | |
typedef uint32_t __bitwise__ | itt_t |
#define build_itt | ( | itt, | |
age | |||
) |
Definition at line 79 of file iscsi_proto.h.
#define get_itt | ( | itt | ) | ((__force uint32_t)(itt_t)(itt) & ISCSI_ITT_MASK) |
Definition at line 81 of file iscsi_proto.h.
Definition at line 69 of file iscsi_proto.h.
#define ISCSI_AHSTYPE_CDB 1 |
Definition at line 144 of file iscsi_proto.h.
#define ISCSI_AHSTYPE_RLENGTH 2 |
Definition at line 145 of file iscsi_proto.h.
#define ISCSI_ASYNC_MSG_DROPPING_ALL_CONNECTIONS 3 |
Definition at line 248 of file iscsi_proto.h.
#define ISCSI_ASYNC_MSG_DROPPING_CONNECTION 2 |
Definition at line 247 of file iscsi_proto.h.
#define ISCSI_ASYNC_MSG_PARAM_NEGOTIATION 4 |
Definition at line 249 of file iscsi_proto.h.
#define ISCSI_ASYNC_MSG_REQUEST_LOGOUT 1 |
Definition at line 246 of file iscsi_proto.h.
#define ISCSI_ASYNC_MSG_SCSI_EVENT 0 |
Definition at line 245 of file iscsi_proto.h.
#define ISCSI_ASYNC_MSG_VENDOR_SPECIFIC 255 |
Definition at line 250 of file iscsi_proto.h.
#define ISCSI_ATTR_ACA 4 |
Definition at line 175 of file iscsi_proto.h.
#define ISCSI_ATTR_HEAD_OF_QUEUE 3 |
Definition at line 174 of file iscsi_proto.h.
#define ISCSI_ATTR_ORDERED 2 |
Definition at line 173 of file iscsi_proto.h.
#define ISCSI_ATTR_SIMPLE 1 |
Definition at line 172 of file iscsi_proto.h.
#define ISCSI_ATTR_UNTAGGED 0 |
Definition at line 171 of file iscsi_proto.h.
#define ISCSI_CDB_SIZE 16 |
Definition at line 146 of file iscsi_proto.h.
#define ISCSI_CRC_LEN 4 |
Definition at line 36 of file iscsi_proto.h.
#define ISCSI_DEF_FIRST_BURST_LEN 65536 |
Definition at line 654 of file iscsi_proto.h.
#define ISCSI_DEF_MAX_BURST_LEN 262144 |
Definition at line 658 of file iscsi_proto.h.
#define ISCSI_DEF_MAX_RECV_SEG_LEN 8192 |
Definition at line 650 of file iscsi_proto.h.
#define ISCSI_DEF_TIME2WAIT 2 |
Definition at line 662 of file iscsi_proto.h.
#define ISCSI_DRAFT20_VERSION 0x00 |
Definition at line 27 of file iscsi_proto.h.
#define ISCSI_FLAG_CMD_ATTR_MASK 0x07 /* 3 bits */ |
Definition at line 168 of file iscsi_proto.h.
#define ISCSI_FLAG_CMD_BIDI_OVERFLOW 0x10 |
Definition at line 214 of file iscsi_proto.h.
#define ISCSI_FLAG_CMD_BIDI_UNDERFLOW 0x08 |
Definition at line 215 of file iscsi_proto.h.
#define ISCSI_FLAG_CMD_FINAL 0x80 |
Definition at line 165 of file iscsi_proto.h.
#define ISCSI_FLAG_CMD_OVERFLOW 0x04 |
Definition at line 216 of file iscsi_proto.h.
#define ISCSI_FLAG_CMD_READ 0x40 |
Definition at line 166 of file iscsi_proto.h.
#define ISCSI_FLAG_CMD_UNDERFLOW 0x02 |
Definition at line 217 of file iscsi_proto.h.
#define ISCSI_FLAG_CMD_WRITE 0x20 |
Definition at line 167 of file iscsi_proto.h.
#define ISCSI_FLAG_DATA_ACK 0x40 |
Definition at line 398 of file iscsi_proto.h.
#define ISCSI_FLAG_DATA_OVERFLOW 0x04 |
Definition at line 399 of file iscsi_proto.h.
#define ISCSI_FLAG_DATA_STATUS 0x01 |
Definition at line 401 of file iscsi_proto.h.
#define ISCSI_FLAG_DATA_UNDERFLOW 0x02 |
Definition at line 400 of file iscsi_proto.h.
#define ISCSI_FLAG_LOGIN_CONTINUE 0x40 |
Definition at line 458 of file iscsi_proto.h.
#define ISCSI_FLAG_LOGIN_CURRENT_STAGE1 0x04 |
Definition at line 460 of file iscsi_proto.h.
#define ISCSI_FLAG_LOGIN_CURRENT_STAGE2 0x08 |
Definition at line 461 of file iscsi_proto.h.
#define ISCSI_FLAG_LOGIN_CURRENT_STAGE3 0x0C |
Definition at line 462 of file iscsi_proto.h.
#define ISCSI_FLAG_LOGIN_CURRENT_STAGE_MASK 0x0C /* 2 bits */ |
Definition at line 459 of file iscsi_proto.h.
#define ISCSI_FLAG_LOGIN_NEXT_STAGE1 0x01 |
Definition at line 464 of file iscsi_proto.h.
#define ISCSI_FLAG_LOGIN_NEXT_STAGE2 0x02 |
Definition at line 465 of file iscsi_proto.h.
#define ISCSI_FLAG_LOGIN_NEXT_STAGE3 0x03 |
Definition at line 466 of file iscsi_proto.h.
#define ISCSI_FLAG_LOGIN_NEXT_STAGE_MASK 0x03 /* 2 bits */ |
Definition at line 463 of file iscsi_proto.h.
#define ISCSI_FLAG_LOGIN_TRANSIT 0x80 |
Definition at line 457 of file iscsi_proto.h.
#define ISCSI_FLAG_LOGOUT_REASON_MASK 0x7F |
Definition at line 549 of file iscsi_proto.h.
#define ISCSI_FLAG_SNACK_TYPE_DATA 0 |
Definition at line 603 of file iscsi_proto.h.
#define ISCSI_FLAG_SNACK_TYPE_DATA_ACK 2 |
Definition at line 606 of file iscsi_proto.h.
#define ISCSI_FLAG_SNACK_TYPE_MASK 0x0F /* 4 bits */ |
Definition at line 608 of file iscsi_proto.h.
#define ISCSI_FLAG_SNACK_TYPE_R2T 0 |
Definition at line 604 of file iscsi_proto.h.
#define ISCSI_FLAG_SNACK_TYPE_RDATA 3 |
Definition at line 607 of file iscsi_proto.h.
#define ISCSI_FLAG_SNACK_TYPE_STATUS 1 |
Definition at line 605 of file iscsi_proto.h.
#define ISCSI_FLAG_TEXT_CONTINUE 0x40 |
Definition at line 419 of file iscsi_proto.h.
#define ISCSI_FLAG_TM_FUNC_MASK 0x7F |
Definition at line 300 of file iscsi_proto.h.
#define ISCSI_FULL_FEATURE_PHASE 3 |
Definition at line 497 of file iscsi_proto.h.
#define ISCSI_HDR_LEN 48 |
Definition at line 33 of file iscsi_proto.h.
#define ISCSI_INITIAL_LOGIN_STAGE -1 |
Definition at line 494 of file iscsi_proto.h.
#define ISCSI_LISTEN_PORT 3260 |
Definition at line 30 of file iscsi_proto.h.
#define ISCSI_LOGIN_CURRENT_STAGE | ( | flags | ) | ((flags & ISCSI_FLAG_LOGIN_CURRENT_STAGE_MASK) >> 2) |
Definition at line 468 of file iscsi_proto.h.
#define ISCSI_LOGIN_NEXT_STAGE | ( | flags | ) | (flags & ISCSI_FLAG_LOGIN_NEXT_STAGE_MASK) |
Definition at line 470 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_ACCEPT 0x00 |
Definition at line 507 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_AUTH_FAILED 0x01 |
Definition at line 515 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_CONN_ADD_FAILED 0x08 |
Definition at line 522 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_INIT_ERR 0x00 |
Definition at line 514 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_INVALID_REQUEST 0x0b |
Definition at line 525 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_ISID_ERROR 0x06 |
Definition at line 520 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_MISSING_FIELDS 0x07 |
Definition at line 521 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_NO_RESOURCES 0x02 |
Definition at line 530 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_NO_SESSION 0x0a |
Definition at line 524 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_NO_SESSION_TYPE 0x09 |
Definition at line 523 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_NO_VERSION 0x05 |
Definition at line 519 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_SVC_UNAVAILABLE 0x01 |
Definition at line 529 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_TARGET_ERROR 0x00 |
Definition at line 528 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_TGT_FORBIDDEN 0x02 |
Definition at line 516 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_TGT_MOVED_PERM 0x02 |
Definition at line 511 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_TGT_MOVED_TEMP 0x01 |
Definition at line 510 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_TGT_NOT_FOUND 0x03 |
Definition at line 517 of file iscsi_proto.h.
#define ISCSI_LOGIN_STATUS_TGT_REMOVED 0x04 |
Definition at line 518 of file iscsi_proto.h.
#define ISCSI_LOGOUT_CID_NOT_FOUND 1 |
Definition at line 581 of file iscsi_proto.h.
#define ISCSI_LOGOUT_CLEANUP_FAILED 3 |
Definition at line 583 of file iscsi_proto.h.
#define ISCSI_LOGOUT_REASON_AEN_REQUEST 3 |
Definition at line 556 of file iscsi_proto.h.
#define ISCSI_LOGOUT_REASON_CLOSE_CONNECTION 1 |
Definition at line 554 of file iscsi_proto.h.
#define ISCSI_LOGOUT_REASON_CLOSE_SESSION 0 |
Definition at line 553 of file iscsi_proto.h.
#define ISCSI_LOGOUT_REASON_RECOVERY 2 |
Definition at line 555 of file iscsi_proto.h.
#define ISCSI_LOGOUT_RECOVERY_UNSUPPORTED 2 |
Definition at line 582 of file iscsi_proto.h.
#define ISCSI_LOGOUT_SUCCESS 0 |
Definition at line 580 of file iscsi_proto.h.
#define ISCSI_MAX_FIRST_BURST_LEN 16777215 |
Definition at line 656 of file iscsi_proto.h.
#define ISCSI_MAX_MAX_BURST_LEN 16777215 |
Definition at line 660 of file iscsi_proto.h.
#define ISCSI_MAX_MAX_RECV_SEG_LEN 16777215 |
Definition at line 652 of file iscsi_proto.h.
#define ISCSI_MIN_FIRST_BURST_LEN 512 |
Definition at line 655 of file iscsi_proto.h.
#define ISCSI_MIN_MAX_BURST_LEN 512 |
Definition at line 659 of file iscsi_proto.h.
#define ISCSI_MIN_MAX_RECV_SEG_LEN 512 |
Definition at line 651 of file iscsi_proto.h.
#define ISCSI_NAME_LEN 224 |
Definition at line 664 of file iscsi_proto.h.
#define ISCSI_OP_ASYNC_EVENT 0x32 |
Definition at line 135 of file iscsi_proto.h.
#define ISCSI_OP_IMMEDIATE 0x40 |
Definition at line 108 of file iscsi_proto.h.
#define ISCSI_OP_LOGIN 0x03 |
Definition at line 115 of file iscsi_proto.h.
#define ISCSI_OP_LOGIN_RSP 0x23 |
Definition at line 130 of file iscsi_proto.h.
#define ISCSI_OP_LOGOUT 0x06 |
Definition at line 118 of file iscsi_proto.h.
#define ISCSI_OP_LOGOUT_RSP 0x26 |
Definition at line 133 of file iscsi_proto.h.
#define ISCSI_OP_NOOP_IN 0x20 |
Definition at line 127 of file iscsi_proto.h.
#define ISCSI_OP_NOOP_OUT 0x00 |
Definition at line 112 of file iscsi_proto.h.
#define ISCSI_OP_PARMS_NEGOTIATION_STAGE 1 |
Definition at line 496 of file iscsi_proto.h.
#define ISCSI_OP_R2T 0x31 |
Definition at line 134 of file iscsi_proto.h.
#define ISCSI_OP_REJECT 0x3f |
Definition at line 136 of file iscsi_proto.h.
#define ISCSI_OP_RETRY 0x80 |
Definition at line 107 of file iscsi_proto.h.
#define ISCSI_OP_SCSI_CMD 0x01 |
Definition at line 113 of file iscsi_proto.h.
#define ISCSI_OP_SCSI_CMD_RSP 0x21 |
Definition at line 128 of file iscsi_proto.h.
#define ISCSI_OP_SCSI_DATA_IN 0x25 |
Definition at line 132 of file iscsi_proto.h.
#define ISCSI_OP_SCSI_DATA_OUT 0x05 |
Definition at line 117 of file iscsi_proto.h.
#define ISCSI_OP_SCSI_TMFUNC 0x02 |
Definition at line 114 of file iscsi_proto.h.
#define ISCSI_OP_SCSI_TMFUNC_RSP 0x22 |
Definition at line 129 of file iscsi_proto.h.
#define ISCSI_OP_SNACK 0x10 |
Definition at line 119 of file iscsi_proto.h.
#define ISCSI_OP_TEXT 0x04 |
Definition at line 116 of file iscsi_proto.h.
#define ISCSI_OP_TEXT_RSP 0x24 |
Definition at line 131 of file iscsi_proto.h.
#define ISCSI_OP_VENDOR1_CMD 0x1c |
Definition at line 121 of file iscsi_proto.h.
#define ISCSI_OP_VENDOR2_CMD 0x1d |
Definition at line 122 of file iscsi_proto.h.
#define ISCSI_OP_VENDOR3_CMD 0x1e |
Definition at line 123 of file iscsi_proto.h.
#define ISCSI_OP_VENDOR4_CMD 0x1f |
Definition at line 124 of file iscsi_proto.h.
#define ISCSI_OPCODE_MASK 0x3F |
Definition at line 109 of file iscsi_proto.h.
#define ISCSI_PAD_LEN 4 |
Definition at line 39 of file iscsi_proto.h.
#define ISCSI_REASON_BOOKMARK_INVALID 9 |
Definition at line 638 of file iscsi_proto.h.
#define ISCSI_REASON_BOOKMARK_NO_RESOURCES 10 |
Definition at line 639 of file iscsi_proto.h.
#define ISCSI_REASON_CMD_BEFORE_LOGIN 1 |
Definition at line 630 of file iscsi_proto.h.
#define ISCSI_REASON_CMD_NOT_SUPPORTED 5 |
Definition at line 634 of file iscsi_proto.h.
#define ISCSI_REASON_DATA_DIGEST_ERROR 2 |
Definition at line 631 of file iscsi_proto.h.
#define ISCSI_REASON_DATA_SNACK_REJECT 3 |
Definition at line 632 of file iscsi_proto.h.
#define ISCSI_REASON_IMM_CMD_REJECT 6 |
Definition at line 635 of file iscsi_proto.h.
#define ISCSI_REASON_INVALID_SNACK 8 |
Definition at line 637 of file iscsi_proto.h.
#define ISCSI_REASON_NEGOTIATION_RESET 11 |
Definition at line 640 of file iscsi_proto.h.
#define ISCSI_REASON_PROTOCOL_ERROR 4 |
Definition at line 633 of file iscsi_proto.h.
#define ISCSI_REASON_TASK_IN_PROGRESS 7 |
Definition at line 636 of file iscsi_proto.h.
#define ISCSI_RESERVED_TAG 0xffffffff |
Definition at line 104 of file iscsi_proto.h.
#define ISCSI_SECURITY_NEGOTIATION_STAGE 0 |
Definition at line 495 of file iscsi_proto.h.
#define ISCSI_STATUS_CLS_INITIATOR_ERR 0x02 |
Definition at line 502 of file iscsi_proto.h.
#define ISCSI_STATUS_CLS_REDIRECT 0x01 |
Definition at line 501 of file iscsi_proto.h.
#define ISCSI_STATUS_CLS_SUCCESS 0x00 |
Definition at line 500 of file iscsi_proto.h.
#define ISCSI_STATUS_CLS_TARGET_ERR 0x03 |
Definition at line 503 of file iscsi_proto.h.
#define ISCSI_STATUS_CMD_COMPLETED 0 |
Definition at line 220 of file iscsi_proto.h.
#define ISCSI_STATUS_SUBSYS_FAILURE 2 |
Definition at line 222 of file iscsi_proto.h.
#define ISCSI_STATUS_TARGET_FAILURE 1 |
Definition at line 221 of file iscsi_proto.h.
#define ISCSI_TM_FUNC_ABORT_TASK 1 |
Definition at line 303 of file iscsi_proto.h.
#define ISCSI_TM_FUNC_ABORT_TASK_SET 2 |
Definition at line 304 of file iscsi_proto.h.
#define ISCSI_TM_FUNC_CLEAR_ACA 3 |
Definition at line 305 of file iscsi_proto.h.
#define ISCSI_TM_FUNC_CLEAR_TASK_SET 4 |
Definition at line 306 of file iscsi_proto.h.
#define ISCSI_TM_FUNC_LOGICAL_UNIT_RESET 5 |
Definition at line 307 of file iscsi_proto.h.
#define ISCSI_TM_FUNC_TARGET_COLD_RESET 7 |
Definition at line 309 of file iscsi_proto.h.
#define ISCSI_TM_FUNC_TARGET_WARM_RESET 6 |
Definition at line 308 of file iscsi_proto.h.
#define ISCSI_TM_FUNC_TASK_REASSIGN 8 |
Definition at line 310 of file iscsi_proto.h.
#define ISCSI_TM_FUNC_VALUE | ( | hdr | ) | ((hdr)->flags & ISCSI_FLAG_TM_FUNC_MASK) |
Definition at line 312 of file iscsi_proto.h.
#define ISCSI_TMF_RSP_AUTH_FAILED 0x06 |
Definition at line 338 of file iscsi_proto.h.
#define ISCSI_TMF_RSP_COMPLETE 0x00 |
Definition at line 332 of file iscsi_proto.h.
#define ISCSI_TMF_RSP_NO_FAILOVER 0x04 |
Definition at line 336 of file iscsi_proto.h.
#define ISCSI_TMF_RSP_NO_LUN 0x02 |
Definition at line 334 of file iscsi_proto.h.
#define ISCSI_TMF_RSP_NO_TASK 0x01 |
Definition at line 333 of file iscsi_proto.h.
#define ISCSI_TMF_RSP_NOT_SUPPORTED 0x05 |
Definition at line 337 of file iscsi_proto.h.
#define ISCSI_TMF_RSP_REJECTED 0xff |
Definition at line 339 of file iscsi_proto.h.
#define ISCSI_TMF_RSP_TASK_ALLEGIANT 0x03 |
Definition at line 335 of file iscsi_proto.h.
#define KEY_MAXLEN 64 |
Definition at line 646 of file iscsi_proto.h.
#define MAX_KEY_VALUE_PAIRS 8192 |
Definition at line 643 of file iscsi_proto.h.
Definition at line 68 of file iscsi_proto.h.
Definition at line 82 of file iscsi_proto.h.
#define TARGET_NAME_MAXLEN VALUE_MAXLEN |
Definition at line 648 of file iscsi_proto.h.
#define VALUE_MAXLEN 255 |
Definition at line 647 of file iscsi_proto.h.
typedef uint32_t __bitwise__ itt_t |
Definition at line 77 of file iscsi_proto.h.