diff options
author | Adheer Chandravanshi <adheer.chandravanshi@qlogic.com> | 2013-07-01 05:54:12 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-08-23 13:10:16 -0400 |
commit | f8525eb4cff0c5df5b513a5f30ffebcda43460bb (patch) | |
tree | 55669dbdca5a853f6d0dd8b0ea98a3be29c28e82 /include/scsi | |
parent | ae542edb11c79706cd74d7bd54ebd7702965a7f3 (diff) |
[SCSI] libiscsi: Exporting new attrs for iscsi session and connection in sysfs
Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
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')
-rw-r--r-- | include/scsi/libiscsi.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index 4265a4bb83cd..6ac9e17acdc4 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -62,6 +62,8 @@ enum { | |||
62 | TMF_NOT_FOUND, | 62 | TMF_NOT_FOUND, |
63 | }; | 63 | }; |
64 | 64 | ||
65 | #define ISID_SIZE 6 | ||
66 | |||
65 | /* Connection suspend "bit" */ | 67 | /* Connection suspend "bit" */ |
66 | #define ISCSI_SUSPEND_BIT 1 | 68 | #define ISCSI_SUSPEND_BIT 1 |
67 | 69 | ||
@@ -173,6 +175,7 @@ struct iscsi_conn { | |||
173 | 175 | ||
174 | /* iSCSI connection-wide sequencing */ | 176 | /* iSCSI connection-wide sequencing */ |
175 | uint32_t exp_statsn; | 177 | uint32_t exp_statsn; |
178 | uint32_t statsn; | ||
176 | 179 | ||
177 | /* control data */ | 180 | /* control data */ |
178 | int id; /* CID */ | 181 | int id; /* CID */ |
@@ -213,6 +216,22 @@ struct iscsi_conn { | |||
213 | int persistent_port; | 216 | int persistent_port; |
214 | char *persistent_address; | 217 | char *persistent_address; |
215 | 218 | ||
219 | unsigned max_segment_size; | ||
220 | unsigned tcp_xmit_wsf; | ||
221 | unsigned tcp_recv_wsf; | ||
222 | uint16_t keepalive_tmo; | ||
223 | uint16_t local_port; | ||
224 | uint8_t tcp_timestamp_stat; | ||
225 | uint8_t tcp_nagle_disable; | ||
226 | uint8_t tcp_wsf_disable; | ||
227 | uint8_t tcp_timer_scale; | ||
228 | uint8_t tcp_timestamp_en; | ||
229 | uint8_t fragment_disable; | ||
230 | uint8_t ipv4_tos; | ||
231 | uint8_t ipv6_traffic_class; | ||
232 | uint8_t ipv6_flow_label; | ||
233 | uint8_t is_fw_assigned_ipv6; | ||
234 | |||
216 | /* MIB-statistics */ | 235 | /* MIB-statistics */ |
217 | uint64_t txdata_octets; | 236 | uint64_t txdata_octets; |
218 | uint64_t rxdata_octets; | 237 | uint64_t rxdata_octets; |
@@ -290,6 +309,18 @@ struct iscsi_session { | |||
290 | char *boot_root; | 309 | char *boot_root; |
291 | char *boot_nic; | 310 | char *boot_nic; |
292 | char *boot_target; | 311 | char *boot_target; |
312 | char *portal_type; | ||
313 | char *discovery_parent_type; | ||
314 | uint16_t discovery_parent_idx; | ||
315 | uint16_t def_taskmgmt_tmo; | ||
316 | uint16_t tsid; | ||
317 | uint8_t auto_snd_tgt_disable; | ||
318 | uint8_t discovery_sess; | ||
319 | uint8_t chap_auth_en; | ||
320 | uint8_t discovery_logout_en; | ||
321 | uint8_t bidi_chap_en; | ||
322 | uint8_t discovery_auth_optional; | ||
323 | uint8_t isid[ISID_SIZE]; | ||
293 | 324 | ||
294 | /* control data */ | 325 | /* control data */ |
295 | struct iscsi_transport *tt; | 326 | struct iscsi_transport *tt; |