aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/scsi/iscsi_proto.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/include/scsi/iscsi_proto.h b/include/scsi/iscsi_proto.h
index 8d3190480441..4feda05fdf25 100644
--- a/include/scsi/iscsi_proto.h
+++ b/include/scsi/iscsi_proto.h
@@ -548,9 +548,11 @@ struct iscsi_reject {
548 uint8_t flags; 548 uint8_t flags;
549 uint8_t reason; 549 uint8_t reason;
550 uint8_t rsvd2; 550 uint8_t rsvd2;
551 uint8_t rsvd3; 551 uint8_t hlength;
552 uint8_t dlength[3]; 552 uint8_t dlength[3];
553 uint8_t rsvd4[16]; 553 uint8_t rsvd3[8];
554 __be32 ffffffff;
555 uint8_t rsvd4[4];
554 __be32 statsn; 556 __be32 statsn;
555 __be32 exp_cmdsn; 557 __be32 exp_cmdsn;
556 __be32 max_cmdsn; 558 __be32 max_cmdsn;
@@ -560,17 +562,17 @@ struct iscsi_reject {
560}; 562};
561 563
562/* Reason for Reject */ 564/* Reason for Reject */
563#define CMD_BEFORE_LOGIN 1 565#define ISCSI_REASON_CMD_BEFORE_LOGIN 1
564#define DATA_DIGEST_ERROR 2 566#define ISCSI_REASON_DATA_DIGEST_ERROR 2
565#define DATA_SNACK_REJECT 3 567#define ISCSI_REASON_DATA_SNACK_REJECT 3
566#define ISCSI_PROTOCOL_ERROR 4 568#define ISCSI_REASON_PROTOCOL_ERROR 4
567#define CMD_NOT_SUPPORTED 5 569#define ISCSI_REASON_CMD_NOT_SUPPORTED 5
568#define IMM_CMD_REJECT 6 570#define ISCSI_REASON_IMM_CMD_REJECT 6
569#define TASK_IN_PROGRESS 7 571#define ISCSI_REASON_TASK_IN_PROGRESS 7
570#define INVALID_SNACK 8 572#define ISCSI_REASON_INVALID_SNACK 8
571#define BOOKMARK_REJECTED 9 573#define ISCSI_REASON_BOOKMARK_INVALID 9
572#define BOOKMARK_NO_RESOURCES 10 574#define ISCSI_REASON_BOOKMARK_NO_RESOURCES 10
573#define NEGOTIATION_RESET 11 575#define ISCSI_REASON_NEGOTIATION_RESET 11
574 576
575/* Max. number of Key=Value pairs in a text message */ 577/* Max. number of Key=Value pairs in a text message */
576#define MAX_KEY_VALUE_PAIRS 8192 578#define MAX_KEY_VALUE_PAIRS 8192