mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
sctp: Select a working primary during sctp_connectx()
When sctp_connectx() is used, we pick the first address as primary, even though it may not have worked. This results in excessive retransmits and poor performance. We should select the address that the association was established with. Reported-by: Thomas Dreibholz <dreibh@iem.uni-due.de> Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
This commit is contained in:
parent
6383cfb3ed
commit
e0e9db178a
2 changed files with 8 additions and 0 deletions
|
@ -1418,6 +1418,8 @@ static int sctp_cmd_interpreter(sctp_event_t event_type,
|
|||
asoc->init_last_sent_to = t;
|
||||
chunk->transport = t;
|
||||
t->init_sent_count++;
|
||||
/* Set the new transport as primary */
|
||||
sctp_assoc_set_primary(asoc, t);
|
||||
break;
|
||||
|
||||
case SCTP_CMD_INIT_RESTART:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue