diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2007-05-30 13:57:25 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-06-02 15:38:04 -0400 |
commit | d8196ed2181b4595eaf464a5bcbddb6c28649a39 (patch) | |
tree | c4a9fd65f2c43bfecfa50f5714036f52200749c6 /include/scsi/libiscsi.h | |
parent | 2223696192c687f2853e42b7c1e0d3ef002081fd (diff) |
[SCSI] iscsi class, iscsi_tcp, iser, qla4xxx: add netdevname sysfs attr
iSCSI must support software iscsi (iscsi_tcp, iser), hardware iscsi (qla4xxx),
and partial offload (broadcom). To be able to allow each stack or driver
or port (virtual or physical) to be able to log into the same target portal
we use the initiator tuple [[HWADDRESS | NETDEVNAME], INITIATOR_NAME] and
the target tuple [TARGETNAME, CONN_ADDRESS, CONN_PORT] to id a session.
This patch adds the netdev name, which is used by software iscsi when
it binds a session to a netdevice using the SO_BINDTODEVICE sock opt.
It cannot use HWADDRESS because if someone did vlans then the same netdevice
will have the same mac and the initiator,target id will not be unique.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Cc: Roland Dreier <rdreier@cisco.com>
Cc: David C Somayajulu <david.somayajulu@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/libiscsi.h')
-rw-r--r-- | include/scsi/libiscsi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index eea33f7b1544..3f631b08a1ab 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -228,8 +228,9 @@ struct iscsi_session { | |||
228 | char *password_in; | 228 | char *password_in; |
229 | char *targetname; | 229 | char *targetname; |
230 | char *initiatorname; | 230 | char *initiatorname; |
231 | /* hw address being used for iscsi connection */ | 231 | /* hw address or netdev iscsi connection is bound to */ |
232 | char *hwaddress; | 232 | char *hwaddress; |
233 | char *netdev; | ||
233 | /* control data */ | 234 | /* control data */ |
234 | struct iscsi_transport *tt; | 235 | struct iscsi_transport *tt; |
235 | struct Scsi_Host *host; | 236 | struct Scsi_Host *host; |