diff options
Diffstat (limited to 'drivers/scsi/scsi_transport_iscsi.c')
-rw-r--r-- | drivers/scsi/scsi_transport_iscsi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index 2e9b68215593..13f90515ff6e 100644 --- a/drivers/scsi/scsi_transport_iscsi.c +++ b/drivers/scsi/scsi_transport_iscsi.c | |||
@@ -319,6 +319,8 @@ iscsi_iface_net_attr(ipv6_iface, linklocal_autocfg, | |||
319 | /* common read only iface attribute */ | 319 | /* common read only iface attribute */ |
320 | iscsi_iface_net_attr(iface, enabled, ISCSI_NET_PARAM_IFACE_ENABLE); | 320 | iscsi_iface_net_attr(iface, enabled, ISCSI_NET_PARAM_IFACE_ENABLE); |
321 | iscsi_iface_net_attr(iface, vlan, ISCSI_NET_PARAM_VLAN_ID); | 321 | iscsi_iface_net_attr(iface, vlan, ISCSI_NET_PARAM_VLAN_ID); |
322 | iscsi_iface_net_attr(iface, vlan_priority, ISCSI_NET_PARAM_VLAN_PRIORITY); | ||
323 | iscsi_iface_net_attr(iface, vlan_enabled, ISCSI_NET_PARAM_VLAN_ENABLED); | ||
322 | 324 | ||
323 | static mode_t iscsi_iface_attr_is_visible(struct kobject *kobj, | 325 | static mode_t iscsi_iface_attr_is_visible(struct kobject *kobj, |
324 | struct attribute *attr, int i) | 326 | struct attribute *attr, int i) |
@@ -332,6 +334,10 @@ static mode_t iscsi_iface_attr_is_visible(struct kobject *kobj, | |||
332 | param = ISCSI_NET_PARAM_IFACE_ENABLE; | 334 | param = ISCSI_NET_PARAM_IFACE_ENABLE; |
333 | else if (attr == &dev_attr_iface_vlan.attr) | 335 | else if (attr == &dev_attr_iface_vlan.attr) |
334 | param = ISCSI_NET_PARAM_VLAN_ID; | 336 | param = ISCSI_NET_PARAM_VLAN_ID; |
337 | else if (attr == &dev_attr_iface_vlan_priority.attr) | ||
338 | param = ISCSI_NET_PARAM_VLAN_PRIORITY; | ||
339 | else if (attr == &dev_attr_iface_vlan_enabled.attr) | ||
340 | param = ISCSI_NET_PARAM_VLAN_ENABLED; | ||
335 | else if (iface->iface_type == ISCSI_IFACE_TYPE_IPV4) { | 341 | else if (iface->iface_type == ISCSI_IFACE_TYPE_IPV4) { |
336 | if (attr == &dev_attr_ipv4_iface_ipaddress.attr) | 342 | if (attr == &dev_attr_ipv4_iface_ipaddress.attr) |
337 | param = ISCSI_NET_PARAM_IPV4_ADDR; | 343 | param = ISCSI_NET_PARAM_IPV4_ADDR; |
@@ -367,6 +373,8 @@ static mode_t iscsi_iface_attr_is_visible(struct kobject *kobj, | |||
367 | static struct attribute *iscsi_iface_attrs[] = { | 373 | static struct attribute *iscsi_iface_attrs[] = { |
368 | &dev_attr_iface_enabled.attr, | 374 | &dev_attr_iface_enabled.attr, |
369 | &dev_attr_iface_vlan.attr, | 375 | &dev_attr_iface_vlan.attr, |
376 | &dev_attr_iface_vlan_priority.attr, | ||
377 | &dev_attr_iface_vlan_enabled.attr, | ||
370 | &dev_attr_ipv4_iface_ipaddress.attr, | 378 | &dev_attr_ipv4_iface_ipaddress.attr, |
371 | &dev_attr_ipv4_iface_gateway.attr, | 379 | &dev_attr_ipv4_iface_gateway.attr, |
372 | &dev_attr_ipv4_iface_subnet.attr, | 380 | &dev_attr_ipv4_iface_subnet.attr, |