diff options
author | Vikas Chaudhary <vikas.chaudhary@qlogic.com> | 2011-08-01 06:26:12 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-08-27 10:36:28 -0400 |
commit | 8c7d40fb6b51ef37df64af0e6add35baaf48896c (patch) | |
tree | 9d70f752795d63718910414642322f3fac4cc461 /drivers/scsi/scsi_transport_iscsi.c | |
parent | 2a991c2159782b8d318ac9f88a36c22dda3e7185 (diff) |
[SCSI] scsi_transport_iscsi: Added support to update mtu
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 'drivers/scsi/scsi_transport_iscsi.c')
-rw-r--r-- | drivers/scsi/scsi_transport_iscsi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index b85f8a4b8962..b3a2515386f8 100644 --- a/drivers/scsi/scsi_transport_iscsi.c +++ b/drivers/scsi/scsi_transport_iscsi.c | |||
@@ -323,6 +323,7 @@ iscsi_iface_net_attr(iface, enabled, ISCSI_NET_PARAM_IFACE_ENABLE); | |||
323 | iscsi_iface_net_attr(iface, vlan, ISCSI_NET_PARAM_VLAN_ID); | 323 | iscsi_iface_net_attr(iface, vlan, ISCSI_NET_PARAM_VLAN_ID); |
324 | iscsi_iface_net_attr(iface, vlan_priority, ISCSI_NET_PARAM_VLAN_PRIORITY); | 324 | iscsi_iface_net_attr(iface, vlan_priority, ISCSI_NET_PARAM_VLAN_PRIORITY); |
325 | iscsi_iface_net_attr(iface, vlan_enabled, ISCSI_NET_PARAM_VLAN_ENABLED); | 325 | iscsi_iface_net_attr(iface, vlan_enabled, ISCSI_NET_PARAM_VLAN_ENABLED); |
326 | iscsi_iface_net_attr(iface, mtu, ISCSI_NET_PARAM_MTU); | ||
326 | 327 | ||
327 | static mode_t iscsi_iface_attr_is_visible(struct kobject *kobj, | 328 | static mode_t iscsi_iface_attr_is_visible(struct kobject *kobj, |
328 | struct attribute *attr, int i) | 329 | struct attribute *attr, int i) |
@@ -340,6 +341,8 @@ static mode_t iscsi_iface_attr_is_visible(struct kobject *kobj, | |||
340 | param = ISCSI_NET_PARAM_VLAN_PRIORITY; | 341 | param = ISCSI_NET_PARAM_VLAN_PRIORITY; |
341 | else if (attr == &dev_attr_iface_vlan_enabled.attr) | 342 | else if (attr == &dev_attr_iface_vlan_enabled.attr) |
342 | param = ISCSI_NET_PARAM_VLAN_ENABLED; | 343 | param = ISCSI_NET_PARAM_VLAN_ENABLED; |
344 | else if (attr == &dev_attr_iface_mtu.attr) | ||
345 | param = ISCSI_NET_PARAM_MTU; | ||
343 | else if (iface->iface_type == ISCSI_IFACE_TYPE_IPV4) { | 346 | else if (iface->iface_type == ISCSI_IFACE_TYPE_IPV4) { |
344 | if (attr == &dev_attr_ipv4_iface_ipaddress.attr) | 347 | if (attr == &dev_attr_ipv4_iface_ipaddress.attr) |
345 | param = ISCSI_NET_PARAM_IPV4_ADDR; | 348 | param = ISCSI_NET_PARAM_IPV4_ADDR; |
@@ -386,6 +389,7 @@ static struct attribute *iscsi_iface_attrs[] = { | |||
386 | &dev_attr_ipv6_iface_router_addr.attr, | 389 | &dev_attr_ipv6_iface_router_addr.attr, |
387 | &dev_attr_ipv6_iface_ipaddr_autocfg.attr, | 390 | &dev_attr_ipv6_iface_ipaddr_autocfg.attr, |
388 | &dev_attr_ipv6_iface_linklocal_autocfg.attr, | 391 | &dev_attr_ipv6_iface_linklocal_autocfg.attr, |
392 | &dev_attr_iface_mtu.attr, | ||
389 | NULL, | 393 | NULL, |
390 | }; | 394 | }; |
391 | 395 | ||