]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
[SCSI] scsi_transport_iscsi: Added support to update initiator iscsi port
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>
Mon, 1 Aug 2011 10:26:18 +0000 (03:26 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 27 Aug 2011 14:36:37 +0000 (08:36 -0600)
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>
drivers/scsi/scsi_transport_iscsi.c
include/scsi/iscsi_if.h

index b3a2515386f84a16ed69704c5d16e9c9f802b44c..c58f6766f4c78a633a388a54b4c83c366cc3eab0 100644 (file)
@@ -324,6 +324,7 @@ iscsi_iface_net_attr(iface, vlan, ISCSI_NET_PARAM_VLAN_ID);
 iscsi_iface_net_attr(iface, vlan_priority, ISCSI_NET_PARAM_VLAN_PRIORITY);
 iscsi_iface_net_attr(iface, vlan_enabled, ISCSI_NET_PARAM_VLAN_ENABLED);
 iscsi_iface_net_attr(iface, mtu, ISCSI_NET_PARAM_MTU);
+iscsi_iface_net_attr(iface, port, ISCSI_NET_PARAM_PORT);
 
 static mode_t iscsi_iface_attr_is_visible(struct kobject *kobj,
                                          struct attribute *attr, int i)
@@ -343,6 +344,8 @@ static mode_t iscsi_iface_attr_is_visible(struct kobject *kobj,
                param = ISCSI_NET_PARAM_VLAN_ENABLED;
        else if (attr == &dev_attr_iface_mtu.attr)
                param = ISCSI_NET_PARAM_MTU;
+       else if (attr == &dev_attr_iface_port.attr)
+               param = ISCSI_NET_PARAM_PORT;
        else if (iface->iface_type == ISCSI_IFACE_TYPE_IPV4) {
                if (attr == &dev_attr_ipv4_iface_ipaddress.attr)
                        param = ISCSI_NET_PARAM_IPV4_ADDR;
@@ -390,6 +393,7 @@ static struct attribute *iscsi_iface_attrs[] = {
        &dev_attr_ipv6_iface_ipaddr_autocfg.attr,
        &dev_attr_ipv6_iface_linklocal_autocfg.attr,
        &dev_attr_iface_mtu.attr,
+       &dev_attr_iface_port.attr,
        NULL,
 };
 
index d1f092762dfd445706c9ae68a980d70763f187c4..706a1bb1c59b2a5d1e85af28be6445f0c9cee20f 100644 (file)
@@ -314,6 +314,7 @@ enum iscsi_net_param {
        ISCSI_NET_PARAM_IFACE_TYPE              = 16,
        ISCSI_NET_PARAM_IFACE_NAME              = 17,
        ISCSI_NET_PARAM_MTU                     = 18,
+       ISCSI_NET_PARAM_PORT                    = 19,
 };
 
 enum iscsi_conn_state {