sctp: Select a working primary during sctp_connectx()
authorVlad Yasevich <vladislav.yasevich@hp.com>
Mon, 23 Nov 2009 20:53:57 +0000 (15:53 -0500)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Mon, 23 Nov 2009 20:53:57 +0000 (15:53 -0500)
commite0e9db178a5ba4dbb5f16f958f1affbdc63d2cc4
tree22affd5fd2b2975de845a9626a89c40ad1c2df24
parent6383cfb3ed3c5c0bea06da0099c219ef4237ecf5
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>
net/sctp/associola.c
net/sctp/sm_sideeffect.c