diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2005-09-12 22:01:57 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-09-20 13:35:27 -0400 |
commit | fa0a6957aa7d02addb08a231c8e7c77c2b8fcd20 (patch) | |
tree | 2140c61f8278149b19f9837226ea9eb5f28e9798 /include/scsi | |
parent | 762e2bfac7bc5f21b04ff17138aac3c453fb6481 (diff) |
[SCSI] iscsi: rename some proto defs
From: hare@suse.de
for a proper alignment between open-iscsi and iscsitarget the
definitions in include/iscsi_proto.h do not match exactly.
With this patch it's possible to have iscsitarget use
'include/iscsi_proto.h' instead of its own iscsi_hdr.h.
Signed-off-by: Alex Aizman <itn780@yahoo.com>
Signed-off-by: Dmitry Yusupov <dmitry_yus@yahoo.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/iscsi_proto.h | 28 |
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 |