diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2012-04-03 23:41:51 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-04-25 09:35:31 +0100 |
commit | 0e43895ec1f405a25b5d57bc95c11fe17224ec43 (patch) | |
tree | 27002f8f9ce3983fdf7e6276532e788f4c8f2185 /drivers/scsi/be2iscsi/be_iscsi.h | |
parent | ffce3e2e8ce4ff2ee96df0944ee5daa783d5b2d0 (diff) |
[SCSI] be2iscsi: adding functionality to change network settings using iscsiadm
This patch allows iscsiadm to set/ delete static IP and enable /disable
DHCP.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_iscsi.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be_iscsi.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_iscsi.h b/drivers/scsi/be2iscsi/be_iscsi.h index 5c45be134501..8b826fc06bcc 100644 --- a/drivers/scsi/be2iscsi/be_iscsi.h +++ b/drivers/scsi/be2iscsi/be_iscsi.h @@ -25,6 +25,21 @@ #define BE2_IPV4 0x1 #define BE2_IPV6 0x10 +#define BE2_DHCP_V4 0x05 + +#define NON_BLOCKING 0x0 +#define BLOCKING 0x1 + +void beiscsi_create_def_ifaces(struct beiscsi_hba *phba); + +void beiscsi_destroy_def_ifaces(struct beiscsi_hba *phba); + +int be2iscsi_iface_get_param(struct iscsi_iface *iface, + enum iscsi_param_type param_type, + int param, char *buf); + +int be2iscsi_iface_set_param(struct Scsi_Host *shost, + void *data, uint32_t count); umode_t be2iscsi_attr_is_visible(int param_type, int param); |