aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_os.c
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2011-07-25 13:48:44 -0500
committerJames Bottomley <JBottomley@Parallels.com>2011-08-27 08:36:12 -0600
commitb78dbba0053c6f14384d55b929d21b85d03c38bb (patch)
tree1d9515de2d7dd44fc0538cbaca1041731aef2636 /drivers/scsi/qla4xxx/ql4_os.c
parent1d063c17298d7cd26cfe350f1e93e1727b4aa53f (diff)
[SCSI] iscsi class: remove iface param mask
We can replace the iface param mask with the attr_is_visible callback. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_os.c')
-rw-r--r--drivers/scsi/qla4xxx/ql4_os.c27
1 files changed, 16 insertions, 11 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index 3022c153415..df6da3cb124 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -141,17 +141,6 @@ static struct iscsi_transport qla4xxx_iscsi_transport = {
.host_param_mask = ISCSI_HOST_HWADDRESS |
ISCSI_HOST_IPADDRESS |
ISCSI_HOST_INITIATOR_NAME,
- .iface_param_mask = ISCSI_NET_IPV4_ADDR |
- ISCSI_NET_IPV4_SUBNET |
- ISCSI_NET_IPV4_GW |
- ISCSI_NET_IPV4_BOOTPROTO |
- ISCSI_NET_IFACE_ENABLE |
- ISCSI_NET_IPV6_LINKLOCAL |
- ISCSI_NET_IPV6_ADDR |
- ISCSI_NET_IPV6_ROUTER |
- ISCSI_NET_IPV6_ADDR_AUTOCFG |
- ISCSI_NET_IPV6_LINKLOCAL_AUTOCFG |
- ISCSI_NET_IFACE_ENABLE,
.tgt_dscvr = qla4xxx_tgt_dscvr,
.attr_is_visible = ql4_attr_is_visible,
.get_conn_param = qla4xxx_conn_get_param,
@@ -178,6 +167,22 @@ static mode_t ql4_attr_is_visible(int param_type, int param)
default:
return 0;
}
+ case ISCSI_NET_PARAM:
+ switch (param) {
+ case ISCSI_NET_PARAM_IPV4_ADDR:
+ case ISCSI_NET_PARAM_IPV4_SUBNET:
+ case ISCSI_NET_PARAM_IPV4_GW:
+ case ISCSI_NET_PARAM_IPV4_BOOTPROTO:
+ case ISCSI_NET_PARAM_IFACE_ENABLE:
+ case ISCSI_NET_PARAM_IPV6_LINKLOCAL:
+ case ISCSI_NET_PARAM_IPV6_ADDR:
+ case ISCSI_NET_PARAM_IPV6_ROUTER:
+ case ISCSI_NET_PARAM_IPV6_ADDR_AUTOCFG:
+ case ISCSI_NET_PARAM_IPV6_LINKLOCAL_AUTOCFG:
+ return S_IRUGO;
+ default:
+ return 0;
+ }
}
return 0;