summaryrefslogtreecommitdiffstats
path: root/sys/dev/iscsi
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-02-09 09:08:55 +0000
committermav <mav@FreeBSD.org>2015-02-09 09:08:55 +0000
commite82104dd187ea82cb8d346ac947106b35ee4cd46 (patch)
treeecfe50e1f34c65b46b06f08bc851c3a0a85e867e /sys/dev/iscsi
parent66970811c14d11c0b25162c408dfd99e0d73642d (diff)
downloadFreeBSD-src-e82104dd187ea82cb8d346ac947106b35ee4cd46.zip
FreeBSD-src-e82104dd187ea82cb8d346ac947106b35ee4cd46.tar.gz
MFC r278098, r278099: Add some fields and constants from RFC7144.
Diffstat (limited to 'sys/dev/iscsi')
-rw-r--r--sys/dev/iscsi/iscsi_proto.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/sys/dev/iscsi/iscsi_proto.h b/sys/dev/iscsi/iscsi_proto.h
index 46572ce..ee19fbc 100644
--- a/sys/dev/iscsi/iscsi_proto.h
+++ b/sys/dev/iscsi/iscsi_proto.h
@@ -115,7 +115,9 @@ struct iscsi_bhs_scsi_response {
uint8_t bhssr_status;
uint8_t bhssr_total_ahs_len;
uint8_t bhssr_data_segment_len[3];
- uint64_t bhssr_reserved;
+ uint16_t bhssr_status_qualifier;
+ uint16_t bhssr_reserved;
+ uint32_t bhssr_reserved2;
uint32_t bhssr_initiator_task_tag;
uint32_t bhssr_snack_tag;
uint32_t bhssr_statsn;
@@ -135,6 +137,10 @@ CTASSERT(sizeof(struct iscsi_bhs_scsi_response) == ISCSI_BHS_SIZE);
#define BHSTMR_FUNCTION_TARGET_WARM_RESET 6
#define BHSTMR_FUNCTION_TARGET_COLD_RESET 7
#define BHSTMR_FUNCTION_TASK_REASSIGN 8
+#define BHSTMR_FUNCTION_QUERY_TASK 9
+#define BHSTMR_FUNCTION_QUERY_TASK_SET 10
+#define BHSTMR_FUNCTION_I_T_NEXUS_RESET 11
+#define BHSTMR_FUNCTION_QUERY_ASYNC_EVENT 12
struct iscsi_bhs_task_management_request {
uint8_t bhstmr_opcode;
@@ -154,7 +160,14 @@ struct iscsi_bhs_task_management_request {
CTASSERT(sizeof(struct iscsi_bhs_task_management_request) == ISCSI_BHS_SIZE);
#define BHSTMR_RESPONSE_FUNCTION_COMPLETE 0
+#define BHSTMR_RESPONSE_TASK_DOES_NOT_EXIST 1
+#define BHSTMR_RESPONSE_LUN_DOES_NOT_EXIST 2
+#define BHSTMR_RESPONSE_TASK_STILL_ALLEGIANT 3
+#define BHSTMR_RESPONSE_TASK_ALL_REASS_NOT_SUPP 4
#define BHSTMR_RESPONSE_FUNCTION_NOT_SUPPORTED 5
+#define BHSTMR_RESPONSE_FUNCTION_AUTH_FAIL 6
+#define BHSTMR_RESPONSE_FUNCTION_SUCCEEDED 7
+#define BHSTMR_RESPONSE_FUNCTION_REJECTED 255
struct iscsi_bhs_task_management_response {
uint8_t bhstmr_opcode;
@@ -163,7 +176,8 @@ struct iscsi_bhs_task_management_response {
uint8_t bhstmr_reserved;
uint8_t bhstmr_total_ahs_len;
uint8_t bhstmr_data_segment_len[3];
- uint64_t bhstmr_reserved2;
+ uint8_t bhstmr_additional_reponse_information[3];
+ uint8_t bhstmr_reserved2[5];
uint32_t bhstmr_initiator_task_tag;
uint32_t bhstmr_reserved3;
uint32_t bhstmr_statsn;
OpenPOWER on IntegriCloud