[SCSI] iscsi class, qla4xxx, iscsi_tcp: export local address
This patch exports the local address for the session. For qla4xxx this is the ip of the hba's port. For software this is the src addr of the socket. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Cc: David C Somayajulu <david.somayajulu@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
这个提交包含在:
@@ -32,7 +32,7 @@
|
||||
|
||||
#define ISCSI_SESSION_ATTRS 15
|
||||
#define ISCSI_CONN_ATTRS 11
|
||||
#define ISCSI_HOST_ATTRS 2
|
||||
#define ISCSI_HOST_ATTRS 3
|
||||
#define ISCSI_TRANSPORT_VERSION "2.0-724"
|
||||
|
||||
struct iscsi_internal {
|
||||
@@ -1261,6 +1261,7 @@ show_host_param_##param(struct class_device *cdev, char *buf) \
|
||||
static ISCSI_CLASS_ATTR(host, field, S_IRUGO, show_host_param_##param, \
|
||||
NULL);
|
||||
|
||||
iscsi_host_attr(ipaddress, ISCSI_HOST_PARAM_IPADDRESS);
|
||||
iscsi_host_attr(hwaddress, ISCSI_HOST_PARAM_HWADDRESS);
|
||||
iscsi_host_attr(initiatorname, ISCSI_HOST_PARAM_INITIATOR_NAME);
|
||||
|
||||
@@ -1398,6 +1399,7 @@ iscsi_register_transport(struct iscsi_transport *tt)
|
||||
priv->t.host_size = sizeof(struct iscsi_host);
|
||||
transport_container_register(&priv->t.host_attrs);
|
||||
|
||||
SETUP_HOST_RD_ATTR(ipaddress, ISCSI_HOST_IPADDRESS);
|
||||
SETUP_HOST_RD_ATTR(hwaddress, ISCSI_HOST_HWADDRESS);
|
||||
SETUP_HOST_RD_ATTR(initiatorname, ISCSI_HOST_INITIATOR_NAME);
|
||||
BUG_ON(count > ISCSI_HOST_ATTRS);
|
||||
|
在新工单中引用
屏蔽一个用户