aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorEddie Wai <eddie.wai@broadcom.com>2013-06-20 13:21:26 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-06-26 21:04:11 -0400
commit3b9373e95a6019cf89abe6c8b17c07828db96ad4 (patch)
treee3d97d87fb7c960b0da5e67acb74cf2c5470a420 /include/scsi
parentc5bebd829dd95602c15f8da8cc50fa938b5e0254 (diff)
[SCSI] libiscsi: Added new boot entries in the session sysfs
This is the kernel part of the modification to extract the net params from the ibft sysfs to the iface struct used for the connection request upon sync_session in the open-iscsi util. Three new session sysfs params are defined: boot_root - holds the name of the /sys/firmware/ibft or iscsi_rootN boot_nic - holds the ethernetN name boot_target - holds the targetN name Signed-off-by: Eddie Wai <eddie.wai@broadcom.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/iscsi_if.h5
-rw-r--r--include/scsi/libiscsi.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/include/scsi/iscsi_if.h b/include/scsi/iscsi_if.h
index fe7f06c86f68..9d28ded2a3f4 100644
--- a/include/scsi/iscsi_if.h
+++ b/include/scsi/iscsi_if.h
@@ -489,6 +489,11 @@ enum iscsi_param {
489 489
490 ISCSI_PARAM_CHAP_IN_IDX, 490 ISCSI_PARAM_CHAP_IN_IDX,
491 ISCSI_PARAM_CHAP_OUT_IDX, 491 ISCSI_PARAM_CHAP_OUT_IDX,
492
493 ISCSI_PARAM_BOOT_ROOT,
494 ISCSI_PARAM_BOOT_NIC,
495 ISCSI_PARAM_BOOT_TARGET,
496
492 /* must always be last */ 497 /* must always be last */
493 ISCSI_PARAM_MAX, 498 ISCSI_PARAM_MAX,
494}; 499};
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h
index 09c041e6c35f..4265a4bb83cd 100644
--- a/include/scsi/libiscsi.h
+++ b/include/scsi/libiscsi.h
@@ -287,6 +287,10 @@ struct iscsi_session {
287 char *targetalias; 287 char *targetalias;
288 char *ifacename; 288 char *ifacename;
289 char *initiatorname; 289 char *initiatorname;
290 char *boot_root;
291 char *boot_nic;
292 char *boot_target;
293
290 /* control data */ 294 /* control data */
291 struct iscsi_transport *tt; 295 struct iscsi_transport *tt;
292 struct Scsi_Host *host; 296 struct Scsi_Host *host;