diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/mtio.h | 1 | ||||
| -rw-r--r-- | include/scsi/iscsi_if.h | 19 | ||||
| -rw-r--r-- | include/scsi/libfcoe.h | 4 |
3 files changed, 21 insertions, 3 deletions
diff --git a/include/linux/mtio.h b/include/linux/mtio.h index 8f825756c45..18543e2db06 100644 --- a/include/linux/mtio.h +++ b/include/linux/mtio.h | |||
| @@ -194,6 +194,7 @@ struct mtpos { | |||
| 194 | #define MT_ST_SYSV 0x1000 | 194 | #define MT_ST_SYSV 0x1000 |
| 195 | #define MT_ST_NOWAIT 0x2000 | 195 | #define MT_ST_NOWAIT 0x2000 |
| 196 | #define MT_ST_SILI 0x4000 | 196 | #define MT_ST_SILI 0x4000 |
| 197 | #define MT_ST_NOWAIT_EOF 0x8000 | ||
| 197 | 198 | ||
| 198 | /* The mode parameters to be controlled. Parameter chosen with bits 20-28 */ | 199 | /* The mode parameters to be controlled. Parameter chosen with bits 20-28 */ |
| 199 | #define MT_ST_CLEAR_DEFAULT 0xfffff | 200 | #define MT_ST_CLEAR_DEFAULT 0xfffff |
diff --git a/include/scsi/iscsi_if.h b/include/scsi/iscsi_if.h index 9c23ee8fd2d..917741bb8e1 100644 --- a/include/scsi/iscsi_if.h +++ b/include/scsi/iscsi_if.h | |||
| @@ -261,7 +261,8 @@ struct iscsi_uevent { | |||
| 261 | } host_event; | 261 | } host_event; |
| 262 | struct msg_ping_comp { | 262 | struct msg_ping_comp { |
| 263 | uint32_t host_no; | 263 | uint32_t host_no; |
| 264 | uint32_t status; | 264 | uint32_t status; /* enum |
| 265 | * iscsi_ping_status_code */ | ||
| 265 | uint32_t pid; /* unique ping id associated | 266 | uint32_t pid; /* unique ping id associated |
| 266 | with each ping request */ | 267 | with each ping request */ |
| 267 | uint32_t data_size; | 268 | uint32_t data_size; |
| @@ -483,6 +484,20 @@ enum iscsi_port_state { | |||
| 483 | ISCSI_PORT_STATE_UP = 0x2, | 484 | ISCSI_PORT_STATE_UP = 0x2, |
| 484 | }; | 485 | }; |
| 485 | 486 | ||
| 487 | /* iSCSI PING status/error code */ | ||
| 488 | enum iscsi_ping_status_code { | ||
| 489 | ISCSI_PING_SUCCESS = 0, | ||
| 490 | ISCSI_PING_FW_DISABLED = 0x1, | ||
| 491 | ISCSI_PING_IPADDR_INVALID = 0x2, | ||
| 492 | ISCSI_PING_LINKLOCAL_IPV6_ADDR_INVALID = 0x3, | ||
| 493 | ISCSI_PING_TIMEOUT = 0x4, | ||
| 494 | ISCSI_PING_INVALID_DEST_ADDR = 0x5, | ||
| 495 | ISCSI_PING_OVERSIZE_PACKET = 0x6, | ||
| 496 | ISCSI_PING_ICMP_ERROR = 0x7, | ||
| 497 | ISCSI_PING_MAX_REQ_EXCEEDED = 0x8, | ||
| 498 | ISCSI_PING_NO_ARP_RECEIVED = 0x9, | ||
| 499 | }; | ||
| 500 | |||
| 486 | #define iscsi_ptr(_handle) ((void*)(unsigned long)_handle) | 501 | #define iscsi_ptr(_handle) ((void*)(unsigned long)_handle) |
| 487 | #define iscsi_handle(_ptr) ((uint64_t)(unsigned long)_ptr) | 502 | #define iscsi_handle(_ptr) ((uint64_t)(unsigned long)_ptr) |
| 488 | 503 | ||
| @@ -578,6 +593,6 @@ struct iscsi_chap_rec { | |||
| 578 | char username[ISCSI_CHAP_AUTH_NAME_MAX_LEN]; | 593 | char username[ISCSI_CHAP_AUTH_NAME_MAX_LEN]; |
| 579 | uint8_t password[ISCSI_CHAP_AUTH_SECRET_MAX_LEN]; | 594 | uint8_t password[ISCSI_CHAP_AUTH_SECRET_MAX_LEN]; |
| 580 | uint8_t password_length; | 595 | uint8_t password_length; |
| 581 | } __packed; | 596 | }; |
| 582 | 597 | ||
| 583 | #endif | 598 | #endif |
diff --git a/include/scsi/libfcoe.h b/include/scsi/libfcoe.h index 5a35a2a2d3c..cfdb55f0937 100644 --- a/include/scsi/libfcoe.h +++ b/include/scsi/libfcoe.h | |||
| @@ -165,7 +165,8 @@ struct fcoe_ctlr { | |||
| 165 | * @switch_name: WWN of switch from advertisement | 165 | * @switch_name: WWN of switch from advertisement |
| 166 | * @fabric_name: WWN of fabric from advertisement | 166 | * @fabric_name: WWN of fabric from advertisement |
| 167 | * @fc_map: FC_MAP value from advertisement | 167 | * @fc_map: FC_MAP value from advertisement |
| 168 | * @fcf_mac: Ethernet address of the FCF | 168 | * @fcf_mac: Ethernet address of the FCF for FIP traffic |
| 169 | * @fcoe_mac: Ethernet address of the FCF for FCoE traffic | ||
| 169 | * @vfid: virtual fabric ID | 170 | * @vfid: virtual fabric ID |
| 170 | * @pri: selection priority, smaller values are better | 171 | * @pri: selection priority, smaller values are better |
| 171 | * @flogi_sent: current FLOGI sent to this FCF | 172 | * @flogi_sent: current FLOGI sent to this FCF |
| @@ -188,6 +189,7 @@ struct fcoe_fcf { | |||
| 188 | u32 fc_map; | 189 | u32 fc_map; |
| 189 | u16 vfid; | 190 | u16 vfid; |
| 190 | u8 fcf_mac[ETH_ALEN]; | 191 | u8 fcf_mac[ETH_ALEN]; |
| 192 | u8 fcoe_mac[ETH_ALEN]; | ||
| 191 | 193 | ||
| 192 | u8 pri; | 194 | u8 pri; |
| 193 | u8 flogi_sent; | 195 | u8 flogi_sent; |
