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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user