aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/iscsi_if.h
diff options
context:
space:
mode:
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>2012-02-13 08:00:48 -0500
committerJames Bottomley <JBottomley@Parallels.com>2012-02-19 10:34:50 -0500
commitac20c7bf070df2b0feb410558ec4d75dbe59b701 (patch)
tree7af9b3e1ef4b8abbb8232fb264a1db51c57f6679 /include/scsi/iscsi_if.h
parentff884430801c08bd909fd95f6cb1a0446afd30db (diff)
[SCSI] iscsi_transport: Added Ping support
Added ping support for iscsi adapter, application can use this interface for diagnostic network connection. Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include/scsi/iscsi_if.h')
-rw-r--r--include/scsi/iscsi_if.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/scsi/iscsi_if.h b/include/scsi/iscsi_if.h
index 3aac99155e80..7ff9678b7e79 100644
--- a/include/scsi/iscsi_if.h
+++ b/include/scsi/iscsi_if.h
@@ -60,6 +60,7 @@ enum iscsi_uevent_e {
60 60
61 ISCSI_UEVENT_PATH_UPDATE = UEVENT_BASE + 20, 61 ISCSI_UEVENT_PATH_UPDATE = UEVENT_BASE + 20,
62 ISCSI_UEVENT_SET_IFACE_PARAMS = UEVENT_BASE + 21, 62 ISCSI_UEVENT_SET_IFACE_PARAMS = UEVENT_BASE + 21,
63 ISCSI_UEVENT_PING = UEVENT_BASE + 22,
63 64
64 /* up events */ 65 /* up events */
65 ISCSI_KEVENT_RECV_PDU = KEVENT_BASE + 1, 66 ISCSI_KEVENT_RECV_PDU = KEVENT_BASE + 1,
@@ -73,6 +74,7 @@ enum iscsi_uevent_e {
73 ISCSI_KEVENT_IF_DOWN = KEVENT_BASE + 8, 74 ISCSI_KEVENT_IF_DOWN = KEVENT_BASE + 8,
74 ISCSI_KEVENT_CONN_LOGIN_STATE = KEVENT_BASE + 9, 75 ISCSI_KEVENT_CONN_LOGIN_STATE = KEVENT_BASE + 9,
75 ISCSI_KEVENT_HOST_EVENT = KEVENT_BASE + 10, 76 ISCSI_KEVENT_HOST_EVENT = KEVENT_BASE + 10,
77 ISCSI_KEVENT_PING_COMP = KEVENT_BASE + 11,
76}; 78};
77 79
78enum iscsi_tgt_dscvr { 80enum iscsi_tgt_dscvr {
@@ -186,6 +188,14 @@ struct iscsi_uevent {
186 uint32_t host_no; 188 uint32_t host_no;
187 uint32_t count; 189 uint32_t count;
188 } set_iface_params; 190 } set_iface_params;
191 struct msg_iscsi_ping {
192 uint32_t host_no;
193 uint32_t iface_num;
194 uint32_t iface_type;
195 uint32_t payload_size;
196 uint32_t pid; /* unique ping id associated
197 with each ping request */
198 } iscsi_ping;
189 } u; 199 } u;
190 union { 200 union {
191 /* messages k -> u */ 201 /* messages k -> u */
@@ -235,6 +245,13 @@ struct iscsi_uevent {
235 uint32_t data_size; 245 uint32_t data_size;
236 enum iscsi_host_event_code code; 246 enum iscsi_host_event_code code;
237 } host_event; 247 } host_event;
248 struct msg_ping_comp {
249 uint32_t host_no;
250 uint32_t status;
251 uint32_t pid; /* unique ping id associated
252 with each ping request */
253 uint32_t data_size;
254 } ping_comp;
238 } r; 255 } r;
239} __attribute__ ((aligned (sizeof(uint64_t)))); 256} __attribute__ ((aligned (sizeof(uint64_t))));
240 257