SOCKET add more skill to interface binding

If a process opens more than once connection the interfaces are assigned
round-robin from the available ones. However, different processes will
uses a random interface of as starting point. This patch will also
make the redirect case handled correctly.
This commit is contained in:
Peter Lieven
2012-11-06 15:47:30 +01:00
parent f00cd04810
commit 3e57a612db
3 changed files with 18 additions and 5 deletions

View File

@@ -103,7 +103,7 @@ struct iscsi_context {
int login_attempts;
int is_loggedin;
int is_reconnecting;
int bind_interface_cnt;
int bind_interfaces_cnt;
int chap_a;
int chap_i;
@@ -304,6 +304,8 @@ struct scsi_task *iscsi_scsi_get_task_from_pdu(struct iscsi_pdu *pdu);
void iscsi_set_noautoreconnect(struct iscsi_context *iscsi, int state);
void iscsi_decrement_iface_rr();
#ifdef __cplusplus
}
#endif