diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2009-05-13 18:57:38 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-05-23 16:44:09 -0400 |
commit | 10eb0f013c63c71c82ede77945a5f390c10cfda6 (patch) | |
tree | 6f4b738aa1dfc422087a0b05ebde4388cf84a3f0 /drivers/scsi/cxgb3i/cxgb3i_offload.h | |
parent | 5a2537959fa8781012e8c286fc1614e0f6991327 (diff) |
[SCSI] iscsi: pass ep connect shost
When we create the tcp/ip connection by calling ep_connect, we currently
just go by the routing table info.
I think there are two problems with this.
1. Some drivers do not have access to a routing table. Some drivers like
qla4xxx do not even know about other ports.
2. If you have two initiator ports on the same subnet, the user may have
set things up so that session1 was supposed to be run through port1. and
session2 was supposed to be run through port2. It looks like we could
end with both sessions going through one of the ports.
Fixes for cxgb3i from Karen Xie.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/cxgb3i/cxgb3i_offload.h')
-rw-r--r-- | drivers/scsi/cxgb3i/cxgb3i_offload.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/cxgb3i/cxgb3i_offload.h b/drivers/scsi/cxgb3i/cxgb3i_offload.h index ebfca960c0a9..6a1d86b1fafe 100644 --- a/drivers/scsi/cxgb3i/cxgb3i_offload.h +++ b/drivers/scsi/cxgb3i/cxgb3i_offload.h | |||
@@ -169,7 +169,8 @@ void cxgb3i_sdev_add(struct t3cdev *, struct cxgb3_client *); | |||
169 | void cxgb3i_sdev_remove(struct t3cdev *); | 169 | void cxgb3i_sdev_remove(struct t3cdev *); |
170 | 170 | ||
171 | struct s3_conn *cxgb3i_c3cn_create(void); | 171 | struct s3_conn *cxgb3i_c3cn_create(void); |
172 | int cxgb3i_c3cn_connect(struct s3_conn *, struct sockaddr_in *); | 172 | int cxgb3i_c3cn_connect(struct net_device *, struct s3_conn *, |
173 | struct sockaddr_in *); | ||
173 | void cxgb3i_c3cn_rx_credits(struct s3_conn *, int); | 174 | void cxgb3i_c3cn_rx_credits(struct s3_conn *, int); |
174 | int cxgb3i_c3cn_send_pdus(struct s3_conn *, struct sk_buff *); | 175 | int cxgb3i_c3cn_send_pdus(struct s3_conn *, struct sk_buff *); |
175 | void cxgb3i_c3cn_release(struct s3_conn *); | 176 | void cxgb3i_c3cn_release(struct s3_conn *); |