Author: mav
Date: Mon Feb  9 09:08:55 2015
New Revision: 278439
URL: https://svnweb.freebsd.org/changeset/base/278439

Log:
  MFC r278098, r278099: Add some fields and constants from RFC7144.

Modified:
  stable/10/sys/dev/iscsi/iscsi_proto.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/iscsi/iscsi_proto.h
==============================================================================
--- stable/10/sys/dev/iscsi/iscsi_proto.h       Mon Feb  9 07:56:50 2015        
(r278438)
+++ stable/10/sys/dev/iscsi/iscsi_proto.h       Mon Feb  9 09:08:55 2015        
(r278439)
@@ -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_re
 #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_respons
        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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to