aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2011-07-25 14:48:44 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-08-27 10:36:12 -0400
commitb78dbba0053c6f14384d55b929d21b85d03c38bb (patch)
tree1d9515de2d7dd44fc0538cbaca1041731aef2636 /drivers/scsi/qla4xxx
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')
-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 3022c1534156..df6da3cb124d 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 = {
141 .host_param_mask = ISCSI_HOST_HWADDRESS | 141 .host_param_mask = ISCSI_HOST_HWADDRESS |
142 ISCSI_HOST_IPADDRESS | 142 ISCSI_HOST_IPADDRESS |
143 ISCSI_HOST_INITIATOR_NAME, 143 ISCSI_HOST_INITIATOR_NAME,
144 .iface_param_mask = ISCSI_NET_IPV4_ADDR |
145 ISCSI_NET_IPV4_SUBNET |
146 ISCSI_NET_IPV4_GW |
147 ISCSI_NET_IPV4_BOOTPROTO |
148 ISCSI_NET_IFACE_ENABLE |
149 ISCSI_NET_IPV6_LINKLOCAL |
150 ISCSI_NET_IPV6_ADDR |
151 ISCSI_NET_IPV6_ROUTER |
152 ISCSI_NET_IPV6_ADDR_AUTOCFG |
153 ISCSI_NET_IPV6_LINKLOCAL_AUTOCFG |
154 ISCSI_NET_IFACE_ENABLE,
155 .tgt_dscvr = qla4xxx_tgt_dscvr, 144 .tgt_dscvr = qla4xxx_tgt_dscvr,
156 .attr_is_visible = ql4_attr_is_visible, 145 .attr_is_visible = ql4_attr_is_visible,
157 .get_conn_param = qla4xxx_conn_get_param, 146 .get_conn_param = qla4xxx_conn_get_param,
@@ -178,6 +167,22 @@ static mode_t ql4_attr_is_visible(int param_type, int param)
178 default: 167 default:
179 return 0; 168 return 0;
180 } 169 }
170 case ISCSI_NET_PARAM:
171 switch (param) {
172 case ISCSI_NET_PARAM_IPV4_ADDR:
173 case ISCSI_NET_PARAM_IPV4_SUBNET:
174 case ISCSI_NET_PARAM_IPV4_GW:
175 case ISCSI_NET_PARAM_IPV4_BOOTPROTO:
176 case ISCSI_NET_PARAM_IFACE_ENABLE:
177 case ISCSI_NET_PARAM_IPV6_LINKLOCAL:
178 case ISCSI_NET_PARAM_IPV6_ADDR:
179 case ISCSI_NET_PARAM_IPV6_ROUTER:
180 case ISCSI_NET_PARAM_IPV6_ADDR_AUTOCFG:
181 case ISCSI_NET_PARAM_IPV6_LINKLOCAL_AUTOCFG:
182 return S_IRUGO;
183 default:
184 return 0;
185 }
181 } 186 }
182 187
183 return 0; 188 return 0;