Hi, Vlad && Deepak && Michael && David && Daniel
V2: Following the advice from Daniel Borkmann, I modified the comments and short log.
From Michael && Deepak
"
lxr SCTP implementation, doesn't transit the path state to INACTIVE, if it was never confirmed. this leads to SCTP_PEER_ADDRESS_CHANGE notification after each failed probe from this time.
Is there any specific reason to have same notification to SCTP User with each probe in RTO time period ?
806 case SCTP_TRANSPORT_DOWN:
807 /* If the transport was never confirmed, do not transition it
808 * to inactive state. Also, release the cached route since
809 * there may be a better route next time.
810 */
811 if (transport->state != SCTP_UNCONFIRMED)
812 transport->state = SCTP_INACTIVE;
http://lxr.free-electrons.com/source/net/sctp/associola.c#L806
......
I would also only expect a SCTP_PEER_ADDRESS_CHANGE notification when a path state changes, not on every try.
"
I made a patch to disable sending SCTP_PEER_ADDRESS_CHANGE notification every try. Now the patch is in the attachment. Please check it.
Zhu Yanjun
Zhu Yanjun (1):
sctp: not send SCTP_PEER_ADDR_CHANGE notifications with failed probe
net/sctp/associola.c | 1 +
1 file changed, 1 insertion(+)
--
1.9.1
Since the transport has always been in state SCTP_UNCONFIRMED, it
therefore wasn't active before and hasn't been used before, and it
always has been, so it is unnecessary to bug the user with a
notification.
Reported-by: Deepak Khandelwal <redacted>
Suggested-by: Vlad Yasevich <redacted>
Suggested-by: Michael Tuexen <redacted>
Suggested-by: Daniel Borkmann <redacted>
Signed-off-by: Zhu Yanjun <redacted>
---
net/sctp/associola.c | 1 +
1 file changed, 1 insertion(+)
Since the transport has always been in state SCTP_UNCONFIRMED, it
therefore wasn't active before and hasn't been used before, and it
always has been, so it is unnecessary to bug the user with a
notification.
Reported-by: Deepak Khandelwal <redacted>
Suggested-by: Vlad Yasevich <redacted>
Suggested-by: Michael Tuexen <redacted>
Suggested-by: Daniel Borkmann <redacted>
Signed-off-by: Zhu Yanjun <redacted>
From: Daniel Borkmann <hidden> Date: 2014-08-21 08:48:20
On 08/20/2014 11:31 AM, Zhu Yanjun wrote:
Since the transport has always been in state SCTP_UNCONFIRMED, it
therefore wasn't active before and hasn't been used before, and it
always has been, so it is unnecessary to bug the user with a
notification.
Reported-by: Deepak Khandelwal <redacted>
Suggested-by: Vlad Yasevich <redacted>
Suggested-by: Michael Tuexen <redacted>
Suggested-by: Daniel Borkmann <redacted>
Signed-off-by: Zhu Yanjun <redacted>
Looks a bit better, thanks!
Acked-by: Daniel Borkmann <redacted>
Since the transport has always been in state SCTP_UNCONFIRMED, it
therefore wasn't active before and hasn't been used before, and it
always has been, so it is unnecessary to bug the user with a
notification.
Reported-by: Deepak Khandelwal <redacted>
Suggested-by: Vlad Yasevich <redacted>
Suggested-by: Michael Tuexen <redacted>
Suggested-by: Daniel Borkmann <redacted>
Signed-off-by: Zhu Yanjun <redacted>